An interpreter of the Lox scripting language, implemented in TypeScript.
Lox is a scripting language described in Bob Nystrom's book Crafting Interpreters. Following Part II of the book, I complete a tree-walk interpreter of Lox using TypeScript, as a writing-from-scratch exercise.
Clone this repository and run the CLI as:
# Interpreter mode
npm run tslox
# Script mode
npm run tslox script.lox
- Book: Crafting Interpreters
- Blog post: Crafting "Crafting Interpreters"