[antlr-interest] Custom error message for semantic predicate

Oliver Fischer obf at gmx.de
Mon Jul 24 10:56:59 PDT 2006


Hello,

does someone how I can specify an custom error message for semantic
predicate like "Identifier >abc< is unknown" :

identifier
 : { isValidIdentifier(LT(1)->getText().data()) }?
     identifier "=" value NL
 ;

The standard error message seems to be the predicate itself.

Regards,

Oliver



More information about the antlr-interest mailing list