[antlr-interest] Newbie - rule help

mzukowski at yci.com mzukowski at yci.com
Mon Jul 21 08:33:00 PDT 2003


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/ 




More information about the antlr-interest mailing list