[antlr-interest] Can a ANTLR 3 rule have both a rule and global scope?

Jim Idle jimi at temporal-wave.com
Tue Mar 1 15:12:15 PST 2011


Thanks for the thanks :-)

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of The Researcher
> Sent: Tuesday, March 01, 2011 3:00 PM
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Can a ANTLR 3 rule have both a rule and
> global scope?
>
> Jim,
>
> If it wasn't for your and the others help all these years I don't know
> if the ANTLR community would be so strong.
>
> Thank you, sir.
>
> On Tue, Mar 1, 2011 at 5:05 PM, Jim Idle <jimi at temporal-wave.com>
> wrote:
>
> > For multiple globals;
> >
> > Scope s1, s2, s3;  // Not additional scope statements.
> >
> > Jim
> >
> > > -----Original Message-----
> > > From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> > > bounces at antlr.org] On Behalf Of The Researcher
> > > Sent: Tuesday, March 01, 2011 1:37 PM
> > > To: antlr-interest at antlr.org
> >  > Subject: Re: [antlr-interest] Can a ANTLR 3 rule have both a rule
> > and
> > > global scope?
> > >
> > > FYI.
> > >
> > > Due to the bug http://www.antlr.org/jira/browse/ANTLR-310 only the
> > > last global scope of multiple global scopes for a rule is correctly
> > > pushed and popped. The other push and pops are missing.
> > >
> > > I don't know if this is limited to my version or all versions of
> > > ANTLR 3.
> > >
> > > On Mon, Feb 28, 2011 at 8:24 PM, Jim Idle <jimi at temporal-wave.com>
> > > wrote:
> > >
> > > > Nope - you just have the order specified in the wrong sequence.
> > > > Use antlr.markmail.org and search for my answer to this exact
> > > > question of about 5 days or so ago.
> > > >
> > > > Jim
> > > >
> > > > > -----Original Message-----
> > > > > From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> > > > > bounces at antlr.org] On Behalf Of The Researcher
> > > > > Sent: Monday, February 28, 2011 4:16 PM
> > > > > To: antlr-interest at antlr.org
> > > >  > Subject: [antlr-interest] Can a ANTLR 3 rule have both a rule
> > > > and
> > > > > global scope?
> > > > >
> > > > > When trying to use both a rule and global scope for a rule,
> > > > > ANTLR generated errors. To get past the error all of the
> > > > > attributes were pused into the global scope.
> > > > >
> > > > > Just want to confirm that ANTLR 3 only allows a rule to have
> > > > > either a rule or global scope but not both.
> > > > >
> > > > >
> > > > >
> > > > > 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
> > > >
> > >
> > > 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
> >
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address


More information about the antlr-interest mailing list