Skip to content

This is my first ever compiler. It's module 11's project in the famous Nand2tetris course. It's built in c++ and translates Jack language into VM code

Notifications You must be signed in to change notification settings

omardoescode/Jack-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jack Compiler

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

Usage

  1. Write a program in the Jack language
  2. Clone this repo
  3. Build this project
mkdir build
cmake -S . -B ./build
cmake --build ./build/
  1. Run the program
./build/compiler <path-to-file>

Related projects

  • 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

About

This is my first ever compiler. It's module 11's project in the famous Nand2tetris course. It's built in c++ and translates Jack language into VM code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published