[prev in list] [next in list] [prev in thread] [next in thread]
List: antlr-interest
Subject: Re: [antlr-interest] Using global and dynamic scopes together - is
From: Michael Bedward <michael.bedward () gmail ! com>
Date: 2011-02-25 3:34:08
Message-ID: AANLkTim5ysp2gLkADS40Xk9Ruj1xY-FsdOh8_PXxmp=3 () mail ! gmail ! com
[Download RAW message or body]
That's handy to know !
Just added it to the FAQ...
http://www.antlr.org/wiki/display/ANTLR3/Using+both+global+and+local+%28rule%29+attribute+scopes
Michael
On 23 February 2011 06:15, Jim Idle <jimi@temporal-wave.com> wrote:
> grammar t;
>
> scope GlobalOne {
> int c;
> }
>
>
> rulename
>
> scope
> {
> bool localFlag;
> }
> scope GlobalOne;
> @init
> {
> fred = 1;
> }
>
> : C ;
>
>
> C : 'C';
>
> Globals come after locals but before @init.
>
> Jim
>
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic