1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
|
/* -*- mode: C; buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by regen_perly.pl from perly.y.
Any changes made here will be lost!
*/
#define PERL_BISON_VERSION 30008
#ifdef PERL_CORE
/* A Bison parser, made by GNU Bison 3.8.2. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
especially those whose name start with YY_ or yy_. They are
private implementation details that can be changed or removed. */
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif
/* Token kinds. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
YYEMPTY = -2,
YYEOF = 0, /* "end of file" */
YYerror = 256, /* error */
YYUNDEF = 257, /* "invalid token" */
GRAMPROG = 258, /* GRAMPROG */
GRAMEXPR = 259, /* GRAMEXPR */
GRAMBLOCK = 260, /* GRAMBLOCK */
GRAMBARESTMT = 261, /* GRAMBARESTMT */
GRAMFULLSTMT = 262, /* GRAMFULLSTMT */
GRAMSTMTSEQ = 263, /* GRAMSTMTSEQ */
GRAMSUBSIGNATURE = 264, /* GRAMSUBSIGNATURE */
PERLY_AMPERSAND = 265, /* PERLY_AMPERSAND */
PERLY_BRACE_OPEN = 266, /* PERLY_BRACE_OPEN */
PERLY_BRACE_CLOSE = 267, /* PERLY_BRACE_CLOSE */
PERLY_BRACKET_OPEN = 268, /* PERLY_BRACKET_OPEN */
PERLY_BRACKET_CLOSE = 269, /* PERLY_BRACKET_CLOSE */
PERLY_COMMA = 270, /* PERLY_COMMA */
PERLY_DOLLAR = 271, /* PERLY_DOLLAR */
PERLY_DOT = 272, /* PERLY_DOT */
PERLY_EQUAL_SIGN = 273, /* PERLY_EQUAL_SIGN */
PERLY_MINUS = 274, /* PERLY_MINUS */
PERLY_PERCENT_SIGN = 275, /* PERLY_PERCENT_SIGN */
PERLY_PLUS = 276, /* PERLY_PLUS */
PERLY_SEMICOLON = 277, /* PERLY_SEMICOLON */
PERLY_SLASH = 278, /* PERLY_SLASH */
PERLY_SNAIL = 279, /* PERLY_SNAIL */
PERLY_STAR = 280, /* PERLY_STAR */
KW_FORMAT = 281, /* KW_FORMAT */
KW_PACKAGE = 282, /* KW_PACKAGE */
KW_CLASS = 283, /* KW_CLASS */
KW_LOCAL = 284, /* KW_LOCAL */
KW_MY = 285, /* KW_MY */
KW_FIELD = 286, /* KW_FIELD */
KW_IF = 287, /* KW_IF */
KW_ELSE = 288, /* KW_ELSE */
KW_ELSIF = 289, /* KW_ELSIF */
KW_UNLESS = 290, /* KW_UNLESS */
KW_FOR = 291, /* KW_FOR */
KW_UNTIL = 292, /* KW_UNTIL */
KW_WHILE = 293, /* KW_WHILE */
KW_CONTINUE = 294, /* KW_CONTINUE */
KW_GIVEN = 295, /* KW_GIVEN */
KW_WHEN = 296, /* KW_WHEN */
KW_DEFAULT = 297, /* KW_DEFAULT */
KW_TRY = 298, /* KW_TRY */
KW_CATCH = 299, /* KW_CATCH */
KW_FINALLY = 300, /* KW_FINALLY */
KW_DEFER = 301, /* KW_DEFER */
KW_REQUIRE = 302, /* KW_REQUIRE */
KW_DO = 303, /* KW_DO */
KW_USE_or_NO = 304, /* KW_USE_or_NO */
KW_SUB_named = 305, /* KW_SUB_named */
KW_SUB_named_sig = 306, /* KW_SUB_named_sig */
KW_SUB_anon = 307, /* KW_SUB_anon */
KW_SUB_anon_sig = 308, /* KW_SUB_anon_sig */
KW_METHOD_named = 309, /* KW_METHOD_named */
KW_METHOD_anon = 310, /* KW_METHOD_anon */
BAREWORD = 311, /* BAREWORD */
METHCALL0 = 312, /* METHCALL0 */
METHCALL = 313, /* METHCALL */
THING = 314, /* THING */
PMFUNC = 315, /* PMFUNC */
PRIVATEREF = 316, /* PRIVATEREF */
QWLIST = 317, /* QWLIST */
FUNC0OP = 318, /* FUNC0OP */
FUNC0SUB = 319, /* FUNC0SUB */
UNIOPSUB = 320, /* UNIOPSUB */
LSTOPSUB = 321, /* LSTOPSUB */
PLUGEXPR = 322, /* PLUGEXPR */
PLUGSTMT = 323, /* PLUGSTMT */
LABEL = 324, /* LABEL */
LOOPEX = 325, /* LOOPEX */
DOTDOT = 326, /* DOTDOT */
YADAYADA = 327, /* YADAYADA */
FUNC0 = 328, /* FUNC0 */
FUNC1 = 329, /* FUNC1 */
FUNC = 330, /* FUNC */
UNIOP = 331, /* UNIOP */
LSTOP = 332, /* LSTOP */
BLKLSTOP = 333, /* BLKLSTOP */
POWOP = 334, /* POWOP */
MULOP = 335, /* MULOP */
ADDOP = 336, /* ADDOP */
DOLSHARP = 337, /* DOLSHARP */
HASHBRACK = 338, /* HASHBRACK */
NOAMP = 339, /* NOAMP */
COLONATTR = 340, /* COLONATTR */
FORMLBRACK = 341, /* FORMLBRACK */
FORMRBRACK = 342, /* FORMRBRACK */
SUBLEXSTART = 343, /* SUBLEXSTART */
SUBLEXEND = 344, /* SUBLEXEND */
PHASER = 345, /* PHASER */
PREC_LOW = 346, /* PREC_LOW */
PLUGIN_LOW_OP = 347, /* PLUGIN_LOW_OP */
OROP = 348, /* OROP */
PLUGIN_LOGICAL_OR_LOW_OP = 349, /* PLUGIN_LOGICAL_OR_LOW_OP */
ANDOP = 350, /* ANDOP */
PLUGIN_LOGICAL_AND_LOW_OP = 351, /* PLUGIN_LOGICAL_AND_LOW_OP */
NOTOP = 352, /* NOTOP */
ASSIGNOP = 353, /* ASSIGNOP */
PLUGIN_ASSIGN_OP = 354, /* PLUGIN_ASSIGN_OP */
PERLY_QUESTION_MARK = 355, /* PERLY_QUESTION_MARK */
PERLY_COLON = 356, /* PERLY_COLON */
OROR = 357, /* OROR */
DORDOR = 358, /* DORDOR */
PLUGIN_LOGICAL_OR_OP = 359, /* PLUGIN_LOGICAL_OR_OP */
ANDAND = 360, /* ANDAND */
PLUGIN_LOGICAL_AND_OP = 361, /* PLUGIN_LOGICAL_AND_OP */
BITOROP = 362, /* BITOROP */
BITANDOP = 363, /* BITANDOP */
CHEQOP = 364, /* CHEQOP */
NCEQOP = 365, /* NCEQOP */
CHRELOP = 366, /* CHRELOP */
NCRELOP = 367, /* NCRELOP */
PLUGIN_REL_OP = 368, /* PLUGIN_REL_OP */
SHIFTOP = 369, /* SHIFTOP */
PLUGIN_ADD_OP = 370, /* PLUGIN_ADD_OP */
PLUGIN_MUL_OP = 371, /* PLUGIN_MUL_OP */
MATCHOP = 372, /* MATCHOP */
PERLY_EXCLAMATION_MARK = 373, /* PERLY_EXCLAMATION_MARK */
PERLY_TILDE = 374, /* PERLY_TILDE */
UMINUS = 375, /* UMINUS */
REFGEN = 376, /* REFGEN */
PLUGIN_POW_OP = 377, /* PLUGIN_POW_OP */
PREINC = 378, /* PREINC */
PREDEC = 379, /* PREDEC */
POSTINC = 380, /* POSTINC */
POSTDEC = 381, /* POSTDEC */
POSTJOIN = 382, /* POSTJOIN */
PLUGIN_HIGH_OP = 383, /* PLUGIN_HIGH_OP */
ARROW = 384, /* ARROW */
PERLY_PAREN_CLOSE = 385, /* PERLY_PAREN_CLOSE */
PERLY_PAREN_OPEN = 386 /* PERLY_PAREN_OPEN */
};
typedef enum yytokentype yytoken_kind_t;
#endif
/* Value type. */
#ifdef PERL_IN_TOKE_C
static bool
S_is_opval_token(int type) {
switch (type) {
case BAREWORD:
case FUNC0OP:
case FUNC0SUB:
case LABEL:
case LSTOPSUB:
case METHCALL:
case METHCALL0:
case PLUGEXPR:
case PLUGSTMT:
case PMFUNC:
case PRIVATEREF:
case QWLIST:
case THING:
case UNIOPSUB:
return 1;
}
return 0;
}
#endif /* PERL_IN_TOKE_C */
#endif /* PERL_CORE */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
I32 ival; /* __DEFAULT__ (marker for regen_perly.pl;
must always be 1st union member) */
void *pval;
OP *opval;
GV *gvval;
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
int yyparse (void);
/* Generated from:
* 57ef509d481a8f100fca417b83deb7d66655912f27495b2f6daa0699748ea44f perly.y
* f13e9c08cea6302f0c1d1f467405bd0e0880d0ea92d0669901017a7f7e94ab28 regen_perly.pl
* ex: set ro ft=c: */
|