back

by pella·15y ago·view on hn ↗
The Definitive ANTLR Reference: Building Domain-Specific Languages

http://pragprog.com/book/tpantlr/the-definitive-antlr-refere...

-- + --

Language Implementation Patterns: Create Your Own Domain-Specific and General Programming Languages

"Learn to build configuration file readers, data readers, model-driven code generators, source-to-source translators, source analyzers, and interpreters. You don’t need a background in computer science—ANTLR creator Terence Parr demystifies language implementation by breaking it down into the most common design patterns. Pattern by pattern, you’ll learn the key skills you need to implement your own computer languages." http://pragprog.com/book/tpdsl/language-implementation-patte...

1 comments
ANTLR is great, but I also highly recommend xtext: http://www.eclipse.org/Xtext/. It generates a full lexer/parser, AST representation, does automatic cross-referencing, and even generates an Eclipse plugin for your language with syntax highlighting and code completion.
Although some of the examples in that book use ANTLR, they all cover the theory behind the use, it is much more than an ANTLR manual.