An interpreter for the Monkey programming language written in Rust. This project contains a lexer, parser, REPL and interpreter for the language.
The Monkey programming language is a language designed by the author of the book Writing An Interpreter In Go. The language has:
- C-like syntax
- variable bindings
- integers and booleans
- arithmetic expressions
- built-in functions
- first-class and higher-order functions
- closures
- a string data structure
- an array data structure
- a hash data structure
# lexer
$ cargo run --release --bin lexer
# parser
$ cargo run --release --bin parser
# repl
$ cargo run --release --bin repl
# interpreter
$ cargo run --release --bin interpreter <file>