antlr/antlr4 — pull request #495 by aphyr (2014-03-18 23:46:41+00:00)
Title: BasicSemanticChecks.checkGrammarName: allow null filenames.

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.