added javacc.jar to the directory added cal.jj to the directory compiled the cal.jj file using the following command
java -classpath javacc.jar javacc cal.jjcompile cal with
javac cal.javajava cal test.txtShould out put:
LPAREN: ( NUMBER: 9 ADD_OP: + NUMBER: 2 RPAREN: ) MULT_OP: \* NUMBER: 38 LPAREN: ( NUMBER: 90 ADD_OP: + NUMBER: 4 RPAREN: )
edit cal.jj by adding more tokens and rules