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 circular grammar import stack overflow #3771

Merged
merged 2 commits into from
Jul 5, 2022

Conversation

KvanTTT
Copy link
Member

@KvanTTT KvanTTT commented Jul 4, 2022

fixes #2296

aermicioi and others added 2 commits July 4, 2022 00:55
Visited set is now passed across internal invocations of Grammar#loadImportedGrammars of each imported grammar, to retain the knowledge if imported sets.

Signed-off-by: aermicioi <alexandru.ermicioi@gmail.com>
Signed-off-by: Ivan Kochurkin <kvanttt@gmail.com>
@KvanTTT KvanTTT mentioned this pull request Jul 4, 2022
@parrt parrt added this to the 4.10.2 milestone Jul 5, 2022
@parrt parrt merged commit d5c5e6f into antlr:dev Jul 5, 2022
@KvanTTT KvanTTT deleted the fix-circular-grammar-stack-overflow branch July 5, 2022 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants