[antlr-interest] unreachable catch block

Sam Harwell sharwell at pixelminegames.com
Thu May 14 16:02:36 PDT 2009


rule
	: something
	;
catch[ExceptionType e] { stuff... }
finally { more stuff... }

-----Original Message-----
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Warren Falk
Sent: Thursday, May 14, 2009 5:11 PM
To: Terence Parr
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] unreachable catch block

On Thu, May 14, 2009 at 6:00 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
> that's why this one fails...  oh and rulecatch works at global not rule
> level i think.
> T

I want to create a rule which always matches the next token in the
stream.  Is there a reason that should be illegal (or is this a bug?)

Oh, and @rulecatch { } at a global level doesn't seem to eliminate the
catch either, so I'm not sure it's what I'm looking for anyway.

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address


More information about the antlr-interest mailing list