-
This is the project 6 in the course: nand2tetris.
-
It can translate the
HACKmachine language to binary code which can run on theHACKcomputer. -
As you see, this project is implemented with
node.js. -
Maybe it's not perfect now, but I believe it will be.
-
npm install: to install the dependency -
node assembler.js FILE_NAME: And you will see theFILE_NAME.hackfile in the same dir of the source file.
-
I've written all of the tests with the framework
mocha. So if you want to make the testing script much better you should isntall mocha first which it's quite simple to do. -
Just type
sudo npm install -g mocha -
npm test: To run all of the test -
All the tesing scripts are in the
test_suite.js