[antlr-interest] unreachable catch block
Warren Falk
warren-antlr.org at warrenfalk.com
Thu May 14 18:15:04 PDT 2009
> rule
> : something
> ;
> catch[ExceptionType e] { stuff... }
> finally { more stuff... }
>
I see... so in my case, I think I need the following:
token
: .
;
catch[Throwable t] { }
...and this does prevent the compiler error. Thanks.
Would I be out of place to still think this is a bug? Shouldn't the
code to catch the RecognizerException only be emitted if the code that
throws it is also emitted?
More information about the antlr-interest
mailing list