Skip to content

typescript implementation of the sample code found in Thorsten Balls Book 'Writing an interpreter in Go'

Notifications You must be signed in to change notification settings

thekorn/monkey-ts

Repository files navigation

writing a interpreter for the monkey programming language in typescript

Build and test

This this closely following the book Writing an interpreter in Go by Thorsten Balls.

🚀 Project Structure

Inside the project, you'll see the following folders and files:

.
├── interpreter
│  ├── jest.config.js
│  ├── package.json
│  ├── src
│  │  ├── ast.ts
│  │  ├── jest.d.ts
│  │  ├── lexer.test.ts
│  │  ├── lexer.ts
│  │  ├── parser.test.ts
│  │  ├── parser.ts
│  │  ├── repl.ts
│  │  ├── token.ts
│  │  └── utils.ts
│  └── tsconfig.json
├── package.json
└── README.md

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
pnpm install Installs dependencies
pnpm test -r run all tests

About

typescript implementation of the sample code found in Thorsten Balls Book 'Writing an interpreter in Go'

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published