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

Generated rule contexts can conflict with names of core ANTLR classes #77

Closed
sharwell opened this issue Oct 26, 2012 · 1 comment
Closed

Comments

@sharwell
Copy link
Member

If a grammar contains a rule with one of the following names, the generated code will not compile due to a name conflict.

  • parserRule (generates ParserRuleContext)
  • rule (generates RuleContext)

Note: A rule named prediction would produce PredictionContext, but that shouldn't be a problem since the generated parser doesn't directly depend on PredictionContext.

@sharwell
Copy link
Member Author

Resolved in b214f36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant