Jlox
A Java implemetation of the tree-walk Lox interpreter from craftinginterpreters.com.
Install / Use
/learn @ryanq/JloxREADME
jlox
jlox is a Java implementation of the tree-walk interpreter from the Crafting Interpreters book.
Code Organization
The code is organized so that each chapter is on its own branch. At the end of each chapter, the branch merges with master. Any challenges that get done are coded on the chapter branch after the merge:
^ * b44819c (chapter-4) Challenge 4.4 Nested Block Comments
| * 6bbaa10 Challenge 4.4 Block Comments
|/
* 2d553a0 (master) Chapter 4
|\
| * 10e3b6b 4.7 Reserved Words and Identifiers
| * 3166716 4.6 Longer Lexemes
| * 3474e6d 4.5 Recognizing Lexemes
| * 17226fa 4.4 The Scanner Class
| * ffa1b07 4.2 Tokens and Lexemes
| * f704cb4 4.1 The Interpreter Framework
|/
* 3893584 Set up initial Gradle project
Running
Clone the project to a local directory. Building and running are done using just:
git clone https://github.com/ryanq/jlox
cd jlox
just build
./jlox script.lox
./jlox
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
