[antlr-interest] Why doesn't ANTLRException inherit from std::exception?

Magnar Nedland magnarn at interagon.com
Thu Mar 11 07:51:40 PST 2004


This relates to the generated c++ code.

I just upgraded from antlr-2.7.1 to 2.7.2.
Is there a reason why ANTLRException no longer inherits from 
std::exception? By using a standard interface the surrounding 
environment has a much easier time coping with the exceptions.

Also, I think that the fact that you now have to instantiate an 
ASTFactory for your parser explicitly should be mentioned somewhere. 
Ideally the constructor should require it by reference, so a legal 
ASTFactory is guaranteed.

Magnar




 
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