Thursday, December 27, 2007

Short Post, an working example for a meta language with Antlr 3.0+

There aren't too many FULL examples of a Antlr based grammar for the 3.0+ versions. If you actually research the grammar file, it isn't too difficult to go from vers 2 to 3, but when you are starting out it may throw some people off.

In any case, I was working on a grammar for my botlist remote definition file and threw together a grammar. The full source is available and it will parse an example grammar and print out critical tokens and values.

No comments: