[Top][All Lists]
[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
- YYPRINT and locations,
Henrik Sorensen <=