Skip to content

REx v6.3

Choose a tag to compare

@GuntherRademacher GuntherRademacher released this 12 Nov 16:44
· 18 commits to main since this release
0f6a800

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.