J-- Compiler
These are the steps to build the parser
To build the parser:
make build
To remove the compiled and generated files:
make clear
Executable will be generated in the project root. To run it:
./jay <path to a file>
The project contains a regular, simple test runner and some unit tests. All test files are located in test
directory.
The test.sh
runs all of the test files in the test/codegen
directory. To run a single file, refer to 'Running the parser' section above.
To run the test runner, run the following command (it will perform a clean build):
make test_runner
Note: instead of using
make test_runner
you can also call./test.sh
instead (ensure to make it executable usingchmod +x ./test.sh
).
Artem Golovin