Skip to content

Latest commit

 

History

History
37 lines (19 loc) · 1.16 KB

README.md

File metadata and controls

37 lines (19 loc) · 1.16 KB

The Compy

Language Information

The grammar of the language can be found here.

The version of assembly generated can be found here.

Build Instructions (Linux)

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)

Compilation Instructions

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

Run Instructions

Opcodes generated by the compiler can be run here.