Skip to content

An interpreter for Monkey, from the book Writing a Compiler in Go by Thorsten Ball. Some changes may have been made to the code.

Notifications You must be signed in to change notification settings

rgravina/monkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monkey

This is an interpreter for Monkey, a programming language and interpreter from the book Writing an Interpreter in Go.

Here is a small example of Monkey.

let five = 5;
let ten = 10;

let add = fn(x, y) {
    x + y;
};

let result = add(five, ten);

The code for this interpreter I have entered as I worked through the book, but I've also made small refactorings which helped me to understand it better. For the original source, please refer to the book.

About

An interpreter for Monkey, from the book Writing a Compiler in Go by Thorsten Ball. Some changes may have been made to the code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published