pulpdrew / rlox

An interpreter for the Lox programming language, written in Rust

Home Page:https://www.pulpdrew.com/rlox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RLox

RLox is an interpreter for the Lox programming language. The language was designed by Robert Nystrom for his book, Crafting Interpreters. After working my way through the book, I decided to implement a third version of the interpreter, written in Rust. More information about the design of RLox can be found here.

Running the interpreter

To run the interpreter, simply clone the repository and use cargo to build and run the project.

To run a REPL:

cargo run

To Run a file:

cargo run [filename]

To run with bytecode output

cargo run --features disassemble

Finally, to run unit tests and end to end tests, try

cargo test

About

An interpreter for the Lox programming language, written in Rust

https://www.pulpdrew.com/rlox


Languages

Language:Rust 100.0%