/grookey

An implementation of the Monkey interpreter.

Primary LanguageGo

Grookey

Grookey is a toy interpreter (wip) for the Monkey language.

This image is generated using Midjourney.

This interpreter is built following the examples in "Writing An Interpreter In Go" by Thorsten Ball.

Here's what a toy example looks like:

>> let add = fn(a, b) { a + b };
>> let sub = fn(a, b) { a - b };
>> let applyFunc = fn(a, b, func) { func(a, b) };
>> applyFunc(2, 2, add);
4
>> applyFunc(10, 2, sub);
8