https://github.com/marioariasc/tsmonkey
An implementation of the monkey language on TypeScript
https://github.com/marioariasc/tsmonkey
monkey monkey-lang typescript
Last synced: about 1 year ago
JSON representation
An implementation of the monkey language on TypeScript
- Host: GitHub
- URL: https://github.com/marioariasc/tsmonkey
- Owner: MarioAriasC
- License: apache-2.0
- Created: 2022-07-16T15:04:36.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-05T16:02:54.000Z (over 2 years ago)
- Last Synced: 2025-03-24T11:09:50.138Z (about 1 year ago)
- Topics: monkey, monkey-lang, typescript
- Language: TypeScript
- Homepage:
- Size: 113 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TSMonkey
An implementation of the [Monkey Language](https://monkeylang.org/) on TypeScript running on [Bun](https://bun.sh/)
TSMonkey has many sibling implementations
* Kotlin: [monkey.kt](https://github.com/MarioAriasC/monkey.kt)
* Crystal: [Monyet](https://github.com/MarioAriasC/monyet)
* Scala 3: [Langur](https://github.com/MarioAriasC/langur)
* Ruby 3: [Pepa](https://github.com/MarioAriasC/pepa)
* Python 3.10 [Bruno](https://github.com/MarioAriasC/bruno)
* Lua [Julieta](https://github.com/MarioAriasC/julieta)
## Status
The book ([Writing An Interpreter In Go](https://interpreterbook.com/)) is fully implemented.
TSMonkey will not have a compiler implementation
## Commands
### Prerequisites
Bun installed and running in your machine. You can test it by running the command:
```shell
bun --version
```
```
1.0.21
```
| Command | Description |
|------------------------|----------------------------------------------------|
| `bun install` | Install all the packages using bun |
| `bun jest` | Run tests |
| `bun run benchmark.ts` | Run the classic monkey benchmark (`fibonacci(35)`) |
| `bun run index.ts` | Run the TSMonkey REPL |