[antlr-interest] NoViableAltException

Vaclav Barta vbar at comp.cz
Wed Jul 11 02:24:42 PDT 2007


Liviu U wrote:
 > I want to check if the parser was successfull or not.
 > In my case I overrode GetErrorMessage and reportError, but
 > NoViableAltException is not passed to this method and is hidden by the
 > parser methods.
 > Althought nothing is parsed i can't "catch" the exception.
 >
 > Any clues?
What about overriding @rulecatch? I have it empty, so that the first 
ANTL exception terminates parsing.

	Bye
		Vasek



More information about the antlr-interest mailing list