DeepRead
Cover of Writing An Interpreter In Go

Writing An Interpreter In Go

Thorsten Ball · 2018

Programming and computer science › Compilers and interpreters

#415 most recommended

About the book

A hands-on guide to building an interpreter for Monkey, a small C-style dynamically typed language, in Go. It covers the lexer, the Pratt parser and AST, and a tree-walking evaluator, including environments, functions, closures, strings, arrays, and hash maps. Building a working language implementation is within reach of an ordinary programmer, and the core pieces are small, understandable components rather than deep theory. The book's approach is to build each stage incrementally with tests and to show that a Pratt parser handles operator precedence in a compact, extensible way. It presents the tree-walking evaluator as a clear model of how a language runs, which readers can then extend or compare with other approaches.

Written by Claude from what it knows of this book.

What Hacker News says 81% recommend · 2% critical

010202016202020262020 peak · 19
This bookAverage book in Compilers and interpreters

In the commenters’ own words

What Open Library readers say 4.00 from 1 rating

  1. 50
  2. 41
  3. 30
  4. 20
  5. 10
  • 7 want to read
  • 2 reading
  • 2 have read

Only 1 rating: treat the average as a hint.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2018
ISBN
9783982016115
Editions known
2 at Open Library
Open Library
OL24141621W

Go (Computer program language)Mathematics

Explore in the mosaic

Read next: its neighbours on the mosaic