[antlr-interest] adding "version" option to ANTLR grammars
Terence Parr
parrt at cs.usfca.edu
Mon Jan 19 15:44:56 PST 2009
That is an interesting idea. I am cc'ing the interest list. sorry for
the long delay.
I take it that you are suggesting the following
grammar T;
options {
language = ...;
version = "3.1.1";
}
Ter
On Nov 29, 2008, at 1:42 PM, Johannes Luber wrote:
> Hi!
>
> Thinking about the upcoming dialects of ANTLR grammars (one for each
> version, which aren't totally upwardscompatible), I had this idea.
> Would
> it make sense to make an option named "version" mandatory, which
> simply
> records the used ANTLR version for writing. It's mandatory because
> people don't seem ever to write a comment explaining the requirements
> (myself included ;). It makes easier for people to diagnose problems
> with a third-party grammar.
>
> Johannes
More information about the antlr-interest
mailing list