mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Mention the trailing semicolon in action.
* NEWS: Mention the trailing semicolon in action.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2008-11-04 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
* NEWS: Mention the trailing semicolon in action.
|
||||
|
||||
2008-11-04 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
Reformat NEWS.
|
||||
|
||||
17
NEWS
17
NEWS
@@ -3,7 +3,22 @@ Bison News
|
||||
|
||||
* Changes in version ?.? (????-??-??):
|
||||
|
||||
**
|
||||
** Temporary hack for adding a semicolon to the user action.
|
||||
|
||||
Bison used to prepend a trailing semicolon at the end of the user
|
||||
action for reductions. This allowed actions such as
|
||||
|
||||
exp: exp "+" exp { $$ = $1 + $3 };
|
||||
|
||||
instead of
|
||||
|
||||
exp: exp "+" exp { $$ = $1 + $3; };
|
||||
|
||||
This prevents the future support for languages than do not use `;'
|
||||
as C/C++/Java do. Yet some grammars still depend on this `feature'.
|
||||
Bison 2.4.1 restores the previous behavior to leave more time for
|
||||
grammars depending on the old behavior to be adjusted. Future
|
||||
release of Bison will disable this feature.
|
||||
|
||||
* Changes in version 2.4 (2008-11-02):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user