So would the expected model be:

^((CONDITIONAL exp=expression
    {($exp.bool)}?=>  ^(IF ^(BLOCK statement+) )
    {(!$exp.bool)}?=>  ^(IF ^(BLOCK .) )
  )

So if the expression is true, the statements are processed as
statements, and if the expression is false they are slurped up through
a wildcard?

Do you recommend using a predicate (like shown above) to do the
switching or what is the best plan?  Is there a code snippet or
example you could point me to?

Thanks so much for your help and quick responses,

Kurt


On Wed, Sep 17, 2008 at 5:18 PM, Terence Parr <[EMAIL PROTECTED]> wrote:
> Oh,I did that in a tree grammar so it should work for complete
> subtrees. At least, I did that in an interpreter of mine.
> T
>
> List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
>
>

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/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