News for hackers. Stuff that matters.
Re:Want to Write a Compiler? Just Read These Two Papers. by pella on Friday August 26, 2011 @06:03AM (#2927975)
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...

Re:Want to Write a Compiler? Just Read These Two Papers. by inoop on Friday August 26, 2011 @06:37AM (#2928036)
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.
Re:Want to Write a Compiler? Just Read These Two Papers. by tonyedgecombe on Friday August 26, 2011 @01:15PM (#2929113)
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.