The C- Programming Language Parser and Lexer (CS4542 Assignment)
You'll need Java.
Put antlr-4.7.1-complete.jar
here (if any other version, you'll have to change all the batch files).
Run:
-
antlr4.bat
-
compile.bat
-
grun.bat
in correct order and enter the sampleprogram
code to test. After typing the code in, you'll need to press Ctrl+Z to mark the End of File, And then press enter.(You can copy-paste the examples in the sample directory. )