Authors: Kyle King, Ja Aupart, Sam Vekovius, Benjamin Gutowski
The ANTLR parser reads source code and produces a parse tree from the grammar defined in gParser.g4. The ASTBuilder.java visitor then walks the parse tree, converting each context node into a corresponding Absyn node. 28 visitor functions were implemented to cover all grammar rules.
Clone the repository with:
git clone https://github.com/YSLja/parser.gitOpen the downloaded project folder in Terminal.
For a single test, run the run.sh script with:
./run.shTo run all 100 tests, run the test.sh script with:
./test.shAnd the solutions will print to report.txt