using javacc to compile
[cdsspec-compiler.git] / src / edu / uci / eecs / specCompiler / Init.java
index e69de29..f61647f 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