An open API service indexing awesome lists of open source software.

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

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