A Lox interpreter based on the amazing Crafting Interpreters book.
Run a Lox file via cargo r -- filename.lox
.
Run the test suite via:
cargo test
Test data are copied from the author's GitHub repository. I have modified some of the test cases, because in those cases the original one didn't make sense to me!
This code is available under the MIT License.