-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Circular grammar inclusion causes stack overflow in the tool. #2296
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
Comments
aermicioi
added a commit
to aermicioi/antlr4
that referenced
this issue
May 8, 2022
Visited set is now passed across internal invocations of Grammar#loadImportedGrammars of each imported grammar, to retain the knowledge if imported sets.
aermicioi
added a commit
to aermicioi/antlr4
that referenced
this issue
May 8, 2022
Visited set is now passed across internal invocations of Grammar#loadImportedGrammars of each imported grammar, to retain the knowledge if imported sets.
aermicioi
added a commit
to aermicioi/antlr4
that referenced
this issue
May 8, 2022
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>
KvanTTT
pushed a commit
to KvanTTT/antlr4
that referenced
this issue
Jul 3, 2022
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>
parrt
pushed a commit
that referenced
this issue
Jul 5, 2022
@parrt it's fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The title says it all. If G1 includes G2 etc. ... which includes G1 then the antlr tool crashes with stack overflow. It should rather print out some error diagnostics.
Here is an example tested with the version 4.7.1 of the tool :
The text was updated successfully, but these errors were encountered: