summaryrefslogtreecommitdiff
path: root/perly.tab
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-10-25 19:29:25 +0200
committerYves Orton <demerphq@gmail.com>2022-10-31 07:57:25 +0100
commitc06746dce9294ecbcea2fe5971680a2eee46ed0a (patch)
tree0ec7a21bb5afd9642e53d30215a8cbb208c6e390 /perly.tab
parentd91f67a32206bcc68108d3870c4864475d1f863b (diff)
downloadperl-c06746dce9294ecbcea2fe5971680a2eee46ed0a.tar.gz
perly.* - update perly files with more recent bison
I want to modify perly with a comment. But that would leave us with output files that are out of date in comparison with the input files. My bison is later than the last used for perl, so running it without my patch makes large changes. Therefore I have separated the change into two pieces, the first just updates everything using my more modern bison, the second runs bison again with the change I actually made. This is the first of the pair, nothing changes here except that which bison changed.
Diffstat (limited to 'perly.tab')
-rw-r--r--perly.tab25
1 files changed, 13 insertions, 12 deletions
diff --git a/perly.tab b/perly.tab
index d9892a766e..73c39d15f7 100644
--- a/perly.tab
+++ b/perly.tab
@@ -20,14 +20,15 @@
#define YYUNDEFTOK 2
#define YYMAXUTOK 369
+
/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
as returned by yylex, with out-of-bounds checking. */
#define YYTRANSLATE(YYX) \
- ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+ (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
as returned by yylex. */
-static const yytype_uint8 yytranslate[] =
+static const yytype_int8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -70,7 +71,7 @@ static const yytype_uint8 yytranslate[] =
#if YYDEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
-static const yytype_uint16 yyrline[] =
+static const yytype_int16 yyrline[] =
{
0, 153, 153, 152, 164, 163, 174, 173, 187, 186,
200, 199, 213, 212, 223, 222, 235, 243, 247, 254,
@@ -157,7 +158,7 @@ static const char *const yytname[] =
# ifdef YYPRINT
/* YYTOKNUM[NUM] -- (External) token number corresponding to the
(internal) symbol number NUM (which must be that of a token). */
-static const yytype_uint16 yytoknum[] =
+static const yytype_int16 yytoknum[] =
{
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
@@ -174,15 +175,15 @@ static const yytype_uint16 yytoknum[] =
};
# endif
-#define YYPACT_NINF -507
+#define YYPACT_NINF (-507)
-#define yypact_value_is_default(Yystate) \
- (!!((Yystate) == (-507)))
+#define yypact_value_is_default(Yyn) \
+ ((Yyn) == YYPACT_NINF)
-#define YYTABLE_NINF -303
+#define YYTABLE_NINF (-303)
-#define yytable_value_is_error(Yytable_value) \
- (!!((Yytable_value) == (-303)))
+#define yytable_value_is_error(Yyn) \
+ ((Yyn) == YYTABLE_NINF)
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
@@ -255,7 +256,7 @@ static const yytype_int16 yypact[] =
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
Performed when YYTABLE does not specify something else to do. Zero
means the default is an error. */
-static const yytype_uint16 yydefact[] =
+static const yytype_int16 yydefact[] =
{
0, 2, 4, 6, 8, 10, 12, 14, 0, 19,
17, 0, 0, 0, 17, 129, 1, 17, 0, 17,
@@ -1067,7 +1068,7 @@ static const yytype_uint8 yyr1[] =
};
/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] =
+static const yytype_int8 yyr2[] =
{
0, 2, 0, 4, 0, 3, 0, 3, 0, 3,
0, 3, 0, 3, 0, 3, 4, 0, 7, 0,