Package de.maramuse.soundcomp.parser

Examples of de.maramuse.soundcomp.parser.Preprocessor$MacroDetector


  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


  }

  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

          "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

  // "#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

  // this is for optically verifying the result in the console.
  // it will never really fail.
  public void testPreprocessorTemp() {
  String result="";
  int c=0;
  Preprocessor p;
  try{
    p=new Preprocessor(new File("javasrc/de/maramuse/soundcomp/test/testfiles/tempotest"));
    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

TOP

Related Classes of de.maramuse.soundcomp.parser.Preprocessor$MacroDetector

Copyright © 2018 www.massapicom. 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.