You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changes
New Features
-ambiguity option - with -glr or -glalr, -ambiguity minimal selects the alternative with the fewest parse events, and -ambiguity shift prefers the alternative that shifts a terminal where the alternatives first diverge. With -tree, the selected ambiguity is reported through ambiguity(begin, end) on the event handler; the default reject keeps failing on ambiguous input
-codepoints option - Java code generation can now take int[] codepoints as input
-xmlonly option - create the XML representation of a grammar without generating a parser
BaseX XQuery grammar - added to the sample grammars
Bug Fixes
LR(k>1) lookahead - now uses item-local follow sets (#65)
Error propagation - errors are now propagated from the secondary to the primary parser (#64)
-nolexer with -glr/-glalr - fixed the combination of these options, and the tokenSet size with -nolexer
TypeScript - fixed the trace output when generated without -main
Start symbol end offset - fixed the end offset reported for the start symbol
Generated code - fixed errors in ASSERTIONS/SELFTEST code blocks, and removed unused variables from generated code
Improvements
Faster Java parsers - improved Java class initialization performance, and skipped the push+pop for shift+reduce operations
BaseX code generation - adapted to BaseX 13.0 (use v6.2 for BaseX 12.x)
Dependencies - updated Saxon-HE (13.1), JUnit (6.1.3) and the Gradle wrapper. Running the tests now requires a Java 21 JDK.