Monkey programming language from Writing an interpreter in Go book
MIT License
from Writing an interpreter in Go book
let five = 5;
let ten = 10;
let add = fn (x, y) {
x + y;
}
let result = add(five, tne);
>> let unless = macro(condition, consequence, alternative) { quote(if (!(unquote(condition))) { unquote(consequence); } else { unquote(alternative); }); };
>> unless(10 > 5, puts("not greater"), puts("greater"));
greater
null