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

Assign token names to string literals in parse rule contexts #2358

Merged

Conversation

KvanTTT
Copy link
Member

@KvanTTT KvanTTT commented Sep 9, 2018

fixes #2347

@parrt
Copy link
Member

parrt commented Nov 9, 2018

Hmm...well, this would have to be implemented in all other targets optimally. I am not sure diverging even more with Java target is worth the increased value.

@KvanTTT
Copy link
Member Author

KvanTTT commented Nov 9, 2018

It works for all targets for now. But I'll test it on our big grammars set ASAP.

@parrt
Copy link
Member

parrt commented Nov 9, 2018

Oh, i get it. it doesn't change code gen, it just makes it look like the token ref had a label. ok. please do test on a few big grammars. thanks.

@KvanTTT
Copy link
Member Author

KvanTTT commented Nov 18, 2018

Eventually, I've checked the new version on our grammars-v4 repository on Java runtime. Now I can say that everything is fine and I suggest to merge it :)

@KvanTTT KvanTTT force-pushed the AssignTokenNamesToStringLiteralsInParseRuleContexts branch from 8803407 to 2f7c5bf Compare November 18, 2018 21:58
@parrt parrt added the code-gen label Nov 19, 2018
@parrt parrt added this to the 4.7.2 milestone Nov 19, 2018
@parrt parrt merged commit 5fc056d into antlr:master Nov 19, 2018
hermansje added a commit to datacamp/antlr-plsql that referenced this pull request Mar 11, 2019
hermansje added a commit to datacamp/antlr-plsql that referenced this pull request Mar 11, 2019
@KvanTTT KvanTTT deleted the AssignTokenNamesToStringLiteralsInParseRuleContexts branch September 4, 2019 10:19
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.

Assign token name to generated ParserRuleContext for automatically resolved tokens
2 participants