[antlr-interest] Passing user defined exceptions through the parser.

Peter C. Chapin pcc482719 at gmail.com
Tue Jan 13 04:12:42 PST 2009


Laurent Caillette wrote:

> This should work if you make OperationCanceledException a subclass of
> RecognitionException, which is a checked exception thrown by parser's
> methods. Then the catch clause does its job.
>   

Okay, thanks. That's a little unsatisfying because the exception in
question really isn't a problem with recognition. Still, I can live with
that. I guess that's life with Java.

Peter



More information about the antlr-interest mailing list