From d6ca7905ab458076e6d89ea409a413c0ae7402b1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 19 Jan 2006 06:44:49 +0000 Subject: [PATCH] * NEWS: Document the fact that multiple %unions are now allowed. * doc/bison.texinfo (Union Decl): Likewise. --- ChangeLog | 3 +++ NEWS | 7 +++++-- doc/bison.texinfo | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce59e967..9a5ce087 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-01-18 Paul Eggert + * 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. diff --git a/NEWS b/NEWS index 784efeb7..e982759c 100644 --- a/NEWS +++ b/NEWS @@ -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. diff --git a/doc/bison.texinfo b/doc/bison.texinfo index 752d0947..5ff8f863 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -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. -- 2.45.2