[antlr-interest] Error recovery contortion

John D. Mitchell johnm-antlr at non.net
Tue Dec 7 13:48:17 PST 2004


>>>>> "Terence" == Terence Parr <parrt at cs.usfca.edu> writes:
[...]

>> Sigh...

> You sound like John Mitchell ;)

I heard that!

[...]

> Yes, this is reasonable.  We should change:

> 		catch (RecognitionException ex) { reportError(ex);
> consume(); consumeUntil(_tokenSet_0); }

> to catch (RecognitionException ex) { reportError(ex); recover(ex,
> _tokenSet_0); }

> For 2.7.5.  Anybody got a problem with this?  I would be just factoring
> out the code into a method.

Fine by me.

Happy Holidays,
		John


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list