A Typescript implementation for the Lox programming language, described by Bob Nystrom in his awesome book Crafting Interpreters. The syntax is slightly changed based on my personal preferences.
The implementation is not yet complete, as it still lacks closures and classes.
Run the file index.ts using ts-node
and provide a parameter for the file to be parsed. From the directory src
:
ts-node index.ts <my-lox-file>
This repository used the typescript-starter library.