[antlr-interest] Error Handling in C target?

Jim Idle jimi at temporal-wave.com
Wed Apr 7 08:48:14 PDT 2010


Please read the C API and use list archive search. You just install a pointer to your own function for error handling.

http://antlr.markmail.org/search/?q=C%20error%20override


Generally a lexer should not be producing any errors.


Jim



> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Andi Clemens
> Sent: Wednesday, April 07, 2010 8:42 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Error Handling in C target?
> 
> Hi,
> 
> I want to turn off all the warnings / errors coming from the lexer /
> parser.
> I found an option that seems to turn error handling off:
> 
> defaultErrorHandler = false;
> 
> but somehow this isn't working in ANTLR 3.1.x?
> 
> Is there an easy way to turn error handling off in C?
> In Java I would override some method I guess, but this is not possible
> for the C target, or am I wrong?
> 
> Andi
> 
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address





More information about the antlr-interest mailing list