LeslieZhu / monkey-cpp

Writing An Interpreter/Compiler In C++
Apache License 2.0
6 stars 0 forks source link
interpreter monkey monkey-language monkey-programming-language

Monkey: Writing An Interpreter/Compiler In C++

Reference the book Writing An Interpreter In Go and Writing A Compiler In Go.

But re-write the Monkey interpreter/compiler with C++.

Also see the MinYiLife Blogs

Run

For example:

$ cd src/10/
$ mkdir build/
$ cd build/
$ cmake ..
$ make

$ ./test_monkey

$ ./monkey

Hello lesliezhu! This is the Monkey-CPP programming language!
Feel free to type in commands
>> let add = fn(x,y){ return x + y; }
>> add(3,4)
7
>>

Requires