Skip to content

Conversation

@kaby76
Copy link
Contributor

@kaby76 kaby76 commented Feb 25, 2025

This build is mainly to fix one issue: #4434 This PR updates the Trash Toolkit to the latest available, version 0.23.16. In doing so, it also includes a couple of new features. One is related to the discussion on maintaining the PT MySQL. It also updates the build to include the new Antlr-ng generator because that is required for testing the Antlr4ng runtime. The runtime no longer wraps the old Java parser generator in the runtime.

The update fixes several problems with the grammar dependency analysis in trgen, which caused testing for #4424 to report "success" when it really failed; It should have warned that the changes to antlr/antlr4 contained errors, e.g., the use of "this" in the Python3 fork of the grammar, and the parse .errors file for three.g4 needed to be remastered.

Trgen works for all of grammars-v4, except for sql/hive/v3. It turns out that that grammar is invalid: #4428

In addition, this PR adds "cross-import grammar" testing. By that, one can write a grammar in one directory that uses Antlr import statements to override another grammar. To illustrate and test this capability, I added the trapc grammar. master...kaby76:grammars-v4:g4-4430

@kaby76 kaby76 marked this pull request as ready for review February 27, 2025 01:40
@kaby76 kaby76 marked this pull request as draft February 27, 2025 02:02
@kaby76 kaby76 marked this pull request as ready for review February 27, 2025 02:45
@kaby76
Copy link
Contributor Author

kaby76 commented Mar 2, 2025

Going to update to 0.23.16 and skip 0.23.15.

@kaby76 kaby76 marked this pull request as draft March 2, 2025 13:43
@kaby76 kaby76 changed the title [build] Update to version 0.23.15 of Trash Toolkit. [build] Update to version 0.23.16 of Trash Toolkit. Mar 3, 2025
@kaby76
Copy link
Contributor Author

kaby76 commented Mar 4, 2025

The antlr/antlr4 grammar was broken quite a bit, but the tester did not test it properly before committing the PR. Will remove all the broken ports, remaster the tests. Will need to redo the ports in target agnostic format later.

@kaby76 kaby76 marked this pull request as ready for review March 5, 2025 13:38
@teverett
Copy link
Member

teverett commented Mar 6, 2025

@kaby76 thanks!

@teverett teverett merged commit 349d8d1 into antlr:master Mar 6, 2025
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants