|
From: | Akim Demaille |
Subject: | Re: YYPRINT and locations |
Date: | Wed, 22 Feb 2006 09:03:34 +0100 |
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 (stderr, "%d", $$); } integer [etc...] @$ is also available there, denoting the location of the symbol.in which versions of bison is the %printer (not) documented ?
All of them, but it's present since a while.
I am not sure I follow the syntax you presented, care to expand a bit ?
%printer { how to print $$ and $@ } list-of-symbols (terminal or not)
[Prev in Thread] | Current Thread | [Next in Thread] |