bison-patches
[Top][All Lists]
Advanced

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

[PATCH 0/6] Use symbol kinds in symbol actions


From: Akim Demaille
Subject: [PATCH 0/6] Use symbol kinds in symbol actions
Date: Sat, 23 May 2020 17:14:39 +0200

The point of this series is a one-liner (the fifth one below), which
results in this kind of diff:

   switch (yykind)
     {
-    case 3: /* "string"  */
+    case YYSYMBOL_STRING: /* "string"  */
          { fputs (((*yyvaluep).STRING), yyo); }
         break;
 
-    case 4: /* "translatable string"  */
+    case YYSYMBOL_TSTRING: /* "translatable string"  */
          { fputs (((*yyvaluep).TSTRING), yyo); }
         break;

Akim Demaille (6):
  tests: show logs
  m4: use m4_shift2 etc.
  m4: simplify useless quotation
  kinds: also define the possibly qualified symbol kinds
  kinds: use the symbol kinds where applicable
  regen

 data/README.md                            |  24 +++--
 data/skeletons/bison.m4                   |  30 ++++---
 data/skeletons/c++.m4                     |   8 +-
 data/skeletons/c.m4                       |   4 +-
 data/skeletons/d.m4                       |  11 ++-
 data/skeletons/glr.cc                     |  20 ++---
 data/skeletons/java.m4                    |   9 +-
 data/skeletons/lalr1.cc                   |  29 +++---
 data/skeletons/lalr1.d                    |  26 +++---
 data/skeletons/lalr1.java                 |  44 +++++-----
 examples/c/bistromathic/bistromathic.test |   6 +-
 examples/test                             |   3 +-
 src/parse-gram.c                          | 102 +++++++++++-----------
 src/parse-gram.h                          |   2 +-
 14 files changed, 177 insertions(+), 141 deletions(-)

-- 
2.26.2




reply via email to

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