bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Declare %code to be a permanent feature.


From: Joel E. Denny
Subject: [PATCH] Declare %code to be a permanent feature.
Date: Fri, 1 May 2009 03:13:48 -0400 (EDT)

It's time to remove the experimental label for %code.  I get the sense 
that users are depending upon %code.  Moreover, I don't believe we've 
modified its behavior for around two years.

I pushed the following patch to branch-2.4.2, branch-2.5, and master.

>From cefb18280b83ea19b742a22f7be8661b518874b5 Mon Sep 17 00:00:00 2001
From: Joel E. Denny <address@hidden>
Date: Fri, 1 May 2009 02:51:31 -0400
Subject: [PATCH] Declare %code to be a permanent feature.

* NEWS (2.4.2): Here.
* doc/bison.texinfo (Prologue Alternatives): Don't say it's
experimental.
(Decl Summary): Likewise.

diff --git a/NEWS b/NEWS
index 69c6d3b..382c89c 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,29 @@ Bison News
 
 * Changes in version 2.4.2 (????-??-??):
 
+** %code is now a permanent feature.
+
+  A traditional Yacc prologue directive is written in the form:
+
+    %{CODE%}
+
+  To provide a more flexible alternative, Bison 2.3b introduced the
+  %code directive with the following forms for C/C++:
+
+    %code          {CODE}
+    %code requires {CODE}
+    %code provides {CODE}
+    %code top      {CODE}
+
+  These forms are now considered permanent features of Bison.  See the
+  %code entries in the section "Bison Declaration Summary" in the Bison
+  manual for a summary of their functionality.  See the section
+  "Prologue Alternatives" for a detailed discussion including the
+  advantages of %code over the traditional Yacc prologue directive.
+
+  Bison's Java feature as a whole including its current usage of %code
+  is still considered experimental.
+
 * Changes in version 2.4.1 (2008-12-11):
 
 ** In the GLR defines file, unexpanded M4 macros in the yylval and yylloc
diff --git a/doc/bison.texinfo b/doc/bison.texinfo
index e619888..3886956 100644
--- a/doc/bison.texinfo
+++ b/doc/bison.texinfo
@@ -2704,9 +2704,6 @@ feature test macros can affect the behavior of 
Bison-generated
 @findex %code requires
 @findex %code provides
 @findex %code top
-(The prologue alternatives described here are experimental.
-More user feedback will help to determine whether they should become permanent
-features.)
 
 The functionality of @var{Prologue} sections can often be subtle and
 inflexible.
@@ -4741,10 +4738,6 @@ Thus, @code{%code} replaces the traditional Yacc 
prologue,
 For a detailed discussion, see @ref{Prologue Alternatives}.
 
 For Java, the default location is inside the parser class.
-
-(Like all the Yacc prologue alternatives, this directive is experimental.
-More user feedback will help to determine whether it should become a permanent
-feature.)
 @end deffn
 
 @deffn {Directive} %code @var{qualifier} @address@hidden@}
@@ -4822,10 +4815,6 @@ before any class definitions.
 @end itemize
 @end itemize
 
-(Like all the Yacc prologue alternatives, this directive is experimental.
-More user feedback will help to determine whether it should become a permanent
-feature.)
-
 @cindex Prologue
 For a detailed discussion of how to use @code{%code} in place of the
 traditional Yacc prologue for C/C++, see @ref{Prologue Alternatives}.
-- 
1.5.4.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]