# Crafting Interpreters

Source: https://listme.name/books/crafting-interpreters
Website: https://craftinginterpreters.com/

Free web book on writing a programming language interpreter

Crafting Interpreters is a book by Robert Nystrom that walks readers through building a full scripting language, from scanning and parsing to a bytecode virtual machine. The complete web version is free to read on the author's site. Print, eBook, PDF and EPUB editions are sold through the retailers the site lists.

The book builds Lox, a dynamically typed language, twice: first as a tree-walking interpreter, then as a faster bytecode virtual machine. It covers scanning, parsing, variables, functions, closures, classes and inheritance along the way. Each step is short, and the author asks readers to write each line themselves so they understand every part.

The site presents the book in four formats: print, eBook, PDF and free web. The web version costs nothing, and the other formats are paid. The text suits programmers who want to understand how languages work from the inside. It is long and is not a quick reference, and its focus is building a language tool rather than writing applications.

- Free | Read online/PDF/EPUB/Kindle/Print
- Price: Full web edition free; print and ebook editions sold separately
- Checked: 2026-10-10

## Strengths

- Full book free on the web
- Builds two interpreters step by step
- Clear explanations of language internals

## Limits

- Long, with a lot of code to write
- Not a reference for any one language

## Rankings

- #4 of 11 in [best Programming books](https://listme.name/best/programming-books), score 90.5: A free, step-by-step build of two interpreters, with the full web edition at no cost. It is long and asks for a lot of code, which keeps it just below the top picks.

## Alternatives

- [Designing Data-Intensive Applications](https://listme.name/books/designing-data-intensive-applications), score 94.0
- [The Pragmatic Programmer, 20th Anniversary Edition](https://listme.name/books/the-pragmatic-programmer), score 92.5
- [Structure and Interpretation of Computer Programs](https://listme.name/books/sicp), score 91.0
- [Eloquent JavaScript, 4th Edition](https://listme.name/books/eloquent-javascript), score 89.5
- [Software Engineering at Google](https://listme.name/books/software-engineering-at-google), score 89.0
- [Fluent Python](https://listme.name/books/fluent-python), score 88.5
- [The Rust Programming Language](https://listme.name/books/rust-programming-language), score 88.0
- [Refactoring: Improving the Design of Existing Code](https://listme.name/books/refactoring), score 86.5

The entry date records the last review, not a current vendor quote. Confirm price, renewal, cancellation, compatibility and data handling on the official site before committing.
