Examples of Preprocessor


Examples of com.aqpproject.tools.preprocessor.Preprocessor

     */
    public static void main(String[] args) throws InterruptedException {


        //Preprocessor: Generate the maps
        Preprocessor preprocessor = new Preprocessor();
        preprocessor.generateMap();
        if (preprocessor.hasNewMap()) {
            while (!preprocessor.isMapGenerated()) {
                //Wait
            }

            try {
                Thread.sleep(2000);
View Full Code Here

Examples of com.objfac.prebop.Preprocessor

    this.vars.put("oem.name", oemName != null ? oemName : "none");
    this.vars.put("eclipse.version", eclipseTargetVersion.toString());
  }
 
  public void preprocess(File dir) throws PreprocessorError {
    new Preprocessor().preprocess(
      dir,      // in
      dir,      // out
      vars,      // expression variables
      NO_EXCLUDES,  // exclude
      TYPE_MAP,    // typeMap,
View Full Code Here

Examples of com.objfac.prebop.Preprocessor

      true      // merge
    );
  }
 
  public void preprocessFile(File file) throws PreprocessorError, IOException {
    new Preprocessor().preprocessFile(
      file,      // in
      file,      // out
      vars,      // expression variables
      NO_EXCLUDES,  // exclude
      TYPE_MAP,    // typeMap,
View Full Code Here

Examples of com.objfac.prebop.Preprocessor

   * @see org.apache.tools.ant.Task#execute()
   */
  public void execute() throws BuildException {
    verifyAttributes();
    String out = fOut;
    Preprocessor preprocessor = new Preprocessor();
    try {
      int processed = preprocessor.preprocess(
        fInDirFile, fOutDirFile,
        fVarMap, fExcludeSet, fTypeMap,
        "replace".equals(out), "merge".equals(out));
      int modified = preprocessor.getModCount();
      log("modified "+modified+" of "+processed+" files");
    } catch (PreprocessorError e) {
      String msg;
      Throwable t = e.getCause();
      if (t != null) {
View Full Code Here

Examples of com.quui.chat.Preprocessor

            Map<String, Vector<Integer>> map, Vector<String> answerDummies,
            boolean wnEnabled) throws IOException {
        this.isWordNetEnabled = wnEnabled;
        this.learning = new Learning(this);
        this.stopwords = stopwords;
        this.preprocessor = new Preprocessor(this.isWordNetEnabled,
                this.stopwords);
        this.topics = topics;
        this.map = map;
        this.answerDummies = answerDummies;
    }
View Full Code Here

Examples of com.quui.chat.Preprocessor

     * @see junit.framework.TestCase#setUp()
     */
    public void setUp() {
        Vector<String> stopWords = new Vector<String>();
        stopWords.add("he");
        p = new Preprocessor(false, stopWords);
    }
View Full Code Here

Examples of de.maramuse.soundcomp.parser.Preprocessor

  public String t1b="hello world\rhere i am\rtesting\ragain";

  public void testPreprocessor1() {
  String result="";
  int c=0;
  Preprocessor p=new Preprocessor(t1a);
  while(c>-1&&c<65535){
    try{
    c=p.read();
    if(c==1)
      result+='\r';
    else if(c>-1&&c<65535)
      result+=(char)c;
    }catch(IOException e){
View Full Code Here

Examples of de.maramuse.soundcomp.parser.Preprocessor

  }

  public void testPreprocessor2() {
  String result="";
  int c=0;
  Preprocessor p;
  try{
    p=new Preprocessor(new File("javasrc/de/maramuse/soundcomp/test/testfiles/testsource"));
    p.appendPath("javasrc/de/maramuse/soundcomp/test/testfiles/");
  }catch(FileNotFoundException e1){
    fail("file testsource not found");
    return;
  }
  while(c>-1&&c<65535){
    try{
    c=p.read();
    if(c==1)
      result+='\r';
    else if(c>-1&&c<65535)
      result+=(char)c;
    }catch(IOException e){
View Full Code Here

Examples of de.maramuse.soundcomp.parser.Preprocessor

          "yy\r\n"+
          "#endif\r\n"+
          "abd\r\n";
  String result="";
  int c=0;
  Preprocessor p=new Preprocessor(test);
  while(c>-1&&c<65535){
    try{
    c=p.read();
    if(c==1)
      result+='\r';
    else if(c>-1&&c<65535)
      result+=(char)c;
    }catch(IOException e){
View Full Code Here

Examples of de.maramuse.soundcomp.parser.Preprocessor

  // "#if 4+3 != 8\r\nd\r\n#else\r\ne\r\n#endif\r\n";
  String test="a\r\n#define x 4\r\n#define y \"b\"\r#ifdef x\r\na\r\n#else\r\nb\r\n#endif\r\n"+
    "#if 4+3 != 8\r\nd\r\n#else\r\ne\r\n#endif\r\n";
  String result="";
  int c=0;
  Preprocessor p=new Preprocessor(test);
  while(c>-1&&c<65535){
    try{
    c=p.read();
    if(c==1)
      result+='\r';
    else if(c>-1&&c<65535)
      result+=(char)c;
    }catch(IOException e){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.