[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GNU bison 1.75b] testsuite.log: 14 failures
From: |
Paul Eggert |
Subject: |
Re: [GNU bison 1.75b] testsuite.log: 14 failures |
Date: |
Fri, 13 Dec 2002 01:47:11 -0800 (PST) |
> From: Bruce Lilly <address@hidden>
> Date: Sat, 23 Nov 2002 11:23:07 -0500
>
> There also appears to be a documentation bug: when %pure-parser
> is used with #define ERROR_VERBOSE, yyerror takes only one argument,
> not two (same as earlier versions of bison). The documentation
> states that with %pure-parser (no mention of ERROR-VERBOSE
> interaction), yyerror takes two arguments.
Sorry, I don't quite follow this point. The 1.75b documentation says
this:
Obviously, in location tracking pure parsers, @code{yyerror} should have
an access to the current location. This is indeed the case for the GLR
parsers, but not for the Yacc parser, for historical reasons. I.e., if
@samp{%locations %pure-parser} is passed then the prototypes for
@code{yyerror} are:
@example
void yyerror (const char *msg); /* Yacc parsers. */
void yyerror (YYLTYPE *locp, const char *msg); /* GLR parsers. */
@end example
so for yacc parsers, the documentation says yyerror takes only one
argument. Perhaps you were looking at a different part of the
documentation?
- Re: [GNU bison 1.75b] testsuite.log: 14 failures,
Paul Eggert <=