[antlr-interest] how to impose evaluation
Maassen, H.A.M.
H.A.M.Maassen at student.tue.nl
Sat Nov 27 06:21:30 PST 2004
A flag should work:
> start
> : (check)+
> expression
> ;
>
> check
> : rule1
{ mybool = true; }
> | rule2
{ mybool = false; }
> ;
> expression
> : { mybool }? rule3
> | { !mybool }? rule4
> ;
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list