VM to Hack translator for Nand2Tetris course
After cloning this repo, in the terminal, type
python3 VMTranslator [filename].vm
to translate [filename].vm
(in Nand2Tetris' VM code) to [filename].asm
(in Nand2Tetris' Hack assembly), or
python3 VMTranslator [directory]
to translate all .vm
files in [directory]
to a single [directory].asm
file (this file will be placed inside the directory).