X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0f11eec272453d5646e5aeda135650b4fb8ac33d..56ca3d8fce0c9db2f2829d7a7a07a9ad06cdf6a8:/NEWS?ds=sidebyside diff --git a/NEWS b/NEWS index fd51b61b..ae8b297c 100644 --- a/NEWS +++ b/NEWS @@ -8,14 +8,39 @@ GNU Bison NEWS and remove the definition of yystype (removal announced since Bison 1.875). -** Changes in regular C parsers (yacc.c): - -*** The generated header is included +** The generated header is included (yacc.c) Instead of duplicating the content of the generated header (definition of YYSTYPE, yyltype etc.), the generated parser now includes it, as was already the case for GLR or C++ parsers. +** Headers (yacc.c, glr.c, glr.cc) + +*** Guards + + The generated headers are now guarded, as is already the case for C++ + parsers (lalr1.cc). For intance, with --defines=foo.h: + + #ifndef YY_FOO_H + # define YY_FOO_H + ... + #endif /* !YY_FOO_H */ + +*** New declarations + + The generated header now declares yydebug and yyparse. Both honor + --name-prefix=bar_, and yield + + int bar_parse (void); + + rather than + + #define yyparse bar_parse + int yyparse (void); + + in order to facilitate the inclusion of several parser headers inside a + single compilation unit. + * Noteworthy changes in release 2.5.1 (2012-06-05) [stable] ** Future changes: