YYLEX_PARAM: drop support

* data/yacc.c, doc/bison.texi: Remove YYLEX_PARAM support.
* NEWS: Document it.
This commit is contained in:
Akim Demaille
2012-12-25 17:13:39 +01:00
parent 304b384ea3
commit 40bb6f78f8
3 changed files with 8 additions and 16 deletions

11
NEWS
View File

@@ -6,10 +6,13 @@ GNU Bison NEWS
*** Obsolete features *** Obsolete features
Support for YYFAIL is removed (deprecated in Bison 2.4.2). Support for YYFAIL is removed (deprecated in Bison 2.4.2): use YYERROR.
Support for yystype and yyltype (instead of YYSTYPE and YYLTYPE)
is removed (deprecated in Bison 1.875). Support for yystype and yyltype is removed (deprecated in Bison 1.875):
Support for YYPARSE_PARAM is removed (deprecated in Bison 1.875). use YYSTYPE and YYLTYPE.
Support for YYLEX_PARAM and YYPARSE_PARAM is removed (deprecated in Bison
1.875): use %lex-param, %parse-param, or %param.
** Warnings ** Warnings

View File

@@ -687,11 +687,7 @@ while (0)
]b4_yy_location_print_define[ ]b4_yy_location_print_define[
/* YYLEX -- calling `yylex' with the right arguments. */ /* YYLEX -- calling `yylex' with the right arguments. */
#ifdef YYLEX_PARAM #define YYLEX ]b4_function_call([yylex], [int], b4_lex_param)[
# define YYLEX yylex (]b4_pure_if([&yylval[]b4_locations_if([, &yylloc]), ])[YYLEX_PARAM)
#else
# define YYLEX ]b4_function_call([yylex], [int], b4_lex_param)[
#endif
/* Enable debugging if requested. */ /* Enable debugging if requested. */
#if ]b4_api_PREFIX[DEBUG #if ]b4_api_PREFIX[DEBUG

View File

@@ -12604,13 +12604,6 @@ the next token. @xref{Lexical, ,The Lexical Analyzer Function
@code{yylex}}. @code{yylex}}.
@end deffn @end deffn
@deffn {Macro} YYLEX_PARAM
An obsolete macro for specifying an extra argument (or list of extra
arguments) for @code{yyparse} to pass to @code{yylex}. The use of this
macro is deprecated, and is supported only for Yacc like parsers.
@xref{Pure Calling,, Calling Conventions for Pure Parsers}.
@end deffn
@deffn {Variable} yylloc @deffn {Variable} yylloc
External variable in which @code{yylex} should place the line and column External variable in which @code{yylex} should place the line and column
numbers associated with a token. (In a pure parser, it is a local numbers associated with a token. (In a pure parser, it is a local