/tslox

Port of jlox (craftinginterpreters.com) to TypeScript

Primary LanguageTypeScript

Crafting Interpreters Part 2 in JavaScript

This repo will follow the book Crafting Interpreters by Bob Nystrom. In Part 1, Nystrom introduces jargon and context for programming language/interpreter design. Then in Part 2, Nystrom walks through the construction of an interpreter for his Lox language in Java. Here, we will implement that same interpreter in TypeScript (JavaScript with types).

The Lox Language

This chapter of Crafting Interpreters offers a verbose but complete description of the language.