Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 513 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 513 Bytes

About

This project is a Rust implementation of the Java tree-walk interpreter for Lox object-oriented programming language, featured in the book "Crafting Interpreters".

Unsafe code is forbidden in the whole crate.

How to launch

Make sure Rust is installed.

Then you can launch the following Lox code, which computes the 70th Fibonacci number :

cargo run --release test_lox_scripts/optimized_fibonacci.lox

How to launch unit tests

cargo test