* data/lalr1.cc (yylex_): Honor %lex-param.

This commit is contained in:
Akim Demaille
2005-06-22 15:37:22 +00:00
parent 0ffd4fd1a2
commit 99be023555
2 changed files with 8 additions and 5 deletions

View File

@@ -838,11 +838,10 @@ void
yy::]b4_parser_class_name[::yylex_ ()
{
YYCDEBUG << _("Reading a token: ");
#if YYLSP_NEEDED
yylooka_ = yylex (&yylval, &yylloc);
#else
yylooka_ = yylex (&yylval);
#endif
yylooka_ = ]b4_c_function_call([yylex], [int],
[[YYSTYPE*], [&yylval]][]dnl
b4_location_if([, [[location*], [&yylloc]]])dnl
m4_ifdef([b4_lex_param], [, ]b4_lex_param))[;
}
// Generate an error message, and invoke error.