bug-bison
[Top][All Lists]
Advanced

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

Re: [Bison-Announce] Bison 3.5.90 released [beta]


From: Akim Demaille
Subject: Re: [Bison-Announce] Bison 3.5.90 released [beta]
Date: Sat, 25 Apr 2020 08:01:31 +0200

Hi Frank!

> Le 25 avr. 2020 à 01:17, Frank Heckenbach <address@hidden> a écrit :
> 
> Hi Akim,
> 
>> I'm installing this, I think it should make things much clearer.
> 
> Thanks.
> 
> What about defining "N_" in the skeleton as discussed?

I did.

https://lists.gnu.org/r/bison-patches/2020-04/msg00136.html

> BTW, I see
> you just changed:
> 
>> -#define N_
>> +  #define N_(Msgid) (Msgid)
> 
> Is there a practical difference and a real reason to use the latter
> form?

No, I just took the "standard" definition, which is a bit more
self-documenting.

And I forgot it was no longer needed, I removed it :)  Thanks!



commit bb7c4a55082841979d62f1381bdb09c3e767d654
Author: Akim Demaille <address@hidden>
Date:   Sat Apr 25 08:00:08 2020 +0200

    style: minor fixes
    
    * data/skeletons/bison.m4, doc/bison.texi: Spell check.
    * examples/c/bistromathic/parse.y (N_): Remove, now useless.

diff --git a/data/skeletons/bison.m4 b/data/skeletons/bison.m4
index 1805df1e..c83ae70e 100644
--- a/data/skeletons/bison.m4
+++ b/data/skeletons/bison.m4
@@ -369,7 +369,7 @@ m4_define([b4_$3_if],
 # Expand IF-TRUE, if FLAG is true, IF-FALSE otherwise.
 b4_define_flag_if([defines])            # Whether headers are requested.
 b4_define_flag_if([glr])                # Whether a GLR parser is requested.
-b4_define_flag_if([has_translations])   # Whether some tokens are 
internalionalized.
+b4_define_flag_if([has_translations])   # Whether some tokens are 
internationalized.
 b4_define_flag_if([nondeterministic])   # Whether conflicts should be handled.
 b4_define_flag_if([token_table])        # Whether yytoken_table is demanded.
 b4_define_flag_if([yacc])               # Whether POSIX Yacc is emulated.
diff --git a/doc/bison.texi b/doc/bison.texi
index 3875c222..b8fe11bb 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -7516,7 +7516,7 @@ The name of the symbol whose kind is @var{symbol}, 
possibly translated.
 
 A custom syntax error function looks as follows.  This implementation is
 inappropriate for internationalization, see the @file{c/bistromathic}
-example for a better altnative.
+example for a better alternative.
 
 @example
 int
@@ -8255,7 +8255,7 @@ the lookahead token has no precedence, then the default 
is to shift.
 @subsection Using Precedence For Non Operators
 
 Using properly precedence and associativity directives can help fixing
-shift/reduce conflicts that do not involve arithmetics-like operators.  For
+shift/reduce conflicts that do not involve arithmetic-like operators.  For
 instance, the ``dangling @code{else}'' problem (@pxref{Shift/Reduce}) can be
 solved elegantly in two different ways.
 
@@ -12078,7 +12078,7 @@ The name of the symbol whose kind is @var{symbol}, 
possibly translated.
 
 A custom syntax error function looks as follows.  This implementation is
 inappropriate for internationalization, see the @file{c/bistromathic}
-example for a better altnative.
+example for a better alternative.
 
 @example
 void
@@ -12334,7 +12334,7 @@ interactions.  A hand-written scanner is actually 
easier to interface with.
 @node Calc++ --- C++ Calculator
 @subsubsection Calc++ --- C++ Calculator
 
-Of course the grammar is dedicated to arithmetics, a single expression,
+Of course the grammar is dedicated to arithmetic, a single expression,
 possibly preceded by variable assignments.  An environment containing
 possibly predefined variables such as @code{one} and @code{two}, is
 exchanged with the parser.  An example of valid input follows.
@@ -13334,7 +13334,7 @@ public void reportSyntaxError(YYParser.Context ctx) @{
 
 @noindent
 This implementation is inappropriate for internationalization, see the
-@file{c/bistromathic} example for a better altnative.
+@file{c/bistromathic} example for a better alternative.
 @end deftypemethod
 
 @node Java Action Features
@@ -15124,7 +15124,7 @@ London, Department of Computer Science, TR-00-12 
(December 2000).
 @c LocalWords: redeclare automata Dparse localedir datadir XSLT midrule Wno
 @c LocalWords: multitable headitem hh basename Doxygen fno filename gdef de
 @c LocalWords: doxygen ival sval deftypemethod deallocate pos deftypemethodx
-@c LocalWords: Ctor defcv defcvx arg accessors arithmetics CPP ifndef CALCXX
+@c LocalWords: Ctor defcv defcvx arg accessors CPP ifndef CALCXX YYERRCODE
 @c LocalWords: lexer's calcxx bool LPAREN RPAREN deallocation cerrno climits
 @c LocalWords: cstdlib Debian undef yywrap unput noyywrap nounput zA yyleng
 @c LocalWords: errno strtol ERANGE str strerror iostream argc argv Javadoc PSLR
@@ -15158,7 +15158,7 @@ London, Department of Computer Science, TR-00-12 
(December 2000).
 @c LocalWords: Wdangling yytoken erreur syntaxe inattendu attendait nombre
 @c LocalWords: YYUNDEF SymbolKind yypcontext YYENOMEM TOKENMAX getBundle
 @c LocalWords: ResourceBundle myResources getString getName getToken
-@c LocalWords: getLocation getExpectedTokens reportSyntaxError
+@c LocalWords: getLocation getExpectedTokens reportSyntaxError bistromathic
 
 @c Local Variables:
 @c ispell-dictionary: "american"
diff --git a/examples/c/bistromathic/parse.y b/examples/c/bistromathic/parse.y
index 70c2861b..58601ce7 100644
--- a/examples/c/bistromathic/parse.y
+++ b/examples/c/bistromathic/parse.y
@@ -55,7 +55,6 @@
   #else
   # define _(Msgid)  (Msgid)
   #endif
-  #define N_(Msgid) (Msgid)
 
   // Whether to quit.
   int done = 0;




reply via email to

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