* NEWS: Document the fact that multiple %unions are now allowed.

* doc/bison.texinfo (Union Decl): Likewise.
This commit is contained in:
Paul Eggert
2006-01-19 06:44:49 +00:00
parent 2073ce56f5
commit d6ca7905ab
3 changed files with 13 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
2006-01-18 Paul Eggert <eggert@cs.ucla.edu>
* NEWS: Document the fact that multiple %unions are now allowed.
* doc/bison.texinfo (Union Decl): Likewise.
* Makefile.maint: Merge with coreutils Makefile.maint.
(CVS_LIST): Use build-aux version if available.
(VERSION_REGEXP): New macro.

7
NEWS
View File

@@ -3,6 +3,9 @@ Bison News
Changes in version 2.1a:
* Bison now allows multiple %union declarations, and concatenates
their contents together.
* New warning: unused values
Typed right-hand side symbols whose value are not used are reported.
For instance:
@@ -695,8 +698,8 @@ End:
-----
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.

View File

@@ -3802,10 +3802,15 @@ As an extension to @acronym{POSIX}, a tag is allowed after the
@end group
@end example
@noindent
specifies the union tag @code{value}, so the corresponding C type is
@code{union value}. If you do not specify a tag, it defaults to
@code{YYSTYPE}.
As another extension to @acronym{POSIX}, you may specify multiple
@code{%union} declarations; their contents are concatenated. However,
only the first @code{%union} declaration can specify a tag.
Note that, unlike making a @code{union} declaration in C, you need not write
a semicolon after the closing brace.