* 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

@@ -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.