Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.