mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
%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:
17
NEWS
17
NEWS
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user