Skip to content

castrodd/compiler

Repository files navigation

Jack Compiler

Toy compiler for the Jack language as specified in Nand to Tetris course

Components

Initialization

  • JackCompiler: top-level driver that sets up and invokes the other modules
  • ClassRecord: class for maintaining list of all files being compiled

Syntax analysis

  • JackTokenizer: module that parses and tokenizes Jack files
  • JackToken: class for handling individual tokens

Code generation

  • SymbolTable: module that creates a symbol table for each Jack class and subroutine
  • Symbol: class for handling individual symbols
  • VMWriter: output module for generating VM code
  • CompilationEngine: recursive top-down compilation engine

About

Toy compiler for Jack language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages