/rusty-lox

Bytecode interpreter for the Lox language, written in Rust

Primary LanguageRust

rusty-lox

A work-in-progress interpreter for the Lox language from Crafting Interpreters, implemented in Rust.

Running

REPL

cargo run --release

Script

cargo run --release [path_to_script.lox]

Printing the bytecode

If you need to see the emitted bytecode as it is being executed (e.g. for debugging purposes), set the following environment variables:

  • DEBUG_PRINT_CODE=1