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

BasicSemanticChecks.checkGrammarName: allow null filenames. #495

Merged
merged 2 commits into from
Mar 24, 2014

Conversation

aphyr
Copy link
Contributor

@aphyr aphyr commented Mar 18, 2014

checkGrammarName assumes that all grammars come from actual files, but
grammars loaded using Tool.parseGrammarFromString use input streams
without source file names. This patch changes checkGrammarName to only verify
that grammar names and file names correspond when a file name is
available.

checkGrammarName assumes that all grammars come from actual files, but
grammars loaded using Tool.parseGrammarFromString use input streams
without source file names. This patch changes checkGrammarName to only verify
that grammar names and file names correspond when a file name is
available.
@parrt
Copy link
Member

parrt commented Mar 18, 2014

Hi. no sweat. can you add yourself to bottom of contributors.txt?

@aphyr
Copy link
Contributor Author

aphyr commented Mar 19, 2014

Sure thing, thanks Terence! :)

@sharwell sharwell added this to the ANTLR 4.2.1 milestone Mar 19, 2014
parrt added a commit that referenced this pull request Mar 24, 2014
BasicSemanticChecks.checkGrammarName: allow null filenames.
@parrt parrt merged commit b4b9197 into antlr:master Mar 24, 2014
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.

None yet

3 participants