[antlr-interest] Passing user defined exceptions through theparser.
Peter C. Chapin
pcc482719 at gmail.com
Wed Jan 14 04:31:59 PST 2009
Sam Harwell wrote:
> I just checked and the feature is not implemented in the code generator
> yet. At least in the C# port of the tool it will cause recognition
> exceptions if you use it in a grammar right now.
Okay, thanks for pointing this out. I'll take a look and keep my eye on it.
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org
> [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Sam Harwell
> Sent: Tuesday, January 13, 2009 10:06 AM
> To: Peter C. Chapin
> Cc: antlr-interest
> Subject: Re: [antlr-interest] Passing user defined exceptions through
> There is a throwsSpec in the ANTLR tool grammar that *should* be able to
> be used like this:
> my_rule /*returns [Object o]*/ throws RecognitionException,
> : ...
> It doesn't apply to C# so it's not implemented in my CSharp3 target.
More information about the antlr-interest