Re: antlr and c++ exception handling
Re: antlr and c++ exception handling
- Subject: Re: antlr and c++ exception handling
- From: Gerard Iglesias <email@hidden>
- Date: Fri, 25 Jul 2003 11:08:39 +0200
OK,
I was completely wrong in this story, but the first reason was that the
first crashes I got in the past was because of the gcc version.
For the record the reason of my problem came from the fact that the
ANTLR example I used as pattern contains a mistake in the handling of
the exception :
ANTLR C++ code raise ANTLRException subclasses that not inherit from
std::exception and the code of the example contain this handling :
try
{
// call the parser
theParser.parse();
}
catch(exception& e)
{
count << "Error while parsing" << endl;
}
That I stupidly copied ...
And one of the fundamental reason is that I didn't read correctly the
ANTLR doc on their web site :(
But now we have the same kind of exception handling syntax in ObjC, I
will not repeat this kind of error ;)
The good news is that I am able to finalize my renderman parser that
will be freely inserted in 3DKit in few months :)
Best regards
Gerard
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.