Skip to content

Repository files navigation

miniJavaLexer

Progress

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.jj

compile cal with

javac cal.java

Running project

java cal test.txt

Should out put:

LPAREN: ( NUMBER: 9 ADD_OP: + NUMBER: 2 RPAREN: ) MULT_OP: \* NUMBER: 38 LPAREN: ( NUMBER: 90 ADD_OP: + NUMBER: 4 RPAREN: )

Development

edit cal.jj by adding more tokens and rules

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages