Re: api.prefix history

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
Hi Matthew.

> Le 25 août 2020 à 16:15, Matthew Fernandez <[email protected]> a écrit :
> 
> Hello all,
> 
> I accidentally stumbled across a quirk, that Bison 2.6 - 3.0 expects the api.prefix option value to be given without braces. This surprised me because the Bison %define summary [0] gives no relevant change history for this option beyond its introduction in 2.6. Could the change I’ve described be added to the historical description?

Sure.  Done.  Cheers.

commit 0522047c96e18361b62a42da3a15817959483cbd
Author: Akim Demaille <[email protected]>
Date:   Sun Aug 30 09:29:00 2020 +0200

    doc: history of api.prefix
    
    Reported by Matthew Fernandez <[email protected]>.
    https://lists.gnu.org/r/help-bison/2020-08/msg00015.html
    
    * doc/bison.texi (api.prefix): We move to {} in 3.0.

diff --git a/doc/bison.texi b/doc/bison.texi
index e404eb03..48428f04 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -6296,7 +6296,10 @@ Introduced in Bison 3.3 to replace @code{parser_class_name}.
 
 @item Default Value: @code{YY} for Java, @code{yy} otherwise.
 
-@item History: introduced in Bison 2.6
+@item History:
+introduced in Bison 2.6, with its argument in double quotes.  Uses braces
+since Bison 3.0 (double quotes are still supported for backward
+compatibility).
 @end itemize
 @end deffn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.