Skip to content

Monkey programming language interpreter written in Rust

License

Notifications You must be signed in to change notification settings

pedroclobo/monkey-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monkey-interpreter

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

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

Quick Start

# 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>

About

Monkey programming language interpreter written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages