previous  next

Parsing XQuery

The WG provides an open source XQuery parser (maintained by Scott Boag) that is derived from the XQuery specification EBNF (using JavaCC).

1 + 2
|XPath2
| QueryList
|    Module
|       MainModule
|          Prolog
|          QueryBody
|             Expr
|                AdditiveExpr +
|                   PathExpr
|                      IntegerLiteral 1
|                   PathExpr
|                      IntegerLiteral 2
Success!!!!