/* -*- 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
/* 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_TRY = 295,
/* KW_TRY */
KW_CATCH = 296,
/* KW_CATCH */
KW_FINALLY = 297,
/* KW_FINALLY */
KW_DEFER = 298,
/* KW_DEFER */
KW_REQUIRE = 299,
/* KW_REQUIRE */
KW_DO = 300,
/* KW_DO */
KW_USE_or_NO = 301,
/* KW_USE_or_NO */
KW_SUB_named = 302,
/* KW_SUB_named */
KW_SUB_named_sig = 303,
/* KW_SUB_named_sig */
KW_SUB_anon = 304,
/* KW_SUB_anon */
KW_SUB_anon_sig = 305,
/* KW_SUB_anon_sig */
KW_METHOD_named = 306,
/* KW_METHOD_named */
KW_METHOD_anon = 307,
/* KW_METHOD_anon */
BAREWORD = 308,
/* BAREWORD */
METHCALL0 = 309,
/* METHCALL0 */
METHCALL = 310,
/* METHCALL */
THING = 311,
/* THING */
PMFUNC = 312,
/* PMFUNC */
PRIVATEREF = 313,
/* PRIVATEREF */
QWLIST = 314,
/* QWLIST */
FUNC0OP = 315,
/* FUNC0OP */
FUNC0SUB = 316,
/* FUNC0SUB */
UNIOPSUB = 317,
/* UNIOPSUB */
LSTOPSUB = 318,
/* LSTOPSUB */
PLUGEXPR = 319,
/* PLUGEXPR */
PLUGSTMT = 320,
/* PLUGSTMT */
LABEL = 321,
/* LABEL */
LOOPEX = 322,
/* LOOPEX */
DOTDOT = 323,
/* DOTDOT */
YADAYADA = 324,
/* YADAYADA */
FUNC0 = 325,
/* FUNC0 */
FUNC1 = 326,
/* FUNC1 */
FUNC = 327,
/* FUNC */
UNIOP = 328,
/* UNIOP */
LSTOP = 329,
/* LSTOP */
POWOP = 330,
/* POWOP */
MULOP = 331,
/* MULOP */
ADDOP = 332,
/* ADDOP */
DOLSHARP = 333,
/* DOLSHARP */
HASHBRACK = 334,
/* HASHBRACK */
NOAMP = 335,
/* NOAMP */
COLONATTR = 336,
/* COLONATTR */
FORMLBRACK = 337,
/* FORMLBRACK */
FORMRBRACK = 338,
/* FORMRBRACK */
SUBLEXSTART = 339,
/* SUBLEXSTART */
SUBLEXEND = 340,
/* SUBLEXEND */
PHASER = 341,
/* PHASER */
PREC_LOW = 342,
/* PREC_LOW */
PLUGIN_LOW_OP = 343,
/* PLUGIN_LOW_OP */
OROP = 344,
/* OROP */
PLUGIN_LOGICAL_OR_LOW_OP = 345,
/* PLUGIN_LOGICAL_OR_LOW_OP */
ANDOP = 346,
/* ANDOP */
PLUGIN_LOGICAL_AND_LOW_OP = 347,
/* PLUGIN_LOGICAL_AND_LOW_OP */
NOTOP = 348,
/* NOTOP */
ASSIGNOP = 349,
/* ASSIGNOP */
PLUGIN_ASSIGN_OP = 350,
/* PLUGIN_ASSIGN_OP */
PERLY_QUESTION_MARK = 351,
/* PERLY_QUESTION_MARK */
PERLY_COLON = 352,
/* PERLY_COLON */
OROR = 353,
/* OROR */
DORDOR = 354,
/* DORDOR */
PLUGIN_LOGICAL_OR_OP = 355,
/* PLUGIN_LOGICAL_OR_OP */
ANDAND = 356,
/* ANDAND */
PLUGIN_LOGICAL_AND_OP = 357,
/* PLUGIN_LOGICAL_AND_OP */
BITOROP = 358,
/* BITOROP */
BITANDOP = 359,
/* BITANDOP */
CHEQOP = 360,
/* CHEQOP */
NCEQOP = 361,
/* NCEQOP */
CHRELOP = 362,
/* CHRELOP */
NCRELOP = 363,
/* NCRELOP */
PLUGIN_REL_OP = 364,
/* PLUGIN_REL_OP */
SHIFTOP = 365,
/* SHIFTOP */
PLUGIN_ADD_OP = 366,
/* PLUGIN_ADD_OP */
PLUGIN_MUL_OP = 367,
/* PLUGIN_MUL_OP */
MATCHOP = 368,
/* MATCHOP */
PERLY_EXCLAMATION_MARK = 369,
/* PERLY_EXCLAMATION_MARK */
PERLY_TILDE = 370,
/* PERLY_TILDE */
UMINUS = 371,
/* UMINUS */
REFGEN = 372,
/* REFGEN */
PLUGIN_POW_OP = 373,
/* PLUGIN_POW_OP */
PREINC = 374,
/* PREINC */
PREDEC = 375,
/* PREDEC */
POSTINC = 376,
/* POSTINC */
POSTDEC = 377,
/* POSTDEC */
POSTJOIN = 378,
/* POSTJOIN */
PLUGIN_HIGH_OP = 379,
/* PLUGIN_HIGH_OP */
ARROW = 380,
/* ARROW */
PERLY_PAREN_CLOSE = 381,
/* PERLY_PAREN_CLOSE */
PERLY_PAREN_OPEN = 382
/* PERLY_PAREN_OPEN */
};
typedef
enum
yytokentype yytoken_kind_t;
#endif
/* Value type. */
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;
}
#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:
* 9fc11f4af92f701d8d7909a9cd9dc52e01098c42c2504fb84c15e1d1e72f4803 perly.y
* f13e9c08cea6302f0c1d1f467405bd0e0880d0ea92d0669901017a7f7e94ab28 regen_perly.pl
* ex: set ro ft=c: */