The grammar of the language can be found here.
The version of assembly generated can be found here.
Download and install Scala.
Run git clone https://github.com/brendon-boldt/the-compy.git
To build, run make (or make clean to clean class files)
To run, run scala compy.Main OPTIONS FILENAME
Output the concrete syntax tree with -c or --cst
Output the abstract syntax tree with -a or --ast
Output the optimized abstract syntax tree with -o or --oast
For bracketed strings, use -b or --brackets. To see a visual representation of the bracketed strings, copy and paste the text here.
Output the symbol table with -s or --st
Verbose output can be specified with -v or --verbose
Opcodes generated by the compiler can be run here.