Le 21 févr. 06 à 22:04, Henrik Sorensen a écrit :
On Tuesday 21 February 2006 08.27, Akim Demaille wrote:
Le 20 févr. 06 à 15:07, Akim Demaille a écrit :
Don't use YYPRINT, see %printer in the recent docs.
Err, on second thought, it is not yet documented :) For instance
%printer { fprintf (
On Tuesday 21 February 2006 08.27, Akim Demaille wrote:
> Le 20 févr. 06 à 15:07, Akim Demaille a écrit :
> > Don't use YYPRINT, see %printer in the recent docs.
> Err, on second thought, it is not yet documented :) For instance
> %printer { fprintf (stderr, "%d", $$); } integer [etc...]
> @$ is a
Le 20 févr. 06 à 15:07, Akim Demaille a écrit :
Don't use YYPRINT, see %printer in the recent docs.
Err, on second thought, it is not yet documented :) For instance
%printer { fprintf (stderr, "%d", $$); } integer [etc...]
@$ is also available there, denoting the location of the symbol.
Don't use YYPRINT, see %printer in the recent docs.
___
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
Howcome, when you have enabled %location, the yylocationp parameter in
yysymprint is not passed to YYPRINT ?
static void
yysymprint (yyoutput, yytype, yyvaluep, yylocationp)
FILE *yyoutput;
int yytype;
YYSTYPE *yyvaluep;
YYLTYPE *yylocationp; <=== It is there
# ifdef YYPRINT