This is my first ever compiler, compiling the Jack language to the Virtual machine itermediary language, from which we use a VM translator to translate this to Hack assembly language and run right into the machine language
This project is Module's 11 project and the best one so far
- Write a program in the Jack language
- Clone this repo
- Build this project
mkdir build
cmake -S . -B ./build
cmake --build ./build/
- Run the program
./build/compiler <path-to-file>
- Jack Syntax Analyzer: This tool tests the tokenizer and syntax analyzsis to prepare for this compiler
- Hack VM Translator: This tool compiles from the VM machine language to the hack assembly language
- Hack Assembler: This tool converts the hack assembly language to hack machine language