Java News Brief (JNB): ANTLR 3.0
This month's OCI Java News Brief (JNB) article is out. In this article, Mark Volkmann continues his effort in getting you to be proficient with ANTLR 3.0. (Actually, you need ANTLR 3.1b1 to compile the grammars in the article.)
Mark Volkmann:ANTLR 3.0
by
R. Mark Volkmann, Partner/Software Engineer
Object Computing, Inc. (OCI)Table of Contents
- Part I - Overview
- Part II - Jumping In
- Part III - Lexers
- Part IV - Parsers
- Part V - Tree Parsers
- Part VI - ANTLRWorks
- Part VII - Putting It All Together
- Part VIII - Wrap Up
As always with JNB articles, this one is intended for you to follow along. So download ANTLR 3.1b1, fire up your bash and vim, and learn some language recognition tricks.
On a related note, Martin Fowler recently blogged about a phenomenon he calls Parser Fear:
Martin Fowler: I talk quite a bit with people about DomainSpecificLanguages these days and a common reaction I get to external DSLs is that it's hard to write a parser.
He went on to say that creating an external DSL with ANTLR is just as fast as using XML files, where supposedly you get the parser for free.