https://github.com/jiahaog/monkey
🙊 Rust interpreter, and compiler (WIP) for the Monkey programming language
https://github.com/jiahaog/monkey
interpreter monkey rust webassembly
Last synced: 5 months ago
JSON representation
🙊 Rust interpreter, and compiler (WIP) for the Monkey programming language
- Host: GitHub
- URL: https://github.com/jiahaog/monkey
- Owner: jiahaog
- Created: 2018-10-31T05:09:49.000Z (over 7 years ago)
- Default Branch: compiler
- Last Pushed: 2023-01-14T00:20:51.000Z (over 3 years ago)
- Last Synced: 2025-04-22T14:08:38.317Z (about 1 year ago)
- Topics: interpreter, monkey, rust, webassembly
- Language: Rust
- Homepage: https://monkey.jiahao.codes
- Size: 895 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Monkey Interpreter (WIP)
Building a interpreter for the Monkey programming language.
Walking through [Writing An Interpreter In Go](https://interpreterbook.com/) in Rust.
## Development
### Prerequistes
- [Rust Toolchain](https://rustup.rs/)
#### For WebAssembly Development
- [`wasm-pack`](https://rustwasm.github.io/wasm-pack/installer/)
- [npm](https://www.npmjs.com/get-npm)
### Build
Builds Rust binaries and static web pages to `monkey-web/www/dist/`
```sh
make
```
### Watching for Changes
[Cargo Watch](https://github.com/passcod/cargo-watch) is required.
```sh
# In separate terminal processes:
make watch-rust
make watch-www
```
### Rust Only Development
```sh
cd monkey
# REPL
cargo run
```