This repository is the companion to the book Crafting Interpreters. It contains the full source code for two interpreters (one in C and one in Java), the Markdown source of the book, the tooling to weave prose and code into a website, and build scripts to generate the executable interpreters. The book aims to teach from the ground up how to build a full-featured scripting language (called Lox) with parsing, AST, compiler / VM, garbage collection, classes, and more. Static site generator tooling to compose book + code into HTML. Markdown source of book chapters and text prose. Full interpreter implementation in C (clox).

Features

  • Full interpreter implementation in C (clox)
  • Full interpreter / bytecode VM in Java (jlox)
  • Markdown source of book chapters and text prose
  • Static site generator tooling to compose book + code into HTML
  • Test suite infrastructure for the interpreters
  • Build scripts / Makefile orchestration (build book, run interpreters, generate site)

Project Samples

Project Activity

See All Activity >

Follow Crafting Interpreters

Crafting Interpreters Web Site

Other Useful Business Software
Build a Custom Ad Server in Just Weeks Icon
Build a Custom Ad Server in Just Weeks

Adzerk's ad serving APIs allow developers to build and scale innovative, server-side ad platforms without reinventing the wheel.

Adzerk's APIs make it easy for engineers and PMs to build their own server-side, fully-customized ad server. Top e-retailers and user communities use Adzerk to build innovative ad servers to promote anything from native ads to internal content to sponsored listings (where vendors and sellers pay for their organic listing to be promoted in search and browsing results). Engineers reliably see a 90%+ reduction in dev time using Adzerk’s APIs versus doing it entirely from scratch. Adzerk’s customer list includes Fortune 500 brands, public companies, and unicorn startups, including Bed Bath & Beyond, LiveNation/TicketMaster, Wattpad, TradingView, imgur, Strava, and many more. Our Ad.Product community makes it easy for product managers, engineers, ad ops, and others to discover and discuss how to build innovative, user-first ad platforms.
Start Now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Crafting Interpreters!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C

Related Categories

C Programming Languages

Registered

2025-09-26