mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* NEWS: Document the fact that multiple %unions are now allowed.
* doc/bison.texinfo (Union Decl): Likewise.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
2006-01-18 Paul Eggert <eggert@cs.ucla.edu>
|
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.
|
* Makefile.maint: Merge with coreutils Makefile.maint.
|
||||||
(CVS_LIST): Use build-aux version if available.
|
(CVS_LIST): Use build-aux version if available.
|
||||||
(VERSION_REGEXP): New macro.
|
(VERSION_REGEXP): New macro.
|
||||||
|
|||||||
7
NEWS
7
NEWS
@@ -3,6 +3,9 @@ Bison News
|
|||||||
|
|
||||||
Changes in version 2.1a:
|
Changes in version 2.1a:
|
||||||
|
|
||||||
|
* Bison now allows multiple %union declarations, and concatenates
|
||||||
|
their contents together.
|
||||||
|
|
||||||
* New warning: unused values
|
* New warning: unused values
|
||||||
Typed right-hand side symbols whose value are not used are reported.
|
Typed right-hand side symbols whose value are not used are reported.
|
||||||
For instance:
|
For instance:
|
||||||
@@ -695,8 +698,8 @@ End:
|
|||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
|
||||||
Free Software Foundation, Inc.
|
2004, 2005, 2006 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
|
|||||||
@@ -3802,10 +3802,15 @@ As an extension to @acronym{POSIX}, a tag is allowed after the
|
|||||||
@end group
|
@end group
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
|
@noindent
|
||||||
specifies the union tag @code{value}, so the corresponding C type is
|
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{union value}. If you do not specify a tag, it defaults to
|
||||||
@code{YYSTYPE}.
|
@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
|
Note that, unlike making a @code{union} declaration in C, you need not write
|
||||||
a semicolon after the closing brace.
|
a semicolon after the closing brace.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user