[antlr-interest] C-Runtime in C++ prog
Vaclav Barta
vbar at comp.cz
Sat Feb 16 12:03:17 PST 2008
Jim Idle wrote:
>> -----Original Message-----
>> From: Oliver Kowalke [mailto:oliver.kowalke at gmx.de]
>>> occurs, it fires a series of function calls that culminate in a call
>>> to displayRecognitionError. However, you can override these functions
>>> (usually you only need to override the displayRecognitionError) and
>>> make them do whatever you like.
>> I mean in C++ you throw exceptions (2.x version of ANTLR) in the case
>> of errors. But exceptions are not part of C.
> Hence it is a sequence of function calls and then drops out of the rule
> function properly because it detects that error state. You don't need to
> do anything but decide what to do when you are asked to print an error.
Well, but because the runtime is C, I couldn't decide to throw an
exception there - right?
Bye
Vasek
--
http://www.mangrove.cz/
More information about the antlr-interest
mailing list