projects / lox

Lox interpreter

C++ · interpreters since 2026 in progress: tree-walk interpreter under way source

This is my implementation of Lox from Robert Nystrom’s Crafting Interpreters. The book’s first interpreter is in Java; I’m writing mine in C++, which means handling memory and dynamic values myself.

Where it is now

  • Scanner turns source text into tokens

Next

  • Parser and syntax tree
  • Evaluating expressions, then statements and variables
  • Later: the bytecode virtual machine from part two of the book