[antlr-interest] XQuery lexer/parser

Johannes.Lichtenberger Johannes.Lichtenberger at uni-konstanz.de
Sat Feb 18 11:03:34 PST 2012


Hello,

I maybe want to use an XQuery parser to implement som parts of XQuery,
for instance XPath 2.0 for a DOM-like tree-structure.

I downloaded http://code.google.com/p/xqgrammar/ and successfully
imported the project in eclipse with maven support. Now I have no clue
how to use the parsed rules. Maybe I have to implement specific parts in
XQParser or more specifically for Path expressions for instance in the
XPath parser which is called within the XQParser constructor. Buf I
think it will mess up the parser itself, thus maybe a callback for each
parsed rule would suffice. Furthermore I don't know if I would have to
parse a query twice if I want to do query rewritings.

But a first step with XPath axis steps and predicates would be ok, or
maybe parsing simple XQuery statements besides the FLOWR expression ;-)

regards,
Johannes


More information about the antlr-interest mailing list