using javacc to compile
[cdsspec-compiler.git] / src / edu / uci / eecs / specCompiler / Init.java
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..f61647fd292484acbf3834480a8c817a55363fd5 100644 (file)
@@ -0,0 +1,20 @@
+package edu.uci.eecs.specCompiler;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+
+import org.javacc.parser.JavaCCParser;
+
+public class Init {
+       public static void main(String[] argvs) {
+               File grammerFile = new File("grammer/spec-compiler.jj");
+               FileInputStream fis;
+               try {
+                       fis = new FileInputStream(grammerFile);
+                       JavaCCParser parser = new JavaCCParser(fis);
+               } catch (FileNotFoundException e) {
+                       e.printStackTrace();
+               }
+       }
+}
\ No newline at end of file