Skip to content

sstpm/hack_compiler_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

hack_compiler_python

Nand2Tetris Python hack compiler

Originally written in 2021 for the course on Coursera, moved to github for safe keeping.

To use: python3 ./JackCompiler.py <jack file | directory>

If given a valid Jack named x.jack, this will output both x.vm and x.xml. This is a VM file in the intermediate language defined in the course as well as an XML file of the parser/tokenizer's output. Pass the file to a working assembler to see the assembled file, but if I recall correctly the emulation tools the course uses can directly use the VM file as is.

About

Nand2Tetris Python hack compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages