A MiniJava compiler written in C++
Build the project by running make compiler vm
.
To compile a MiniJava program, run ./compiler program.java
.
The compiled MiniJava program will be placed in output/prog.bc
.
Run the compiled program by running ./vm output/prog.bc
.
Graphviz diagrams of the syntax tree, symbol table, and control flow graph can be generated by running
make tree
, make st
, and make cfg
, respectively.