[antlr-interest] How to print different messages for different failed predicates in rule

Ramanand Mandayam ramanand_mandayam at yahoo.com
Mon Sep 8 11:02:04 PDT 2008


Hi,

I have a rule that users three different semantic predicates for validation. 
But each of these will only raise the FailedPredicateException. 
What is the best way to use semantic predicates while still printing different
error messages based on the actual predicate that failed?

Cheers

Ramanand


      


More information about the antlr-interest mailing list