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>