All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javacc-6.1.2.examples.JavaGrammars.1.5.Test Maven / Gradle / Ivy

There is a newer version: 7.0.13
Show newest version
import java.io.*;

class Test
{
   public static void main(String[] args) throws Exception
   {
      Reader fr = null;
      if (args.length == 2)
         fr = new InputStreamReader(new FileInputStream(new File(args[0])), args[1]);
      else
         fr = new InputStreamReader(new FileInputStream(new File(args[0])));
      JavaParser jp = new JavaParser(fr);
      jp.CompilationUnit();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy