Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioAriasC committed Dec 13, 2021
1 parent 0cea77f commit 9d5c6fa
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
# monyet
# Monyet

[Crystal](https://crystal-lang.org/reference/1.2/index.html) implementation of the [Monkey Language](https://monkeylang.org/)

Monyet has a sibling implementation for Kotlin: [monkey.kt](https://github.com/MarioAriasC/monkey.kt)

## Status

The two books ([Writing An Interpreter In Go](https://interpreterbook.com/)
and [Writing A Compiler in Go](https://compilerbook.com/)) are implemented.

## Commands

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

| Script | Description |
|-----------------|--------------------------------------------------------------------------------------------------------------------|
| `tests.sh` | Run all the tests |
| `checks.sh` | Run format tool and ameba checks |
| `build.sh` | Release build |
| `benchmarks.sh` | Run the classic monkey benchmark (fibonacci(35)), requires one command (`--eval`,`--eval-fast`,`--vm`,`--vm-fast`) |
| `repl.sh` | Run the Monyet REPL |
2 changes: 2 additions & 0 deletions benchmarks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
./bin/monyet "$1"
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
shards build --release
4 changes: 4 additions & 0 deletions checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
crystal tool format
shards install
crystal bin/ameba.cr
2 changes: 2 additions & 0 deletions repl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
./bin/monyet --repl
2 changes: 2 additions & 0 deletions tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
crystal spec --verbose

0 comments on commit 9d5c6fa

Please sign in to comment.