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

https://github.com/taga3s/monkey-rs

Monkey language in Rust
https://github.com/taga3s/monkey-rs

monkey-language rust

Last synced: 5 months ago
JSON representation

Monkey language in Rust

Awesome Lists containing this project

README

          

# monkey-rs

Rust implementation of the Monkey language, based on the book *[Writing An Interpreter In Go](https://interpreterbook.com/)*.

## Usage

### Web playground

The web playground is deployed on https://taga3s.github.io/monkey-rs/.

### REPL (crates/repl)
1. Run the REPL with following 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 (crates/runner)

```bash
just run
```