Asunto: RE: [antlr-interest] Newbie - rule help

nico123 at adinet.com.uy nico123 at adinet.com.uy
Mon Jul 21 12:47:47 PDT 2003


Ok, but what exactly means
I know this #([MODIFIERS, "MODIFIERS"] means create a node, of type MODIFIERS
and text "MODIFIERS".

But what is the last #modifiers for ?
And the first one: #modifiers =

regards,


>-- Mensaje original --
>To: antlr-interest at yahoogroups.com
>From: mzukowski at yci.com
>Date: Mon, 21 Jul 2003 08:33:00 -0700
>Subject: RE: [antlr-interest] Newbie - rule help
>Reply-To: antlr-interest at yahoogroups.com
>
>
>They are both the same, one is just shorthand for the other.
>
>Monty
>
>-----Original Message-----
>From: Nico [mailto:nico123 at adinet.com.uy] 
>Sent: Sunday, July 20, 2003 10:44 AM
>To: antlr-interest at yahoogroups.com
>Subject: [antlr-interest] Newbie - rule help
>
>
>Hi all. I don't have this rule very clear.
>Can anyone help me telling in detail what the code in braces does?
>
>modifiers
> : ( modifier )*
>  {#modifiers = #([MODIFIERS, "MODIFIERS"], #modifiers);}
> ;
>
>I have confusion because I have also found same rule like this
>
>modifiers
> : ( modifier )*
>  {#modifiers = #(#[MODIFIERS, "MODIFIERS"], #modifiers);}
> ;
>
>With an extra # before  [MODIFIERS
>
>regards
>
>Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>
> 
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>



 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list