[antlr-interest] Exception handlers

Terence Parr parrt at cs.usfca.edu
Sun Jul 4 12:06:27 PDT 2004


On Jul 4, 2004, at 9:58 AM, Richard Matthias wrote:

> Hi,
>
> How do you get antlr to not generate default exception handlers?
>
> I'm not interested in cooking up some sophisticated error handling 
> strategy
> as my parser is just for simple formulas in a spreadsheet-like 
> program, but I
> also don't find the default error handling behaviour helpful. I just 
> want to
> catch an exception in the code that calls the parser when an error is 
> first
> detected.

Try defaultErrorHandler=false or something close to that name.

>
> PS I take it nobody is interested in the code generation error report I
> posted to the list last week (concerning the token section of the 
> grammar
> when both literal text and AST= options are used together)?

It was in the C# generator so I ignored it ;)

Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Cofounder, http://www.peerscope.com pure link sharing





 
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