JLox is a faithful Java implementation of Crafting Interpreters's tree-walk interpreter tutorial. It executes programs written in the author's original language Lox.
I claim no copyright to this work. All copyright goes to Robert Nystrom, the original author of Crafting Interpreters. Thus is all source code in this repository also licensed under the MIT license as per the tutorial's GitHub repository's license.
Build the project with Maven.
mvn install
Run the project by executing the jar and passing it the path to a Lox file. Example Lox source files can be found here.
java -jar target/JLox-1.0.0.jar <path_to_lox_file>
This implementation of JLox has not been exhaustively tested for correctness against the expectation of each test file provided at the above link. However, it was validated against any example Lox code provided in each chapter of the tutorial to demonstrate the expected behavior of each language feature.