bison-patches
[Top][All Lists]
Advanced

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

[PATCH 4/4] doc: YYERROR_VERBOSE is no longer supported


From: Akim Demaille
Subject: [PATCH 4/4] doc: YYERROR_VERBOSE is no longer supported
Date: Sat, 4 Jan 2020 11:07:40 +0100

* doc/bison.texi (Table of Symbols): Remove last reference to it.
* NEWS: Be clear about that.
---
 NEWS           | 11 +++++++++++
 doc/bison.texi |  9 ---------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/NEWS b/NEWS
index 55b78892..79c090ad 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,17 @@ GNU Bison NEWS
 
 * Noteworthy changes in release ?.? (????-??-??) [?]
 
+** Backward incompatible changes
+
+  TL;DR: replace "#define YYERROR_VERBOSE 1" by "%define parse.error verbose".
+
+  The YYERROR_VERBOSE macro is no longer supported; the parsers that still
+  depend on it will now produce Yacc-like error messages (just "syntax
+  error").  It was superseded by the "%error-verbose" directive in Bison
+  1.875 (2003-01-01).  Bison 2.6 (2012-07-19) clearly announced that support
+  for YYERROR_VERBOSE would be removed.  Note that since Bison 3.0
+  (2013-07-25), "%error-verbose" is deprecated in favor of "%define
+  parse.error verbose".
 
 * Noteworthy changes in release 3.5 (2019-12-11) [stable]
 
diff --git a/doc/bison.texi b/doc/bison.texi
index d74f5b1b..4bfb742c 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -14158,15 +14158,6 @@ User-supplied function to be called by @code{yyparse} 
on error.
 @xref{Error Reporting, ,The Error Reporting Function @code{yyerror}}.
 @end deffn
 
-@deffn {Macro} YYERROR_VERBOSE
-An obsolete macro used in the @file{yacc.c} skeleton, that you define
-with @code{#define} in the prologue to request verbose, specific error
-message strings when @code{yyerror} is called.  It doesn't matter what
-definition you use for @code{YYERROR_VERBOSE}, just whether you define
-it.  Using @samp{%define parse.error verbose} is preferred
-(@pxref{Error Reporting, ,The Error Reporting Function @code{yyerror}}).
-@end deffn
-
 @deffn {Macro} YYFPRINTF
 Macro used to output run-time traces in C.
 @xref{Enabling Traces}.
-- 
2.24.1




reply via email to

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