public class AntlrTest
extends Object
Parser for the 0.1 config format
Meh, class com.hp.hpl.jena.sparql.lang.ParserSPARQL11
would be pretty hard to adapt; there seems to be no way
of getting a JavaCharStream into it in order to have
line-column numbers in the error messages.
How to work with antlr
http://www.antlr.org/wiki/pages/viewpage.action?pageId=789
How to use tree grammars
http://jnb.ociweb.com/jnb/jnbJun2008.html#OurTreeGrammar
How to do custom error recovery
http://www.antlr.org/wiki/display/ANTLR3/Custom+Syntax+Error+Recovery
Tree construction, custom error nodes
http://www.antlr.org/wiki/display/ANTLR3/Tree+construction
- Author:
- raven