summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2013-02-16 13:49:04 +0100
committerAkim Demaille <akim@lrde.epita.fr>2013-02-18 10:01:28 +0100
commit6240346aa045e8c0d7da616aca87c9d4d350d369 (patch)
treef82db999c4c49ddd99cfcf8fbe85e3c42ecb463b /NEWS
parent09add9c24f4524f4c362cf51a1b555f8c49a6157 (diff)
downloadbison-6240346aa045e8c0d7da616aca87c9d4d350d369.tar.gz
doc: use %empty instead of /* empty */
* doc/bison.texi: Change the comments into explicit %empty.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 564b087e..9a6a1e14 100644
--- a/NEWS
+++ b/NEWS
@@ -364,6 +364,8 @@ GNU Bison NEWS
** Empty rules
+ With help from Joel E. Denny and Gabriel Rassoul.
+
Empty rules (i.e., with an empty right-hand side) can now be explicitly
marked by the new %empty directive. Using %empty on a non-empty rule is
an error. The new -Wempty-rule warning reports empty rules without
@@ -432,7 +434,7 @@ GNU Bison NEWS
;
list:
- /* nothing */ { /* Generates an empty string list */ }
+ %empty { /* Generates an empty string list. */ }
| list item ";" { std::swap ($$, $1); $$.push_back ($2); }
;