Wednesday, 15 April 2009

Antlr 3 Tips

AntlrWorks
When dealing with large grammars start AntlrWorks with more memory otherwise it can hang.
java -Xmx1g -jar antlrworks-1.2.3.jar

Antlr 3 Parser
Some Antlr rule names are not valid in Java and will cause a compilation issue.
For example: byte: ... ;