From: Akim Demaille Date: Tue, 4 Nov 2008 21:26:39 +0000 (+0100) Subject: Mention the trailing semicolon in action. X-Git-Tag: v2.4.1~14 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/738cde3e937b920babf55dea2db4cbfe17eebb9c?ds=inline Mention the trailing semicolon in action. * NEWS: Mention the trailing semicolon in action. --- 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):