/nand2tetris

nand2tetris

Primary LanguageRust

NAND2Tetris

Implementation of NAND2Tetris with some additional features (linter, diagnostics).

Setup

# downloads emulators and test suites
$ nix run .#setup

Test

$ nix develop # enter nix shell
$ ./test.sh
$ cargo test --workspace

Compile Jack

# generate `runtime` directory
$ ./build.sh jack-compiler/tests/fixtures/{Project}

Diagnostics

More examples found in uitest.