Skip to content
An interpreter for the Monkey programming language written in Rust
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples cli Apr 19, 2017
lib upgrading Nom to v4 May 15, 2018
repl upgrading Nom to v4 May 15, 2018
src upgrading Nom to v4 May 15, 2018
tests upgrading Nom to v4 May 15, 2018
.gitignore syntax May 20, 2017
Cargo.lock upgrading Nom to v4 May 15, 2018
Cargo.toml upgrading Nom to v4 May 15, 2018
LICENSE license Apr 20, 2017
README.md readme Apr 21, 2017

README.md

monkey-rust

An interpreter for the Monkey programming language written in Rust

The Monkey Programming Language

What’s Monkey?

Monkey has a C-like syntax, supports variable bindings, prefix and infix operators, has first-class and higher-order functions, can handle closures with ease and has integers, booleans, arrays and hashes built-in.

There is a book about learning how to make an interpreter: Writing An Interpreter In Go. This is where the Monkey programming language come from.

Instruction

Build and test

$ cargo build
$ cargo test

Running the REPL

$ cargo run --release --bin monkey_repl

Running the Interpreter

$ cargo run --release --bin monkey_exe -- --src examples/hash.mk

License

BSD3

You can’t perform that action at this time.