At 09:34 6/08/2009, Tom Smith wrote: >I have narrowed down my problem. The validating semantic >predicate properly throws a FailedPredicateException in >a regular tree grammar, but does not when filter=true. [...] >Am I wrong to expect this?
I've never really played with filter=true in tree grammars, but when used in lexers the whole point is to only define the rules you care about and anything that doesn't successfully match a rule is ignored. Thus if the predicate fails, it's not an error -- it's simply not a match for that rule, and the parser will go try another alternative, or give up and skip it. So I'm not surprised that the exception isn't being produced. 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 -~----------~----~----~----~------~----~------~--~---
