Skip to content

A compiler that converts Jack programs into assembly code for the Hack Computer. An assembler that converts the assembly code into machine code for the Hack Computer. The Hack Computer is described in the book 'THE ELEMENTS OF COMPUTING SYSTEMS' by Noam Nisan and Shimon Schocken.

License

Notifications You must be signed in to change notification settings

IlanIwumbwe/JackTranslators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JackTranslators

Running the compiler

Use ./run.sh to build, which creates a compiler executable.
Run it like so: ./compiler -p <path> -i <initial> -f <final> -t.

  • <initial> can be jack or vm.
  • <final> can be asm or vm.
  • -t is an optional flag, which tells the compiler whether or not to save the programs parse tree and tokens in .xml files

Running the assembler

Assembler is in python.

Run by python3 assembler.py in the Assembler/ directory.

About

A compiler that converts Jack programs into assembly code for the Hack Computer. An assembler that converts the assembly code into machine code for the Hack Computer. The Hack Computer is described in the book 'THE ELEMENTS OF COMPUTING SYSTEMS' by Noam Nisan and Shimon Schocken.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages