Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amiralies/reslox
ReScript implementation of lox interpreter
https://github.com/amiralies/reslox
Last synced: about 2 months ago
JSON representation
ReScript implementation of lox interpreter
- Host: GitHub
- URL: https://github.com/amiralies/reslox
- Owner: amiralies
- Created: 2021-10-20T22:50:53.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-05T18:57:49.000Z (over 2 years ago)
- Last Synced: 2023-02-28T12:51:24.403Z (almost 2 years ago)
- Language: ReScript
- Homepage:
- Size: 172 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reslox
ReScript implementation of lox interpreter
## Run
```sh
yarn # installs rescript compiler
node src/Main.bs.js
```## Notes
It passes the entire jlox test suite.
The code is a balance between idiomatic rescript and the book's code examples.
There's no resolver since the environment is implemented (mostly) using immutable data structures
but there's an static analyzer which detects errors like using `this` at top level.