/lox

Code from “Crafting Interpreters”

Primary LanguageC

Lox

Lox is a programming language designed by Robert Nystrom for his book titled Crafting Interpreters. I'd like to express my gratitude to Nystrom for his wonderful work.

This repository contains code that I typed down when reading Nystrom's book. It contains two parts:

  • jlox: a Lox interpreter written in Java
  • clox: a Lox interpreter written in C

Most of the lines of code are directly from the book, while others are my own solutions to some of the challenges in the book. Comments are either sentences from the text of the book or my personal understanding of the content.

Licenses

To comply with Nystrom's original license, the comments in the source files (.java, .c, and .h) are licensed under the CC BY-NC-ND 4.0 License. Other contents are under the MIT License.