The Definitive ANTLR Reference: Building Domain-Specific Languages now in print
“The Definitive ANTLR Reference: Building Domain-Specific Languages” by ANTLR creator Terence Parr is now in paperback and shipping this week.
There’s a lot of interest in Domain-specific languages these days, and for good reason. Domain-specific languages (DSLs) represent a more natural, high fidelity, robust, and maintainable means of encoding a problem than simply writing software in a general-purpose language. For example, NASA uses domain-specific command languages for space missions to improve reliability, reduce risk, reduce cost, and increase the speed of development. Even the first Apollo guidance control computer from the 1960s used a domain-specific language that supported vector computations.
In “The Definitive ANTLR Reference: Building Domain-Specific Languages,” author Terence Parr shows how to use the brand new, latest version of ANTLR to create DSLs, convert text formats, and more.
ANTLR is a parser generator: a program that generates code to translate a specified input language into a nice, tidy data structure. While that might sound exotic, it’s much more down to earth than that. Terence explains, “You might think that parser generators are only used to build compilers. But in fact, programmers use parser generators to build translators and interpreters for all sorts of things, including proprietary data formats, common network protocols, text processing languages, and domain-specific programming languages.”
ANTLR v3 is the most powerful, easy-to-use parser generator built to date, and represents the culmination of more than 15 years of research by Dr. Parr. This book is the essential reference guide to using this completely rebuilt version of ANTLR, with its amazing new LL(*) parsing technology, tree construction facilities, StringTemplate code generation template engine, and sophisticated ANTLRWorks GUI development environment.
You’ll learn all about ANTLR grammar syntax, resolving grammar ambiguities, parser fault tolerance and error reporting, embedding actions to interpret or translate languages, building intermediate- form trees, extracting information from trees, generating source code, and how to use the ANTLR Java API.
“The Definitive ANTLR Reference deserves a place in the bookshelf of anyone who ever has to parse or translate text. ANTLR is not just for language designers any more.” —Bob McWhirter Founder of the JBoss Rules Project JBoss.org
Available now from http://pragmaticprogrammer.com/titles/tpantlr/
- Manage It! Your Guide to Modern, Pragmatic Project Management
- GIS for Web Developers: Adding ‘Where’ to Your Web Applications
- The Accessible Web: Creating Content for Everyone
- Release It! Design and Deploy Production-Ready Software
- Programming Erlang: Software for a Concurrent World (Beta)
- TextMate: Power Editing for the Mac
Enjoy, and thanks for your continued support!
Andy and Dave www.PragmaticProgrammer.com