jack_compiler

Crates.iojack_compiler
lib.rsjack_compiler
version1.0.0
created_at2025-10-07 05:11:03.157319+00
updated_at2025-10-07 05:11:03.157319+00
descriptionA Rust implementation of the Jack compiler for the nand2tetris course
homepage
repositoryhttps://gitee.com/eshangrao/nand2tetris_rust
max_upload_size
id1871216
size116,202
(flyInRust)

documentation

README

nand2tetris_jack_compiler

A Rust implementation of the jack compiler for the nand2tetris course

usage

Usage: jack_compiler [OPTIONS] <JACK_FILE>

Arguments:
  <JACK_FILE>  the path of jack file

Options:
  -t, --target <TARGET>  compile target [default: vm] [possible values: vm, token, grammar]
  -h, --help             Print help (see more with '--help')
  -V, --version          Print version

chapter 10 Syntax Analysis

1.general the Jack syntax token

Usage: jack_compiler -t token <JACK_FILE>

2.general the Jack syntax grammar

Usage: jack_compiler -t grammar <JACK_FILE>

chapter 11

compile the Jack file

Usage: jack_compiler <JACK_FILE>

Commit count: 0

cargo fmt