[antlr-interest] exceptions,

Olivier Lefevre lefevrol at yahoo.com
Fri Mar 21 17:02:25 PDT 2008


Alexandru Mosoi wrote:
> and, how do I treat semantic errors? I need to output an error and stop 
> if there is any problem.

If you want every error to be fatal, see §10.4 in the book. Or you could 
throw your own exception (i.e., not a RecognitionException) in an action block.

-- O.L.



More information about the antlr-interest mailing list