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

Jim Idle jimi at temporal-wave.com
Mon Feb 28 17:24:24 PST 2011


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


More information about the antlr-interest mailing list