Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #4320--Export missing types for Dart runtime #4321

Closed
wants to merge 4 commits into from

Conversation

kaby76
Copy link
Contributor

@kaby76 kaby76 commented Jun 20, 2023

This PR fixes #4320.

This change exports additional data types for the Dart runtime. These data types are required for ports of complex grammars, like grammars-v4/python/python3, where additional tokens have to be created and emitted in the token stream.

@kaby76
Copy link
Contributor Author

kaby76 commented Jun 21, 2023

From the build:

 Warning: The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672
  Version 2.x was not found in the local cache
  Error: The version '2.x' with architecture 'x64' was not found for macOS 11.7.7.
  The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

Yes, what day is it today?? June 21.

We really should not be trying to support Python 2 with Antlr. Drop the target.

@kaby76
Copy link
Contributor Author

kaby76 commented Jun 30, 2023

Replaced this PR with #4340. Same code changes, except that it now passes DCO.

teverett pushed a commit to antlr/grammars-v4 that referenced this pull request Jul 8, 2023
* Fixes for #3539

Typescript cannot work because the declaration of the constructor for CommonToken() is wrong.

* Fix python/python3/TypeScript

* Remove grammars that only add to confusion.

* Update Dart port, but this cannot work because Antlr 4.13.0 Dart runtime missing types.

* Add Dart port for python3 grammar.

This base class for Dart works, but requires changes to Antlr. antlr/antlr4#4321

* Updates, but incomplete, for Cpp.

* Additional changes.

* Updates to get Cpp target to link.

* Changes for working Cpp target.

* Add in Cpp to workflow.

* Updates.

* Adjust to for rebuild.

* Remove bothersome tabs from source code.

* Rename tests into "small" and "large" tests to reflect that "slow parsers work on the small test suite".

* Fix names of test directories in desc.xml.

* Update for Go target. Remove python3-cpp.

* Getting Go target compiling--does not work yet.

* Fixes for Go target of python3 grammar.

This port works but only if the Go runtime is fixed, and "Virt" is assigned in the driver. See antlr/antlr4#4343 antlr/antlr4#4342

* Fix desc.xml
rvrooman-codelogic pushed a commit to CodeLogicIncEngineering/grammars-v4-public-fork that referenced this pull request Jul 27, 2023
* Fixes for antlr#3539

Typescript cannot work because the declaration of the constructor for CommonToken() is wrong.

* Fix python/python3/TypeScript

* Remove grammars that only add to confusion.

* Update Dart port, but this cannot work because Antlr 4.13.0 Dart runtime missing types.

* Add Dart port for python3 grammar.

This base class for Dart works, but requires changes to Antlr. antlr/antlr4#4321

* Updates, but incomplete, for Cpp.

* Additional changes.

* Updates to get Cpp target to link.

* Changes for working Cpp target.

* Add in Cpp to workflow.

* Updates.

* Adjust to for rebuild.

* Remove bothersome tabs from source code.

* Rename tests into "small" and "large" tests to reflect that "slow parsers work on the small test suite".

* Fix names of test directories in desc.xml.

* Update for Go target. Remove python3-cpp.

* Getting Go target compiling--does not work yet.

* Fixes for Go target of python3 grammar.

This port works but only if the Go runtime is fixed, and "Virt" is assigned in the driver. See antlr/antlr4#4343 antlr/antlr4#4342

* Fix desc.xml
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.

Antlr Dart runtime still does not export critical types
1 participant