Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 904 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 904 Bytes

rlox_ast_walk

This is my first Rust project through which I learned Rust.

This is a Rust implementation of the tree-walk interpreter from the AMAZING book Crafting Interpreters by Robert Nystrom. The original implementation in the book is in Java, and I decided to write a Rust version to learn Rust, so I'm sure the code is not highest quality.

If you have Rust installed, from the directory of this repo do the following for a Lox interpreter

cargo run

or to run a Lox script, say, fib.lox, do the following

cargo run fib.lox

That's it! 🍉

Shameless plug: I gave a talk at the Rust Vienna meetup on the visitor pattern, based on my experience doing this implementation. You can find the slides here.