So after I compile my code, I want it to read input from a file instead of the command line.
So instead of doing this:
javacc Ex.jj
javac *.java
java Ex "x+2"
I want to do this:
javacc Ex.jj
javac *.java
java test.txt
Where test.txt has this in it:
"x+4"
You can declare a class with a
mainmethod in your syntax file: