https://github.com/taga3s/rust-monkey
Rust implementation of the Monkey programming language.
https://github.com/taga3s/rust-monkey
monkey-language rust
Last synced: 9 months ago
JSON representation
Rust implementation of the Monkey programming language.
- Host: GitHub
- URL: https://github.com/taga3s/rust-monkey
- Owner: taga3s
- Created: 2025-08-03T08:28:58.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-10-05T11:57:02.000Z (9 months ago)
- Last Synced: 2025-10-05T12:19:58.966Z (9 months ago)
- Topics: monkey-language, rust
- Language: Rust
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rust-monkey
Rust implementation of the Monkey programming language, based on the book *[Writing An Interpreter In Go](https://interpreterbook.com/)*.
This project is work in progress.
## features
- Tree-Walking Interpreter
- interprets the AST on the fly
- No external dependencies
- only uses Rust standard library
## REPL
1. Run the REPL with `just repl` command.
```bash
just repl
```
2. Type in Monkey code and press Enter to execute.
```monkey
>> let add = fn(a, b) { a + b; };
>> add(10, 15);
25
```
## Runner
```bash
just run fixtures/sample1.monkey
```
## Convert to wasm
```bash
just build-wasm
```