DeepRead
Cover of The Definitive ANTLR Reference

The Definitive ANTLR Reference

Terence Parr · 2011

Programming and computer science › Compilers and interpreters

#5,311 most recommended

About the book

A reference and tutorial on ANTLR, the parser generator that turns a grammar file into a lexer, parser, and tree walker. It covers grammar syntax, lexer and parser rules, actions, attributes, and AST construction, with a focus on building domain-specific languages and language tools in Java and other target languages. Language grammars can be written as a high-level, declarative specification from which the recognizer is generated, rather than hand-coded. The book contends that ANTLR's LL(*) parsing strategy lets grammar writers express real languages without manual lookahead tricks or left-recursion workarounds. It also treats lexing, parsing, and tree walking as separate, composable stages, and presents building small languages as a practical technique for ordinary software work.

Written by Claude from what it knows of this book.

What Hacker News says 71% recommend · 0% critical

0242010201520202017 peak · 2
This bookAverage book in Compilers and interpreters

In the commenters’ own words

What Open Library readers say

No Open Library reader has rated it yet.

  • 1 want to read
  • 0 reading
  • 0 have read

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

Details

First published
2011
ISBN
9780978739256
Editions known
2 at Open Library
Open Library
OL8848833W

GrammarParsing (Computer grammar)Programming languagesProgramming languages (Electronic computers)Syntax

Explore in the mosaic

Read next: its neighbours on the mosaic