This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
RMG: Show that version'd binaries might be used
[perl5.git] / perly.h
... / ...
CommitLineData
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#ifdef PERL_CORE
8/* A Bison parser, made by GNU Bison 2.7.12-4996. */
9
10/* Bison interface for Yacc-like parsers in C
11
12 Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
13
14 This program is free software: you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program. If not, see <http://www.gnu.org/licenses/>. */
26
27/* As a special exception, you may create a larger work that contains
28 part or all of the Bison parser skeleton and distribute that work
29 under terms of your choice, so long as that work isn't itself a
30 parser generator using the skeleton or a modified version thereof
31 as a parser skeleton. Alternatively, if you modify or redistribute
32 the parser skeleton itself, you may (at your option) remove this
33 special exception, which will cause the skeleton and the resulting
34 Bison output files to be licensed under the GNU General Public
35 License without this special exception.
36
37 This special exception was added by the Free Software Foundation in
38 version 2.2 of Bison. */
39
40/* Enabling traces. */
41#ifndef YYDEBUG
42# define YYDEBUG 0
43#endif
44#if YYDEBUG
45extern int yydebug;
46#endif
47
48/* Tokens. */
49#ifndef YYTOKENTYPE
50# define YYTOKENTYPE
51 /* Put the tokens into the symbol table, so that GDB and other debuggers
52 know about them. */
53 enum yytokentype {
54 GRAMPROG = 258,
55 GRAMEXPR = 259,
56 GRAMBLOCK = 260,
57 GRAMBARESTMT = 261,
58 GRAMFULLSTMT = 262,
59 GRAMSTMTSEQ = 263,
60 WORD = 264,
61 METHOD = 265,
62 FUNCMETH = 266,
63 THING = 267,
64 PMFUNC = 268,
65 PRIVATEREF = 269,
66 QWLIST = 270,
67 FUNC0OP = 271,
68 FUNC0SUB = 272,
69 UNIOPSUB = 273,
70 LSTOPSUB = 274,
71 PLUGEXPR = 275,
72 PLUGSTMT = 276,
73 LABEL = 277,
74 FORMAT = 278,
75 SUB = 279,
76 ANONSUB = 280,
77 PACKAGE = 281,
78 USE = 282,
79 WHILE = 283,
80 UNTIL = 284,
81 IF = 285,
82 UNLESS = 286,
83 ELSE = 287,
84 ELSIF = 288,
85 CONTINUE = 289,
86 FOR = 290,
87 GIVEN = 291,
88 WHEN = 292,
89 DEFAULT = 293,
90 LOOPEX = 294,
91 DOTDOT = 295,
92 YADAYADA = 296,
93 FUNC0 = 297,
94 FUNC1 = 298,
95 FUNC = 299,
96 UNIOP = 300,
97 LSTOP = 301,
98 RELOP = 302,
99 EQOP = 303,
100 MULOP = 304,
101 ADDOP = 305,
102 DOLSHARP = 306,
103 DO = 307,
104 HASHBRACK = 308,
105 NOAMP = 309,
106 LOCAL = 310,
107 MY = 311,
108 REQUIRE = 312,
109 COLONATTR = 313,
110 FORMLBRACK = 314,
111 FORMRBRACK = 315,
112 PREC_LOW = 316,
113 DOROP = 317,
114 OROP = 318,
115 ANDOP = 319,
116 NOTOP = 320,
117 ASSIGNOP = 321,
118 DORDOR = 322,
119 OROR = 323,
120 ANDAND = 324,
121 BITOROP = 325,
122 BITANDOP = 326,
123 SHIFTOP = 327,
124 MATCHOP = 328,
125 REFGEN = 329,
126 UMINUS = 330,
127 POWOP = 331,
128 POSTJOIN = 332,
129 POSTDEC = 333,
130 POSTINC = 334,
131 PREDEC = 335,
132 PREINC = 336,
133 ARROW = 337
134 };
135#endif
136
137/* Tokens. */
138#define GRAMPROG 258
139#define GRAMEXPR 259
140#define GRAMBLOCK 260
141#define GRAMBARESTMT 261
142#define GRAMFULLSTMT 262
143#define GRAMSTMTSEQ 263
144#define WORD 264
145#define METHOD 265
146#define FUNCMETH 266
147#define THING 267
148#define PMFUNC 268
149#define PRIVATEREF 269
150#define QWLIST 270
151#define FUNC0OP 271
152#define FUNC0SUB 272
153#define UNIOPSUB 273
154#define LSTOPSUB 274
155#define PLUGEXPR 275
156#define PLUGSTMT 276
157#define LABEL 277
158#define FORMAT 278
159#define SUB 279
160#define ANONSUB 280
161#define PACKAGE 281
162#define USE 282
163#define WHILE 283
164#define UNTIL 284
165#define IF 285
166#define UNLESS 286
167#define ELSE 287
168#define ELSIF 288
169#define CONTINUE 289
170#define FOR 290
171#define GIVEN 291
172#define WHEN 292
173#define DEFAULT 293
174#define LOOPEX 294
175#define DOTDOT 295
176#define YADAYADA 296
177#define FUNC0 297
178#define FUNC1 298
179#define FUNC 299
180#define UNIOP 300
181#define LSTOP 301
182#define RELOP 302
183#define EQOP 303
184#define MULOP 304
185#define ADDOP 305
186#define DOLSHARP 306
187#define DO 307
188#define HASHBRACK 308
189#define NOAMP 309
190#define LOCAL 310
191#define MY 311
192#define REQUIRE 312
193#define COLONATTR 313
194#define FORMLBRACK 314
195#define FORMRBRACK 315
196#define PREC_LOW 316
197#define DOROP 317
198#define OROP 318
199#define ANDOP 319
200#define NOTOP 320
201#define ASSIGNOP 321
202#define DORDOR 322
203#define OROR 323
204#define ANDAND 324
205#define BITOROP 325
206#define BITANDOP 326
207#define SHIFTOP 327
208#define MATCHOP 328
209#define REFGEN 329
210#define UMINUS 330
211#define POWOP 331
212#define POSTJOIN 332
213#define POSTDEC 333
214#define POSTINC 334
215#define PREDEC 335
216#define PREINC 336
217#define ARROW 337
218
219
220#ifdef PERL_IN_TOKE_C
221static bool
222S_is_opval_token(int type) {
223 switch (type) {
224 case FUNC0OP:
225 case FUNC0SUB:
226 case FUNCMETH:
227 case LSTOPSUB:
228 case METHOD:
229 case PLUGEXPR:
230 case PLUGSTMT:
231 case PMFUNC:
232 case PRIVATEREF:
233 case QWLIST:
234 case THING:
235 case UNIOPSUB:
236 case WORD:
237 return 1;
238 }
239 return 0;
240}
241#endif /* PERL_IN_TOKE_C */
242#endif /* PERL_CORE */
243#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
244typedef union YYSTYPE
245{
246/* Line 2053 of yacc.c */
247
248 I32 ival; /* __DEFAULT__ (marker for regen_perly.pl;
249 must always be 1st union member) */
250 char *pval;
251 OP *opval;
252 GV *gvval;
253
254
255/* Line 2053 of yacc.c */
256} YYSTYPE;
257# define YYSTYPE_IS_TRIVIAL 1
258# define yystype YYSTYPE /* obsolescent; will be withdrawn */
259# define YYSTYPE_IS_DECLARED 1
260#endif
261
262
263#ifdef YYPARSE_PARAM
264#if defined __STDC__ || defined __cplusplus
265int yyparse (void *YYPARSE_PARAM);
266#else
267int yyparse ();
268#endif
269#else /* ! YYPARSE_PARAM */
270#if defined __STDC__ || defined __cplusplus
271int yyparse (void);
272#else
273int yyparse ();
274#endif
275#endif /* ! YYPARSE_PARAM */
276
277
278/* Generated from:
279 * 7e6c275bbd1dbc800c205a8a8b0cd785e4859f94976ee7372149598471f16f81 perly.y
280 * d1d4df7b8e30ac9dede664af9179e6e5e7ddc7f2ad9c4eff9e2e5b32c9e16a6e regen_perly.pl
281 * ex: set ro: */