monyet

Version, currently main branch1 version
  • main branchlatestNov 8, 2026

github.com/MarioAriasC/monyet

An implementation of the monkey language on Crystal

19 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  monyet:
    github: MarioAriasC/monyet
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.21.0
License
MIT
Author
Mario Arias
Target
  • monyet from src/monyet.cr

Dependencies

Development Dependencies

  • ameba~> 1.6.4github: crystal-ameba/amebadev

README

Monyet

Crystal implementation of the Monkey Language

Monyet has a sibling implementation for Kotlin: monkey.kt

Status

The two books (Writing An Interpreter In Go and Writing A Compiler in Go) are implemented.

Commands

Before running the command you must have crystal and shards installed on your machine

ScriptDescription
tests.shRun all the tests
checks.shRun format tool and ameba checks
build.shRelease build
benchmarks.shRun the classic monkey benchmark (fibonacci(35)), requires one command (--eval,--eval-fast,--vm,--vm-fast)
repl.shRun the Monyet REPL