We started down this path with v3 and never really took it anywhere. I
would be in favor of using .g4 only.

Jim

> -----Original Message-----
> From: [email protected] [mailto:antlr-interest-
> [email protected]] On Behalf Of Terence Parr
> Sent: Sunday, November 06, 2011 9:56 AM
> To: Eric
> Cc: antlr-interest Interest
> Subject: Re: [antlr-interest] .g vs .g4
>
> Hi Eric,I think we are going to allow .g as well.   Rather than a
> property in the grammar file itself that identifies the version, I
> think we were going to use the file extension for this reason. all v3
> grammars will be .g and people building v4 grammar should name them .g4
> Ter
> On Nov 6, 2011, at 9:29 AM, Eric wrote:
>
> >
> >
> > On Sun, Nov 6, 2011 at 12:22 PM, Terence Parr <[email protected]>
> wrote:
> > Hi, Sam Harwell and I are talking about the file extension for new
> ANTLR 4. We think it makes good sense to use .g4 to distinguish the new
> grammars. They're mostly compatible except that there is no need for
> syntactic predicates and .g4 allows immediate left recursion. I think
> it will reduce confusion about what version of ANTLR is necessary to
> compile a grammar.
> >
> > Ter
> >
> > List: http://www.antlr.org/mailman/listinfo/antlr-interest
> > Unsubscribe: http://www.antlr.org/mailman/options/antlr-
> interest/your-email-address
> >
> >
> > Hi Ter,
> >
> > Will v4 require the file type to be .g4, or will it accept .g and
> .g4?
> >
> > My preference is for .g4 only.
> >
> > Also, will there be a property in the grammar file that identifies
> the minimum version or required version. I think it would help for
> obvious reasons such as when a user post a grammar needing help or an
> example grammar is given.
> >
> > Thanks, Eric
> >
> >
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to