Skip to content
/ rlox Public

An interpreter for the Lox programming language, written in Rust

Notifications You must be signed in to change notification settings

pulpdrew/rlox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages