[antlr-interest] Custom error message for semantic predicate
Terence Parr
parrt at cs.usfca.edu
Mon Jul 24 11:33:14 PDT 2006
Hi Oliver, can you catch the SemanticPredicate exception and then
display the error you want?
Ter
On Jul 24, 2006, at 10:56 AM, Oliver Fischer wrote:
> 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