From 738cde3e937b920babf55dea2db4cbfe17eebb9c Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 4 Nov 2008 22:26:39 +0100 Subject: [PATCH] Mention the trailing semicolon in action. * NEWS: Mention the trailing semicolon in action. --- ChangeLog | 4 ++++ NEWS | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ec760d69..49c2d99d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-11-04 Akim Demaille + + * NEWS: Mention the trailing semicolon in action. + 2008-11-04 Akim Demaille Reformat NEWS. diff --git a/NEWS b/NEWS index d63c9500..9ee61800 100644 --- a/NEWS +++ b/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): -- 2.47.2