[antlr-interest] file names and grammar names

Ric Klaren ric.klaren at gmail.com
Fri May 19 04:37:54 PDT 2006


Hi,

On 5/18/06, Terence Parr <parrt at cs.usfca.edu> wrote:
> Currently you can name your grammar file anything and then have any
> grammar name inside. E.g., t.g can have
>
> grammar Foo
>
> in it.  When we go looking for other grammar vocabularies etc... it
> would be nice to be able to tell (like Java does) from the filename
> what's inside...
>
> Do people think I should force the grammar name (including case) to
> be same as filename (with .g suffix)?

Dunno. I don't like the force thingy ;) Including case might give
problem on filesystems not supporting (or faking) case sensitivity.
Maybe a case if it's not broken don't fix it?

Cheers,

Ric


More information about the antlr-interest mailing list