/ts-monkey

A TypeScript implementation and in-browser editor for the Monkey programming language.

Primary LanguageTypeScriptMIT LicenseMIT

ts-monkey

A TypeScript implementation of the monkey language along with an in-browser editor, interpreter, and AST explorer.

TS Monkey web editor

For details on the Monkey language see the unofficial docs in this repo or monkeylang.org.

Structure

Currently, all files (for both the in-browser editor and core language) live in this project. This is for ease while building out the basic feature-set for the editor and language.

This project uses Next.js. Source code for the Monkey interpreter lives in language/ and the rest of the files are organized as a standard Next.js application.

Eventually the core language (source code for the Monkey interpreter) will most likely be moved into its own package.

Developing

To install dependncies:

$ yarn install

To start the dev server:

$ yarn dev

To run tests in watch mode:

$ yarn test

Credits