Type npm install chalk before running for the first time.
- Paste your
.jjfile into the directory and rename itsrc.jj(the script will compile it) - Run the program and pass the entry point:
node test [target] [fast]
The target is the name of the main class, so instead of doing this: java Parser <source.txt
Test it with this Node program by doing this: node test Parser
To suppress error output and speed demon all the tests asynchronously: node test Parser fast
The script compiles your src.jj file via the javacc command. If you have not set the PATH environmental variable or wish to use a different command to compile it, go into test.js and modify the call to javacc.