Skip to content

Implementing an interpreter for the Monkey programming language in C++, with guidance from the book "Writing An Interpreter In Go" by Thorsten Ball.

Notifications You must be signed in to change notification settings

nicdgonzalez/monkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monkey

Introduction

build_cmake

An interpreter for the Monkey programming language, written in C++.

Based on the book Writing An Interpreter In Go by Thorsten Ball.

Quickstart

How to build and run the Monkey REPL.

Using CMake

cmake -B build -S .
make -C build
./build/monkey

Example Program

Note

To end interactive mode, execute exit or press Ctrl+D.

Hello, nicdgonzalez! This is the Monkey programming language!
Feel free to type in commands.
>>> let five = 5;
Token(LET, "let")
Token(IDENTIFIER, "five")
Token(ASSIGN, "=")
Token(INTEGER, "5")
Token(SEMICOLON, ";")
>>> exit

Bug/Feature Request

If you find a bug (program failed to run and/or gave undesired results) or you just want to request a feature, kindly open a new issue here.

Contributing

This project is primarily focused on learning, so I will likely not integrate pull requests containing substantial code changes. However, feel free to fork the project if you wish to implement significant changes!

About

Implementing an interpreter for the Monkey programming language in C++, with guidance from the book "Writing An Interpreter In Go" by Thorsten Ball.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published