bison-patches
[Top][All Lists]
Advanced

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

Re: doc: mfcalc: demonstrate %printer


From: Akim Demaille
Subject: Re: doc: mfcalc: demonstrate %printer
Date: Mon, 16 Apr 2012 18:29:20 +0200

Le 16 avr. 2012 à 17:27, Akim Demaille a écrit :

> From 93c150b666c3345bdd1527a5495a4787d8c3b5bf Mon Sep 17 00:00:00 2001
> From: Akim Demaille <address@hidden>
> Date: Sun, 8 Apr 2012 10:17:55 +0200
> Subject: [PATCH 2/3] doc: mfcalc: demonstrate %printer.
> 
> * doc/bison.texinfo (Printer Decl): New.
> Number mfcalc.y snippets so that they are output in
> the proper order.
> (The mfcalc Main): Use yydebug.
> (Debugging): Simplify the text.
> (Enabling Traces, Mfcalc Traces, The YYPRINT Macro): New.
> (Table of Symbols): Document YYPRINT and YYFPRINTF.

> Installed in master as attached.  Cherry picked in maint.  I will
> write the NEWS in maint.

I installed this in maint.

From 7e508a2b2d494f32d171ac9376a80ae2b75480c3 Mon Sep 17 00:00:00 2001
From: Akim Demaille <address@hidden>
Date: Mon, 16 Apr 2012 17:53:15 +0200
Subject: [PATCH] NEWS: Update.

* NEWS: Spell check.
(%printer): is now documented.
---
 NEWS |   44 ++++++++++++++++++++++++++++++++++++--------
 1 file changed, 36 insertions(+), 8 deletions(-)

diff --git a/NEWS b/NEWS
index b49f2c8..64d8248 100644
--- a/NEWS
+++ b/NEWS
@@ -39,7 +39,18 @@ Bison News
 
 ** liby is no longer asking for "rpl_fprintf" on some platforms.
 
-** Several improvements have been made to the manual:
+** Changes in the manual:
+
+*** %printer is documented
+
+  The %printer directive, supported since at least Bison 1.50, is
+  finally documented.  The %mfcalc example is extended to demonstrate
+  its use of printer.
+
+  The C++ parsers now also support yyoutput (as an alias to
+  debug_stream ()) for consistency with the C skeletons.
+
+*** Several improvements have been made:
 
   The layout for grammar excerpts was changed to a more compact
   scheme.  Named references are motivated.  The description of the
@@ -1458,7 +1469,7 @@ Bison News
 ** The output file does not define const, as this caused problems when used
   with common autoconfiguration schemes.  If you still use ancient compilers
   that lack const, compile with the equivalent of the C compiler option
-  `-Dconst='.  autoconf's AC_C_CONST macro provides one way to do this.
+  `-Dconst='.  Autoconf's AC_C_CONST macro provides one way to do this.
 
 ** Added `-g' and `--graph'.
 
@@ -1505,7 +1516,7 @@ Bison News
 
 * Changes in version 1.26:
 
-** Bison now uses automake.
+** Bison now uses Automake.
 
 ** New mailing lists: <address@hidden> and <address@hidden>.
 
@@ -1527,7 +1538,7 @@ the grammar file, and reports all the errors found in it.
 
 ** Tokens can now be specified as multiple-character strings: for
 example, you could use "<=" for a token which looks like <=, instead
-of chosing a name like LESSEQ.
+of choosing a name like LESSEQ.
 
 ** The %token_table declaration says to write a table of tokens (names
 and numbers) into the parser file.  The yylex function can use this
@@ -1562,10 +1573,6 @@ Line numbers in output file corrected.
 
 Output file does not redefine const for C++.
 
-Local Variables:
-mode: outline
-End:
-
 -----
 
 Copyright (C) 1995-2012 Free Software Foundation, Inc.
@@ -1584,3 +1591,24 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+ LocalWords:  yacc YYBACKUP glr GCC lalr ArrayIndexOutOfBoundsException nullptr
+ LocalWords:  cplusplus liby rpl fprintf mfcalc Wyacc stmt cond expr mk sym lr
+ LocalWords:  IELR ielr Lookahead YYERROR nonassoc LALR's api lookaheads yychar
+ LocalWords:  destructor lookahead YYRHSLOC YYLLOC Rhs ifndef YYFAIL cpp sr rr
+ LocalWords:  preprocessor initializer Wno Wnone Werror FreeBSD prec livelocks
+ LocalWords:  Solaris AIX UX RHEL Tru LHS gcc's Wundef YYENABLE NLS YYLTYPE VCG
+ LocalWords:  yyerror cpp's Wunused yylval yylloc prepend yyparse yylex yypush
+ LocalWords:  Graphviz xml nonterminals midrule destructor's YYSTYPE typedef ly
+ LocalWords:  CHR chr printf stdout namespace preprocessing enum pre include's
+ LocalWords:  YYRECOVERING nonfree destructors YYABORT YYACCEPT params enums de
+ LocalWords:  struct yystype DJGPP lex param Haible NUM alloca YYSTACK NUL goto
+ LocalWords:  YYMAXDEPTH Unescaped UCNs YYLTYPE's yyltype typedefs inline Yaccs
+ LocalWords:  Heriyanto Reenable dprec Hilfinger Eggert MYEOF Folle Menezes EOF
+ LocalWords:  Lackovic define's itemset Groff Gettext malloc NEWS'ed YYDEBUG
+ LocalWords:  namespaces strerror const autoconfiguration Dconst Autoconf's FDL
+ LocalWords:  Automake TMPDIR LESSEQ
+
+Local Variables:
+mode: outline
+End:
-- 
1.7.9.5





reply via email to

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