[antlr-interest] AntLR C# target exceptions problem

Sam Harwell sharwell at pixelminegames.com
Mon Apr 13 08:09:57 PDT 2009


It's a good idea to override ReportError, and this will almost surely
provide you with the results you want. You can also put a breakpoint in
NoViableAltException's constructor. 

Sam

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Johannes Luber
Sent: Monday, April 13, 2009 9:39 AM
To: Jan Newger
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] AntLR C# target exceptions problem

I've never used the error recovery process myself, but I think that you
have to overwrite 3 methods. If ReportError() is one of them I don't
know but
<http://www.antlr.org/wiki/display/ANTLR3/Error+reporting+and+recovery>
has some insights. Don't forget to use .NET capitalisation instead the
Java one.

Johannes



More information about the antlr-interest mailing list