/minijava

(Fall 2023) A compiler for Minijava, a subset of the Java Language

Primary LanguageScalaMIT LicenseMIT

A compiler for MiniJava

MiniJava is a subset of the Java language

A few examples of the MiniJava language can be found here.
The grammar used in this project comes from the grammar found on here.


Downloading the ANTLR4 Tools:

From the root directory of the project, run the following script to install the ANTLR4 tools.

$ ./scripts/build_venv.sh

Compiling the MiniJava Grammar using ANTLR4:

From the root directory of the project, run the following script to compile the MiniJava Grammar using ANTLR4.

$ ./scripts/compile_grammar.sh