mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
* NEWS: Document the fact that multiple %unions are now allowed.
* doc/bison.texinfo (Union Decl): Likewise.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user