The Definitive ANTLR 4 Reference now in beta
September 19, 2012
The original Definitive ANTLR Reference was a bestseller, for good reason: programmers run into parsing problems all the time. Whether it’s a data format like JSON, a network protocol like SMTP, a server configuration file for Apache, a PostScript/PDF file, or a simple spreadsheet macro language, you need proper tools to support professional parsing. You need ANTLR v4, and this book, now completely revised and rewritten for v4 of ANTLR.
Come and get the beta while it’s hot, from pragprog.com/book/tpantlr2.
The Definitive ANTLR 4 Reference
Build your own languages with ANTLR v4, using ANTLR’s new advanced parsing technology. In this book, you’ll learn how ANTLR automatically builds a data structure representing the input (parse tree) and generates code that can walk the tree (visitor). You can use that combination to implement data readers, language interpreters, and translators.
You’ll start by learning how to identify grammar patterns in language reference manuals and then slowly start building increasingly complex grammars. Next, you’ll build applications based upon those grammars by walking the automatically generated parse trees. Then you’ll tackle some nasty language problems by parsing files containing more than one language (such as XML, Java, and Javadoc). You’ll also see how to take absolute control over parsing by embedding Java actions into the grammar.
You’ll learn directly from well-known parsing expert Terence Parr, the ANTLR creator and project lead. You’ll master ANTLR grammar construction and learn how to build language tools using the built-in parse tree visitor mechanism. The book teaches using real-world examples and shows you how to use ANTLR to build such things as a data file reader, a JSON to XML translator, an R parser, and a Java class->interface extractor. This book is your ticket to becoming a parsing guru!
Now available in beta from pragprog.com/book/tpantlr2.
About Pragmatic Bookshelf
Please note our ebooks do not contain any Digital Restrictions Management, and have always been DRM-free; we pioneered the beta book concept; we’ll email your ebook to your Kindle and synch your ebooks amongst your devices via Dropbox, including updates! (see our FAQ) read via Readmill, for social highlighting and sharing; and you can always come back and re-download your books when needed. We’re here to make your life easier.
Don’t Get Left Out
Are your friends jealous that you get these spiffy email newsletters and they don’t? Clue them in that all they need to do is create an account on pragprog.com (email address and password is all it takes) and select the checkbox to receive newsletters.
Are you following us on Twitter and/or Facebook? Here’s where you can find us and keep up with the latest news and commentary, and occasional discounts.
- Practical Vim in print
- Outsource It! A No-Holds-Barred Look at the Good, the Bad, and the Ugly of Offshoring Tech Projects in beta
- Core Data, Second Edition in beta
- Thoughtworks Anthology, Volume II in print
Thanks for your continued support,
Andy & Dave
Books • eBooks • Screencasts • PragPub Magazine