Re: Problem building a reentrant parser

2006-02-15 Thread Bob Rossi
> I'm having a problem building a reentrant parser. Here's the simple > test I'm doing, as suggested by the flex documentation. This is using > flex 2.5.31 and bison 2.1 on x86_64 using g++ 4.0.2 on Fedora Core. > Please send any suggestions or help. > > +++ begin file slex.l +++ > /* Scanner fo

Problem building a reentrant parser

2006-02-15 Thread ooklac
Greetings, I'm having a problem building a reentrant parser. Here's the simple test I'm doing, as suggested by the flex documentation. This is using flex 2.5.31 and bison 2.1 on x86_64 using g++ 4.0.2 on Fedora Core. Please send any suggestions or help. +++ begin file slex.l +++ /* Scanner for

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