Skip to content
An interpreter for the Monkey programming language written in 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.
core
examples
src
.gitignore
.travis.yml
Cargo.toml
LICENSE
README.md Update README.md Jul 4, 2017

README.md

monkey-rs Build Status

A compiler for the Monkey programming language written in Rust

The Monkey Programming Language

The official Monkey logo

What's Monkey?

Monkey is a programming language designed for learning about interpreter implementation, used in a book, Writing An Interpreter In Go.

Again, why?

Some people may already know that I've written a Monkey interpreter in Haskell. Why do I rewrite a similar thing in another language? Does it really mean anything?

Well, I've recently started learning Rust, and thought rewriting what I've already made would be a nice start to learn a new language. Also, the transition may not be so difficult as Rust adopted many language concepts from Haskell, such as pattern match, error handling, and trait (known as type class in Haskell).

Let me see if I can do it well ✌️

Screenshot

Compiler error messages

REPL

Instruction

Build, test and install:

cargo build --all
cargo test --all
cargo install

Run REPL and scripts:

monkey repl
monkey run examples/map-reduce.mk

License

MIT

You can’t perform that action at this time.