Toy Compiler Source: Github
A toy compiler - point it to a directory or a specific file, invoke the relevant module, and the corresponding file will be generated
There are 3 modules in the project.
- Compiler - compiles high level Jack language into VM language (similar in concept to Java's bytecode)
- Translator - translates VM language into symbolic binary i.e. Assembly
- Assembler - assembles the assembly into binary
There's an additional end to end module which takes Jack and outputs binary with a single command. Intermediate files are still generated.
For more details, please visit the GitHub project page. For more information on Jack, please visit the course site here.
Written in Python.