help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

YYPRINT and locations


From: Henrik Sorensen
Subject: YYPRINT and locations
Date: Wed, 15 Feb 2006 06:46:55 +0000
User-agent: KMail/1.8.3

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
      YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);  <=== it is missing
# endif

 when %location is specified, I am actually interested in the locations.

Is there a formel way to request this feature in bison ?

Henrik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]