An interpreter for the Lox
programming language, written in go.
cmd/
- driver program for the binaryconfigs/
- configuration filespkg/
- implementation and unit tests of core featurestest/
- contains test data and end-to-end tests
The following tasks are defined in the Makefile
in the project root.
make install
- install all dependenciesmake format
- format the codemake generate
- run codegenmake build
- build the golox binary tobuild/golox
make build-<binary-name>
- build the golox binary tobuild/<binary-name>
make unittest
- run unit tests onlymake e2etest
- run end to end tests onlymake test
- run all testsmake <task>-in-docker
- run thetask
in docker (e.g.,make test-in-docker
)make cover
- run tests and display code coveragemake cover-html
- run tests and display code coverage visually in a web browsermake run
- run the interpreter
Run golox --help
to see usage.