[antlr-interest] Exception handling (again)

Gerz, Michael Gerz at fgan.de
Thu Nov 9 07:30:09 PST 2006


Hello everybody,

I would like to inform you that my project team finally managed to disable exception handling in our parser. 

Thank you very much for the hint on mismatch() at "Migrating from ANTLR 2 to ANTLR 3".

Some thoughts:

 - Why is it necessary to override mismatch() manually? 
   Options { defaultErrorHandler=false; } in ANTLR was much easier
   and less error-prone.

 - We played desparately with @rulecatch (because we weren't aware 
   of mismatched at first). To our surprise, ANTLR accepts @rulecatch 
   in a rule header but doesn't do anything with it. I suggest
   outputting a warning if an action is used at a place 
   where it doesn't make sense and is ignored by ANTLR.

 - How about a nice little table that lists all available actions
   (@members, @rulecatch, ...) and where they can be used
   (grammar, rule, subrule, etc.)??? (*wink*)

Kind regards,

Michael

************************************************************************
Dr. Michael Gerz                                                        
FGAN e.V.                                      Phone:  +49 228 9435-414 
Department FKIE/ITF                            Fax:    +49 228 9435-685 
Neuenahrer Straße 20                           E-Mail: gerz at fgan.de     
53343 Wachtberg-Werthhoven                     WWW:    www.fgan.de     


More information about the antlr-interest mailing list