Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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"
- Host: GitHub
- URL: https://github.com/mcmcgrath13/lox-rs
- Owner: mcmcgrath13
- License: mit
- Created: 2022-09-20T18:12:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-09T18:01:42.000Z (almost 2 years ago)
- Last Synced: 2024-10-15T07:31:40.367Z (about 1 month ago)
- Topics: rust
- Language: Rust
- Homepage: https://mcmcgrath13.github.io/lox-v-lox/
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]
```