ts-monkey

所属分类:代码编辑器
开发工具:TypeScript
文件大小:448KB
下载次数:0
上传日期:2023-01-05 16:24:26
上 传 者sh-1993
说明:  Monkey编程语言的TypeScript实现和浏览器编辑器。
(A TypeScript implementation and in-browser editor for the Monkey programming language.)

文件列表:
.babelrc (32, 2020-04-09)
.eslintignore (235, 2020-04-09)
.eslintrc.js (397, 2020-04-09)
LICENSE (1068, 2020-04-09)
components (0, 2020-04-09)
components\Divider.tsx (297, 2020-04-09)
components\Editor.module.css (28, 2020-04-09)
components\Editor.tsx (706, 2020-04-09)
components\LeftPane.tsx (488, 2020-04-09)
components\RightPane.tsx (3934, 2020-04-09)
components\SplitPane.tsx (394, 2020-04-09)
components\Tab.tsx (648, 2020-04-09)
components\Workspace.tsx (1844, 2020-04-09)
config (0, 2020-04-09)
config\jest (0, 2020-04-09)
config\jest\cssTransform.js (125, 2020-04-09)
docs (0, 2020-04-09)
docs\language.md (3355, 2020-04-09)
jest.config.js (557, 2020-04-09)
language (0, 2020-04-09)
language\__snapshots__ (0, 2020-04-09)
language\__snapshots__\parser.test.ts.snap (12916, 2020-04-09)
language\ast.ts (2641, 2020-04-09)
language\builtins.ts (2641, 2020-04-09)
language\evaluator.test.ts (25135, 2020-04-09)
language\evaluator.ts (10417, 2020-04-09)
language\lexer.test.ts (3267, 2020-04-09)
language\lexer.ts (4454, 2020-04-09)
language\object.ts (3079, 2020-04-09)
language\parser.test.ts (17984, 2020-04-09)
language\parser.ts (11953, 2020-04-09)
language\printer.test.ts (9812, 2020-04-09)
language\printer.ts (2246, 2020-04-09)
language\token.ts (1056, 2020-04-09)
... ...

# ts-monkey A TypeScript implementation of the [monkey language](https://monkeylang.org/) along with an in-browser editor, interpreter, and AST explorer. ![TS Monkey web editor](./ui.png "ts-monkey web editor") For details on the Monkey language see the [unofficial docs](docs/language.md) in this repo or [monkeylang.org](https://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](https://nextjs.org/). Source code for the Monkey interpreter lives in `language/` and the rest of the files are organized as a standard [Next.js application](https://nextjs.org/docs/getting-started). 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 - [Writing an Interpreter in Go](https://interpreterbook.com/): the book and Go implementation that the `ts-monkey` interpreter is based on - [AST Explorer](https://astexplorer.net/): a web tool for exploring ASTs that inspired the `ts-monkey` UI

近期下载者

相关文件


收藏者