https://github.com/csueiras/monkey
Interpreter for Monkey Programming Language
https://github.com/csueiras/monkey
go golang interpreter monkey-programming-language programming-language
Last synced: 17 days ago
JSON representation
Interpreter for Monkey Programming Language
- Host: GitHub
- URL: https://github.com/csueiras/monkey
- Owner: csueiras
- Created: 2018-10-14T02:19:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-14T02:34:41.000Z (over 2 years ago)
- Last Synced: 2026-01-27T13:15:52.369Z (about 2 months ago)
- Topics: go, golang, interpreter, monkey-programming-language, programming-language
- Language: Go
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Interpreter for Monkey Language
This is my implementation of the Monkey Language Interpreter, I built this as I worked through the book "Writing An Interpreter in Go" by Thorsten Ball (https://interpreterbook.com/).
I made some small extentions just to challenge myself to add a few features:
- Parsing support for escape sequences: \n \t \"
- Support for SETs and some set-related functions
```
Hello csueiras! Type in your Monkey Language commands
>> set(1,2,2,2,2,3)
set(1,2,3)
>> let setA = set(1,2,2,2,3)
>> let setB = set(1,2,3,4,4,4)
>> union(setA, setB)
set(2,1,3,4)
```
The project was fun to work on, I used it as a means to learn Go Lang, and I highly recommend for any newbie to Go!