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

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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