Skip to content

Cheshulko/Nand2Tetris-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nand2Tetris (Rust)

Nand2Tetris cource

Table of Contents

  • Jack language compiler A Rust-based compiler for the Jack programming language, converting .jack source files into VM code. It supports tokenization, parsing into an AST, and emitting .vm output via a simple command-line interface. Optionally, it can dump XML representations of tokens and parse trees for debugging.
  • Jack language VM translator. A lightweight Rust-based tool that converts Nand2Tetris-style .vm files into Hack assembly .asm files. It implements a full lexing, parsing, and translation pipeline, and supports both individual files and entire directories in one run. Debug output (tokens, AST) can be optionally enabled for introspection.
  • Hack language assembler. A compact Rust implementation of a Hack assembly → binary translator. It parses .asm files, resolves symbols and labels, and emits .hack (and optional raw .hack.bin) outputs, with debug flags for tokens, AST, and the symbol table.

Acknowledgments & References