[antlr-interest] (newbie problem)reference to rewrite element name without re...
ali azimi
aliaazimi at yahoo.com
Mon Jul 9 16:43:45 PDT 2007
Hi,
I apologize for my grammar being cluttered. I will try to use underscore more often.
Do I have to write different rewrite rules for each sub-rule like the followings?
signal_list_item
:signal_identifier-> ^(signal_identifier)
|signal_list_identifier-> ^(signal_list_identifier)
|timer_identifier-> ^(timer_identifier)
;
Or this one is correct? (what is the difference?)
Rule2 signal_list_item
:( signal_identifier |signal_list_identifier|timer_identifier)
-> ^(SLIST[$signal_list_item.start ] signalidentifier signal_list_identifier
timer_identifier)
Thanks,
Al
---------------------------------
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070709/e8aba4bd/attachment-0001.html
More information about the antlr-interest
mailing list