Home

Awesome

relox

My rust port of the Lox (jlox) interpreter from the Crafting Interpreters book.

At the moment this is more or less an implementation of the vanilla Lox language, with only some of the challenges incorporated. I have a fair amount of cleanup to do (there are "a few" FIXMEs laying around in the code for my future, less lazy self), most notably strings and idents could use interning, and the error reporting could always provide token span information (as it does in jlox).

Notable changes from jlox

These are mostly driven by the differences between java and rust.

Otherwise, this should be very recognizable as the original jlox.