The monkey programming language interpreter/compiler from the books Writing an Interpreter in Go and Writing a Compiler in Go by Thorsten Ball.
CHANGES:
- added
exit()
function. - added
keys()
andvalues()
for hash values. - added
globals()
andlocals()
functions to check environment (interpreter
only). - added
toInt()
andtoBool()
for type conversion.
TODO:
- implement
globals()
andlocals()
in compiler/vm.