You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use %option api.pure in parser.y and add #define YYLEX_PARAM pData->scaninfo. The generate file parser.tab.cpp just only #define YYLEX yylex (&yylval) which is not match the lexer.l generate function extern int yylex(YYSTYPE* yylval_param, yyscan_t yyscanner);
Also I have attempted use %lex-param { pData->scaninfo }, but it generates #define YYLEX yylex (&yylval, scaninfo).
So how can I fix it? My version is win_flexbison 2.4.6/2.5.6.
I only get them by <<flex & bison>> Jobn Levine. Is there any other books or examples about reentrant flex/bison?
The text was updated successfully, but these errors were encountered:
When I use
%option api.pure
in parser.y and add#define YYLEX_PARAM pData->scaninfo
. The generate file parser.tab.cpp just only#define YYLEX yylex (&yylval)
which is not match the lexer.l generate functionextern int yylex(YYSTYPE* yylval_param, yyscan_t yyscanner)
;here is my sample
lexer.l:
parser.y:
PureData.h:
Also I have attempted use
%lex-param { pData->scaninfo }
, but it generates#define YYLEX yylex (&yylval, scaninfo)
.So how can I fix it? My version is win_flexbison 2.4.6/2.5.6.
I only get them by <<flex & bison>> Jobn Levine. Is there any other books or examples about reentrant flex/bison?
The text was updated successfully, but these errors were encountered: