Skip to content

atonement-crystals/JLox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JLox

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.

License

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.

Dependencies

Build

Build the project with Maven.

mvn install

Run

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>

Notes

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.

About

A Java implementation of Crafting Interpreters' tree-walk interpreter tutorial.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages