Compiler for the Jack programming language. Usage:
- Ensure Node is installed on your computer.
- Ensure TypeScript is installed on your computer by running
npm install typescript -g
- Navigate to the
src
directory, and runtsc
- Navigate to the newly created
dist
directory. - Run
node JackCompiler.js <Path-to-Jack-File>
to compile your Jack program into VM code. - You can use the
samples
directory to inspect the JackCompiler without any Jack code of your own.
This project passes all tests provided by the Nand2Tetris course on Coursera.