Gated semantic predicates.

Jim

> -----Original Message-----
> From: [email protected] [mailto:antlr-interest-
> [email protected]] On Behalf Of Jose Juan Tapia
> Sent: Tuesday, October 18, 2011 4:06 PM
> To: [email protected]
> Subject: [antlr-interest] Conditional grammar
>
> How can make it so that certain parts of my grammar are only executed
> when a certain condition is met. For example,
>
> method1:
> (myCondtion? INT) STRING;
>
>
> method1 would require that INT STRING if myCondition evaluates to true.
> And only STRING otherwise. I know I've seen this somewhere in the ANTLR
> reference but for the life of me I can't find it again. And all my
> google searches through the newsgroup leads to conditional tree rewrite
> or something similar.
>
>
> --
> José Juan Tapia Valenzuela
> Research Associate
> University of Pittsburgh
> 3076.1 Biological Sciences Tower 3
> Pittsburgh, Pa 15260
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to