%param: documentation.

* NEWS (2.6): Document %param, %lex-param, and %parse-param
	changes.
	* doc/bison.texinfo: Document that %lex-param and %parse-param
	are n-ary.
	Changes some examples to demonstrate it.
	(Calc++ Parser): Use %param.
This commit is contained in:
Akim Demaille
2009-09-07 08:05:43 +02:00
parent dd875058b2
commit 2055a44ed2
3 changed files with 76 additions and 36 deletions

17
NEWS
View File

@@ -3,7 +3,22 @@ Bison News
* Changes in version ?.? (????-??-??):
** Java skeleton improvements:
** Additional yylex/yyparse arguments
The new directive %param declare additional argument to both yylex
and yyparse. The %lex-param, %parse-param, and %param directive
support one or more arguments. Instead of
%lex-param {arg1_type *arg1}
%lex-param {arg2_type *arg2}
%parse-param {arg1_type *arg1}
%parse-param {arg2_type *arg2}
one may now declare
%param {arg1_type *arg1} {arg2_type *arg2}
** Java skeleton improvements
The constants for token names were moved to the Lexer interface.
Also, it is possible to add code to the parser's constructors using