Skip to content
A rust version of the Monkey Interpreter from "Writing an Interpreter in Go"
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.
.github/workflows Create rust.yml Nov 30, 2019
src Added puts function and formatted project Nov 30, 2019
.gitignore Added gitignore Nov 22, 2019
Cargo.lock Added Hashes Nov 30, 2019
Cargo.toml Added Hashes Nov 30, 2019
LICENSE Initial commit Nov 13, 2019
README.md Added Hashes Nov 30, 2019

README.md

rust-monkey

Monkey

A rust version of the Monkey Interpreter from "Writing an Interpreter in Go"

Written without any external libraries, lexers or parsers.

Inspired by this repo.

REPL

The REPL is started when running the repo:

cargo run

Tests

All tests from "Writing an Interpreter in Go" have been copied.

Implemented Features

Rust-Monkey supports:

  • Variable bindings,
  • Prefix and Infix operators
  • First-class and Higher-order Functions
  • Closures
  • Integers, Booleans, Strings
  • Immutable Arrays
  • Hashes

Planned Features

  • While Loops
  • For Loops
You can’t perform that action at this time.