https://github.com/atomicptr/lox-rs
Tree Walk Interpreter for the Lox programming language
https://github.com/atomicptr/lox-rs
interpreter lox lox-interpreter lox-lang lox-language programming-language
Last synced: 6 months ago
JSON representation
Tree Walk Interpreter for the Lox programming language
- Host: GitHub
- URL: https://github.com/atomicptr/lox-rs
- Owner: atomicptr
- License: gpl-3.0
- Created: 2025-06-06T15:25:34.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-06-16T07:25:28.000Z (8 months ago)
- Last Synced: 2025-07-22T02:00:39.471Z (7 months ago)
- Topics: interpreter, lox, lox-interpreter, lox-lang, lox-language, programming-language
- Language: Rust
- Homepage:
- Size: 342 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lox-rs
My implementation of the "tree walk interpreter" lox programing language from the [Crafting Interpreters](https://craftinginterpreters.com/) book.
## Changes
This implementation has some changes different from the books implementation (some of these were part of the extra challenges)
- Dynamic but strongly typed, there are type checks for operations
- Logical operators evaluate to boolean values instead, e.g. "nil or 5" becomes true and not 5
- Better error messages with context
- ternary operator
- continue/break statements for loops
- support for anonymous functions
## License
GPLv3