[antlr-interest] How to access recognitionException in C Target?

Jack Pan Jack.Pan at Lewtan.com
Mon Jan 12 13:41:07 PST 2009


Hi,

In Java, the parser error can be accessed via RecognitionException quite
easily. How can I access this functionality in C target? Is there a
sample?

catch (RecognitionException re) {
	reportError(re); // automatic error reporting and recovery
	recover(input,re);
}

Thanks,

Jack





More information about the antlr-interest mailing list