[antlr-interest] Exit Status from ANTLR
Wincent Colaiuta
win at wincent.com
Wed Jun 27 00:25:18 PDT 2007
El 27/6/2007, a las 8:38, Robin Davies escribió:
>> >> I want an exit status from the ANTLR parser generator tool, not
>> >> from the parsers it generates.
>> >
>
> Although an error count in the runtime would be nice too. At this
> point, I can't imagine that anyone is NOT going to have to find the
> right error message function in parsers and/or lexers to override
> just so that they can go ++Error, just so that they can return
> failures when running generated grammars. (Is this a C# runtime
> thing, or do all runtimes suffer from that?)
I can only speak for the C runtime, but it does count errors. Seeing
as C doesn't support exceptions, checking the error count is in fact
the only way to find out if something went wrong.
Cheers,
Wincent
More information about the antlr-interest
mailing list