Re: YYPRINT and locations

2006-02-23 Thread Akim Demaille
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 (

Re: YYPRINT and locations

2006-02-21 Thread Henrik Sorensen
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

Re: YYPRINT and locations

2006-02-21 Thread Akim Demaille
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.

Re: YYPRINT and locations

2006-02-20 Thread Akim Demaille
Don't use YYPRINT, see %printer in the recent docs. ___ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

YYPRINT and locations

2006-02-15 Thread Henrik Sorensen
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