https://github.com/claudemuller/oohooh-aahaah.go
An interpreter for the Monkey language built in Go
https://github.com/claudemuller/oohooh-aahaah.go
go interpreter monkeylang
Last synced: about 1 year ago
JSON representation
An interpreter for the Monkey language built in Go
- Host: GitHub
- URL: https://github.com/claudemuller/oohooh-aahaah.go
- Owner: claudemuller
- Created: 2023-06-06T10:01:30.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-03T09:09:02.000Z (over 2 years ago)
- Last Synced: 2025-02-14T18:33:31.661Z (over 1 year ago)
- Topics: go, interpreter, monkeylang
- Language: Go
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Oohooh-Aahaah Interpreter
[](https://github.com/claudemuller/oohooh-aahaah-go/actions/workflows/go.yml)
```
__,__ _ _
.--. .-" "-. .--. ___ ___ | |__ ___ ___ | |__
/ .. \/ .-. .-. \/ .. \ / _ \ / _ \ | '_ \ / _ \ / _ \ | '_ \
| | '| / Y \ |' | | | (_) | | (_) | | | | | | (_) | | (_) | | | | |
| \ \ \ 0 | 0 / / / | \___/ \___/ |_| |_| \___/ \___/ |_| |_|
\ '- ,\.-"""""""-./, -' /
''-' /_ ^ ^ _\ '-'' _ _
| \._ _./ | __ _ __ _ | |__ __ _ __ _ | |__
\ \ '~' / / / _` | / _` | | '_ \ / _` | / _` | | '_ \
'._ '-=-' _.' | (_| | | (_| | | | | | | (_| | | (_| | | | | |
'-----' \__,_| \__,_| |_| |_| \__,_| \__,_| |_| |_|
```
Is an interpreter for the [Monkey language](https://monkeylang.org/) built in Go.
## Usage
One can use the REPL or feed a `.mon` file into the interpreter. After compiling the binary, use the interpreter like so:
```bash
ohah examples/add.mon
```
## Running the REPL
```bash
make repl
```
## Building the interpreter
```bash
make build
```
## Running the tests
```bash
make test
```