This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta for e3f4f3212908, 33617017c38f, cfb8d85df6eb
[perl5.git] / perly.h
CommitLineData
e8fb9efb
NC
1/* -*- buffer-read-only: t -*-
2 !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
3f5e9543 3 This file is built by regen_perly.pl from perly.y.
e8fb9efb
NC
4 Any changes made here will be lost!
5 */
6
86b50d93 7#define PERL_BISON_VERSION 30004
f39ff1f3 8
d8118cad 9#ifdef PERL_CORE
86b50d93 10/* A Bison parser, made by GNU Bison 3.4.1. */
4e4da3ac 11
a9f5ab8d 12/* Bison interface for Yacc-like parsers in C
38c8d7b1 13
86b50d93
DIM
14 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
15 Inc.
38c8d7b1 16
a9f5ab8d 17 This program is free software: you can redistribute it and/or modify
0de566d7 18 it under the terms of the GNU General Public License as published by
a9f5ab8d
LM
19 the Free Software Foundation, either version 3 of the License, or
20 (at your option) any later version.
38c8d7b1 21
0de566d7
DM
22 This program is distributed in the hope that it will be useful,
23 but WITHOUT ANY WARRANTY; without even the implied warranty of
24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 GNU General Public License for more details.
38c8d7b1 26
0de566d7 27 You should have received a copy of the GNU General Public License
a9f5ab8d 28 along with this program. If not, see <http://www.gnu.org/licenses/>. */
0de566d7 29
f05e27e5
DM
30/* As a special exception, you may create a larger work that contains
31 part or all of the Bison parser skeleton and distribute that work
32 under terms of your choice, so long as that work isn't itself a
33 parser generator using the skeleton or a modified version thereof
34 as a parser skeleton. Alternatively, if you modify or redistribute
35 the parser skeleton itself, you may (at your option) remove this
36 special exception, which will cause the skeleton and the resulting
37 Bison output files to be licensed under the GNU General Public
38 License without this special exception.
38c8d7b1 39
f05e27e5
DM
40 This special exception was added by the Free Software Foundation in
41 version 2.2 of Bison. */
0de566d7 42
86b50d93
DIM
43/* Undocumented macros, especially those whose name start with YY_,
44 are private implementation details. Do not rely on them. */
45
a9f5ab8d
LM
46/* Debug traces. */
47#ifndef YYDEBUG
48# define YYDEBUG 0
49#endif
50#if YYDEBUG
51extern int yydebug;
52#endif
53
54/* Token type. */
0de566d7
DM
55#ifndef YYTOKENTYPE
56# define YYTOKENTYPE
a9f5ab8d
LM
57 enum yytokentype
58 {
59 GRAMPROG = 258,
60 GRAMEXPR = 259,
61 GRAMBLOCK = 260,
62 GRAMBARESTMT = 261,
63 GRAMFULLSTMT = 262,
64 GRAMSTMTSEQ = 263,
65 BAREWORD = 264,
66 METHOD = 265,
67 FUNCMETH = 266,
68 THING = 267,
69 PMFUNC = 268,
70 PRIVATEREF = 269,
71 QWLIST = 270,
72 FUNC0OP = 271,
73 FUNC0SUB = 272,
74 UNIOPSUB = 273,
75 LSTOPSUB = 274,
76 PLUGEXPR = 275,
77 PLUGSTMT = 276,
78 LABEL = 277,
79 FORMAT = 278,
80 SUB = 279,
436ddf68
DM
81 SIGSUB = 280,
82 ANONSUB = 281,
83 ANON_SIGSUB = 282,
84 PACKAGE = 283,
85 USE = 284,
86 WHILE = 285,
87 UNTIL = 286,
88 IF = 287,
89 UNLESS = 288,
90 ELSE = 289,
91 ELSIF = 290,
92 CONTINUE = 291,
93 FOR = 292,
94 GIVEN = 293,
95 WHEN = 294,
96 DEFAULT = 295,
97 LOOPEX = 296,
98 DOTDOT = 297,
99 YADAYADA = 298,
100 FUNC0 = 299,
101 FUNC1 = 300,
102 FUNC = 301,
103 UNIOP = 302,
104 LSTOP = 303,
105 RELOP = 304,
106 EQOP = 305,
107 MULOP = 306,
108 ADDOP = 307,
109 DOLSHARP = 308,
110 DO = 309,
111 HASHBRACK = 310,
112 NOAMP = 311,
113 LOCAL = 312,
114 MY = 313,
115 REQUIRE = 314,
116 COLONATTR = 315,
117 FORMLBRACK = 316,
118 FORMRBRACK = 317,
69afcc21
TC
119 SUBLEXSTART = 318,
120 SUBLEXEND = 319,
121 PREC_LOW = 320,
122 OROP = 321,
123 DOROP = 322,
124 ANDOP = 323,
125 NOTOP = 324,
126 ASSIGNOP = 325,
127 OROR = 326,
128 DORDOR = 327,
129 ANDAND = 328,
130 BITOROP = 329,
131 BITANDOP = 330,
132 SHIFTOP = 331,
133 MATCHOP = 332,
134 UMINUS = 333,
135 REFGEN = 334,
136 POWOP = 335,
137 PREINC = 336,
138 PREDEC = 337,
139 POSTINC = 338,
140 POSTDEC = 339,
141 POSTJOIN = 340,
142 ARROW = 341
a9f5ab8d 143 };
0de566d7 144#endif
38c8d7b1 145
a9f5ab8d 146/* Value type. */
6c7ae946
FC
147#ifdef PERL_IN_TOKE_C
148static bool
149S_is_opval_token(int type) {
150 switch (type) {
185c2e96 151 case BAREWORD:
6c7ae946
FC
152 case FUNC0OP:
153 case FUNC0SUB:
154 case FUNCMETH:
01719201 155 case LABEL:
6c7ae946
FC
156 case LSTOPSUB:
157 case METHOD:
158 case PLUGEXPR:
159 case PLUGSTMT:
160 case PMFUNC:
161 case PRIVATEREF:
162 case QWLIST:
163 case THING:
164 case UNIOPSUB:
6c7ae946
FC
165 return 1;
166 }
167 return 0;
168}
169#endif /* PERL_IN_TOKE_C */
0de566d7 170#endif /* PERL_CORE */
f05e27e5 171#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
a9f5ab8d 172union YYSTYPE
f05e27e5 173{
a9f5ab8d 174
d5c6462e
DM
175 I32 ival; /* __DEFAULT__ (marker for regen_perly.pl;
176 must always be 1st union member) */
79072805
LW
177 char *pval;
178 OP *opval;
179 GV *gvval;
a9f5ab8d 180
01719201 181
86b50d93 182};
01719201 183typedef union YYSTYPE YYSTYPE;
bdc377e5 184# define YYSTYPE_IS_TRIVIAL 1
a9f5ab8d 185# define YYSTYPE_IS_DECLARED 1
0de566d7
DM
186#endif
187
188
189
a9f5ab8d
LM
190int yyparse (void);
191
e8fb9efb 192
c24c946d 193/* Generated from:
69afcc21 194 * 41d458c12a47d69d8ab1315970582b2055ecea77bfc8a582b557e9b3df1c290a perly.y
86b50d93 195 * 0947213b55d0ed11693554bea04987e886cf285f5c14cf9075fa1e7acc3f4061 regen_perly.pl
c24c946d 196 * ex: set ro: */