# nand2tetris_jack_compiler
A Rust implementation of the jack compiler for the nand2tetris course
# usage
```bash
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
```bash
Usage: jack_compiler -t token <JACK_FILE>
```
2.general the Jack syntax grammar
```bash
Usage: jack_compiler -t grammar <JACK_FILE>
```
# chapter 11
compile the Jack file
```bash
Usage: jack_compiler <JACK_FILE>
```