Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcmcgrath13/lox-rs

Lox implementation (first) in Rust from "Crafting Interpreters"
https://github.com/mcmcgrath13/lox-rs

rust

Last synced: 20 days ago
JSON representation

Lox implementation (first) in Rust from "Crafting Interpreters"

Awesome Lists containing this project

README

        

# Lox in Rust

Lox is the toy language used in the [Crafting Interpreters](https://craftinginterpreters.com) book. This is the first implementation of that language, a tree-walking interpreter. The book uses Java for this implementation, but I have elected to do this implementation in Rust.

## Usage

Start a lox REPL
```
cargo run
```

Run a lox file
```
cargo run [file.lox]
```