/TSMonkey

An implementation of the monkey language on TypeScript

Primary LanguageTypeScriptApache License 2.0Apache-2.0

TSMonkey

An implementation of the Monkey Language on TypeScript running on Bun

TSMonkey has many sibling implementations

Status

The book (Writing An Interpreter In Go) 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:

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