17 lines
568 B
Markdown
17 lines
568 B
Markdown
These are my source files for working on Thorsten Ball's [Writing an interpreter in go](https://interpreterbook.com/) book. The ultimate goal of this source code is to interpret, and execute code written in a language called monkey. I'm still going through the book so this repo maybe incomplete.
|
|
|
|
An example of monkey is below. Monkey is a c-like language with closures, first class functions, and variable bindings.
|
|
|
|
```monkey
|
|
|
|
let five = 5;
|
|
let ten = 10;
|
|
|
|
let add = fn(x, y) {
|
|
x + y;
|
|
};
|
|
return add(5,5);
|
|
|
|
```
|
|
|
|
reminder for myself>> you stopped at prefix-operators |