REx generated XQuery 4 parser
- Java 96.5%
- XQuery 2.6%
- XSLT 0.7%
- Batchfile 0.2%
| .vscode | ||
| doc | ||
| grammar | ||
| scripts | ||
| test | ||
| todo | ||
| .gitignore | ||
| basex-home.bat | ||
| build.xml | ||
| LICENSE | ||
| README.md | ||
xq4-parser
REx generated XQuery 4 parser
setup
The Ebnf is taken from Gunther Rademacher's rex-parser-generator XQuery-40.ebnf
The script scripts/rex.xq can generate XQuery or Java parser code from this.
The npm package.json script javac can create a jar file from the Java source.
C:\Users\mrwhe\git\quodatum\xq4-parser>basex-home 12
Successfully activated version "12"
BASEX_HOME = C:\Users\mrwhe\Desktop\basex.home\basex.124
PATH prefix = C:\Users\mrwhe\Desktop\basex.home\basex.124\bin
C:\Users\mrwhe\git\quodatum\xq4-parser>basex scripts/rex.xq
build
basex scripts/buildxq4.xq
test
Add jar to lib/custom
basex -r 5 -o junk -V 1 test/test-java.xq