%lex-param is not working

2020-06-04 Thread Timothy Krause
In the bison source file I have %lex-param { ps->scaninfo } When I compile the parser I get: parser.tab.cpp: In function ‘int yyparse(parse_state*)’: parser.tab.cpp:1689:41: error: ‘scaninfo’ was not declared in this scope; did you mean ‘scanf’? 1689 | yychar = yylex (&yylval, &yylloc, scan

Re: %lex-param is not working

2020-06-04 Thread Akim Demaille
Hi Timothy, > Le 4 juin 2020 à 17:30, Timothy Krause a écrit : > > In the bison source file I have > %lex-param { ps->scaninfo } > > When I compile the parser I get: > parser.tab.cpp: In function ‘int yyparse(parse_state*)’: > parser.tab.cpp:1689:41: error: ‘scaninfo’ was not declared in this s