Release 3.7.0 - #728
Merged
Merged
Release 3.7.0#728
Conversation
kaby76
marked this pull request as ready for review
September 26, 2026 09:48
Copilot stopped reviewing on behalf of
kaby76 due to an error
September 26, 2026 10:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 3.7.0 adds opt-in indirect left-recursion support to the interpreted parser, explicit start-rule selection, and the initial G4Plus grammar syntax.
Interpreted parsing
trparse --indirect-left-recursionfor mutually/indirectly left-recursive interp grammars. Fixed-point, seed-growing evaluation reconstructs the original grammar-rule nesting in the parse tree.trparse --start-rulefor selecting the entry rule, including interpreted parsing. Maketrgenreport multiple EOF-terminated start-rule candidates unless an explicit start rule is supplied; honortrgen --start-rulein that case.G4Plus syntax
.g4pand.g4+files or explicitly withtrparse -t G4Plus.fragmentsyntactically in each grammar kind.Identifier : IdentifierChars - (ReservedKeyword | BooleanLiteral | NullLiteral);, with an example.G4Plus support in this release parses grammar source only. Generating
.interptables from G4Plus, enforcing set-difference matching, and the shared backend for additional EBNF front ends are deferred to 4.0.0.Examples and generated tests
examples/ixml-to-antlr4/convert-ixml-to-antlr4.sh, which accepts an iXML file and writes an ANTLR4 grammar to stdout. It locates its XQuery scripts relative to itself, so it can run from another working directory;run-example.shuses the reusable converter..trqassertions withtrash xquery -q. Nonempty assertion output or an unsuccessful query makes the test fail.Regression coverage
Add tests for indirect recursion acceptance, reconstructed trees, and rejection without the option; explicit start-rule selection and diagnostics; and G4Plus syntax and CLI integration. The G4Plus verification run passed 76 tests, including 64 existing
.g4corpus files.Full changes: 3.6.0...3.7.0
Pull request: #728