Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alicewriteswrongs/ts-lox
a TypeScript implementation of the tree-walk interpreter for Lox
https://github.com/alicewriteswrongs/ts-lox
Last synced: 24 days ago
JSON representation
a TypeScript implementation of the tree-walk interpreter for Lox
- Host: GitHub
- URL: https://github.com/alicewriteswrongs/ts-lox
- Owner: alicewriteswrongs
- Created: 2022-03-07T22:27:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-06T14:07:30.000Z (over 2 years ago)
- Last Synced: 2024-10-09T01:42:36.057Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 234 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ts-lox
This is my TypeScript implementation of the JLox tree-walk interpreter for the
Lox programming language, as presented in [Crafting
Interpreters](https://craftinginterpreters.com/).Run it by just doing:
```sh
./src/Lox.ts ./path/to/script.lox
```or
```sh
./src/Lox.ts
```to get a REPL. You can also pass a `--printAST` flag to print out a string
representation of the AST for your program (or the line you just entered at the
REPL).The only dependency is Deno.