Build your own language with ANTLR! ANTLR v4 has been rewritten from scratch to make it easier than ever to build parsers and the language applications built on top. This completely rewritten new edition of the bestselling 'Definitive ANTLR Reference' shows you how to take advantage of these new features.
Terence Parr, the ANTLR creator and project lead, is your guide as you identify grammar patterns and then start building increasingly complex grammars. You'll create 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. You'll also see how to take absolute control over parsing by embedding Java actions into the grammar.
Packed with real-world examples and tutorials, this book is your ticket to becoming a parsing guru!