Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 813 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 813 Bytes

Rlox

Rlox is the tree walking interpreter for the programming language Lox, fromt Part 1 of Robert Nystrom's Crafting Interpreters book book, written in Rust.

Building

Nothing particularly odd. the standard cargo build should sort you out. You'll need the nightly toolchain.

testing

unit tests are run using cargo test as usual. to run rlox against Bob's canonical Lox test suite follow the instructions here.

The summary is: Go here and install Dart, and then

git clone git://github.com/munificent/craftinginterpreters && cd craftinginterpreters
make get
dart tool/bin/test.dart chap04_scanning --interpreter ../rlox/target/debug/rlox