Skip to content

Repository files navigation

rox

Based On...

https://craftinginterpreters.com/

This is a Rust-based implementation of clox (from the second half of the book, where you build a bytecode VM in C), and is fully compliant with the clox suite of tests.

For jlox (from the first half of the book, where you build an interpreter in Java), see my Haskell-based implementation here.

rox CI

Testing

Dart

Install Dart 2.x:

wget https://storage.googleapis.com/dart-archive/channels/stable/release/2.19.6/sdk/dartsdk-linux-x64-release.zip
unzip dartsdk-linux-x64-release.zip -d $HOME/Applications/dart-2.19.6
export PATH="$HOME/Applications/dart-2.19.6/dart-sdk/bin:$PATH"

Make sure to add that last line to your .zshrc (or equivalent), for permanent use.

Building the tester

git submodule update --init
cd mothership
make get
cd ..

Running the tests

./test.sh

License

Public domain / CC0-1.0

About

A fully-compliant Rust implementation of the bytecode VM and compiler for the toy programming language Lox, from the book Crafting Interpreters

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages