Pylox
Python implementation of the Lox language from Robert Nystrom's Crafting Interpreters
Install / Use
/learn @dabeaz/PyloxREADME
pylox
Python implementation of the Lox language from Robert Nystrom's Crafting Interpreters. https://craftinginterpreters.com. This only implements the tree-walking interpreter in Part 1.
Notes
This is not a teaching exercise. I provide no commentary beyond the code itself.
The implementation does not directly follow the implementation in the book. I rely upon parser generation tools and use programming idioms specific to Python. I am trying to implement the same semantics for Lox as are described in the book.
-- Dave
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate 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.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
