/lox-rs

A Lox Interpreter in Rust

Primary LanguageRustApache License 2.0Apache-2.0

Lox-rs Build Status

A Lox Interpreter in Rust based on the Crafting Interpreters book.

Run the interpreter with cargo run -p interpreter -- examples/class.lox. The bytecode VM is run with cargo run -p bytcode -- examples/class.lox.

Each commit corresponds to one chapter in the book:

Part II: A Tree-Walk Interpreter

Part III: A Bytecode Virtual Machine