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