[antlr-interest] Invalid rule text
Bernardo Elayda
belayda at gmail.com
Mon Jun 9 19:12:24 PDT 2008
Hi,
I'm assuming your using Antlr 3.
I think if you make the change I show below, you should get the list you
want:
expressionList
@after { System.out.println($s); }
:
{ System.out.println("Start"); }
( s+=expression { System.out.println($expression.text); } )+
{ System.out.println("End: "); }
;
hth,
Bernardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080609/9f333f17/attachment.html
More information about the antlr-interest
mailing list