This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[PATCH] function to parse Perl statement sequence
[perl5.git] / perly.h
CommitLineData
d8118cad 1#ifdef PERL_CORE
4e4da3ac 2/* A Bison parser, made by GNU Bison 2.3. */
e6289726 3
14a86d0c 4/* Skeleton interface for Bison's Yacc-like parsers in C
4e4da3ac
Z
5
6 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
f05e27e5 7 Free Software Foundation, Inc.
4e4da3ac
Z
8
9 This program is free software; you can redistribute it and/or modify
0de566d7 10 it under the terms of the GNU General Public License as published by
4e4da3ac
Z
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
0de566d7
DM
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
4e4da3ac 18
0de566d7 19 You should have received a copy of the GNU General Public License
4e4da3ac
Z
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA. */
0de566d7 23
f05e27e5
DM
24/* As a special exception, you may create a larger work that contains
25 part or all of the Bison parser skeleton and distribute that work
26 under terms of your choice, so long as that work isn't itself a
27 parser generator using the skeleton or a modified version thereof
28 as a parser skeleton. Alternatively, if you modify or redistribute
29 the parser skeleton itself, you may (at your option) remove this
30 special exception, which will cause the skeleton and the resulting
31 Bison output files to be licensed under the GNU General Public
32 License without this special exception.
4e4da3ac 33
f05e27e5
DM
34 This special exception was added by the Free Software Foundation in
35 version 2.2 of Bison. */
0de566d7
DM
36
37/* Tokens. */
38#ifndef YYTOKENTYPE
39# define YYTOKENTYPE
40 /* Put the tokens into the symbol table, so that GDB and other debuggers
41 know about them. */
42 enum yytokentype {
636def1f
RGS
43 GRAMPROG = 258,
44 GRAMFULLSTMT = 259,
07ffcb73
Z
45 GRAMSTMTSEQ = 260,
46 WORD = 261,
47 METHOD = 262,
48 FUNCMETH = 263,
49 THING = 264,
50 PMFUNC = 265,
51 PRIVATEREF = 266,
52 QWLIST = 267,
53 FUNC0SUB = 268,
54 UNIOPSUB = 269,
55 LSTOPSUB = 270,
56 PLUGEXPR = 271,
57 PLUGSTMT = 272,
58 LABEL = 273,
59 FORMAT = 274,
60 SUB = 275,
61 ANONSUB = 276,
62 PACKAGE = 277,
63 USE = 278,
64 WHILE = 279,
65 UNTIL = 280,
66 IF = 281,
67 UNLESS = 282,
68 ELSE = 283,
69 ELSIF = 284,
70 CONTINUE = 285,
71 FOR = 286,
72 GIVEN = 287,
73 WHEN = 288,
74 DEFAULT = 289,
75 LOOPEX = 290,
76 DOTDOT = 291,
77 YADAYADA = 292,
78 FUNC0 = 293,
79 FUNC1 = 294,
80 FUNC = 295,
81 UNIOP = 296,
82 LSTOP = 297,
83 RELOP = 298,
84 EQOP = 299,
85 MULOP = 300,
86 ADDOP = 301,
87 DOLSHARP = 302,
88 DO = 303,
89 HASHBRACK = 304,
90 NOAMP = 305,
91 LOCAL = 306,
92 MY = 307,
93 MYSUB = 308,
94 REQUIRE = 309,
95 COLONATTR = 310,
96 PREC_LOW = 311,
97 DOROP = 312,
98 OROP = 313,
99 ANDOP = 314,
100 NOTOP = 315,
101 ASSIGNOP = 316,
102 DORDOR = 317,
103 OROR = 318,
104 ANDAND = 319,
105 BITOROP = 320,
106 BITANDOP = 321,
107 SHIFTOP = 322,
108 MATCHOP = 323,
109 REFGEN = 324,
110 UMINUS = 325,
111 POWOP = 326,
112 POSTDEC = 327,
113 POSTINC = 328,
114 PREDEC = 329,
115 PREINC = 330,
116 ARROW = 331,
117 PEG = 332
0de566d7
DM
118 };
119#endif
20515881 120/* Tokens. */
636def1f
RGS
121#define GRAMPROG 258
122#define GRAMFULLSTMT 259
07ffcb73
Z
123#define GRAMSTMTSEQ 260
124#define WORD 261
125#define METHOD 262
126#define FUNCMETH 263
127#define THING 264
128#define PMFUNC 265
129#define PRIVATEREF 266
130#define QWLIST 267
131#define FUNC0SUB 268
132#define UNIOPSUB 269
133#define LSTOPSUB 270
134#define PLUGEXPR 271
135#define PLUGSTMT 272
136#define LABEL 273
137#define FORMAT 274
138#define SUB 275
139#define ANONSUB 276
140#define PACKAGE 277
141#define USE 278
142#define WHILE 279
143#define UNTIL 280
144#define IF 281
145#define UNLESS 282
146#define ELSE 283
147#define ELSIF 284
148#define CONTINUE 285
149#define FOR 286
150#define GIVEN 287
151#define WHEN 288
152#define DEFAULT 289
153#define LOOPEX 290
154#define DOTDOT 291
155#define YADAYADA 292
156#define FUNC0 293
157#define FUNC1 294
158#define FUNC 295
159#define UNIOP 296
160#define LSTOP 297
161#define RELOP 298
162#define EQOP 299
163#define MULOP 300
164#define ADDOP 301
165#define DOLSHARP 302
166#define DO 303
167#define HASHBRACK 304
168#define NOAMP 305
169#define LOCAL 306
170#define MY 307
171#define MYSUB 308
172#define REQUIRE 309
173#define COLONATTR 310
174#define PREC_LOW 311
175#define DOROP 312
176#define OROP 313
177#define ANDOP 314
178#define NOTOP 315
179#define ASSIGNOP 316
180#define DORDOR 317
181#define OROR 318
182#define ANDAND 319
183#define BITOROP 320
184#define BITANDOP 321
185#define SHIFTOP 322
186#define MATCHOP 323
187#define REFGEN 324
188#define UMINUS 325
189#define POWOP 326
190#define POSTDEC 327
191#define POSTINC 328
192#define PREDEC 329
193#define PREINC 330
194#define ARROW 331
195#define PEG 332
0de566d7 196
d8118cad 197
0de566d7 198
4e4da3ac 199
0de566d7 200#endif /* PERL_CORE */
f05e27e5
DM
201#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
202typedef union YYSTYPE
203{
d5c6462e
DM
204 I32 ival; /* __DEFAULT__ (marker for regen_perly.pl;
205 must always be 1st union member) */
79072805
LW
206 char *pval;
207 OP *opval;
208 GV *gvval;
f05e27e5
DM
209#ifdef PERL_IN_MADLY_C
210 TOKEN* p_tkval;
123d08c9 211 TOKEN* i_tkval;
f05e27e5
DM
212#else
213 char *p_tkval;
123d08c9
DM
214 I32 i_tkval;
215#endif
216#ifdef PERL_MAD
217 TOKEN* tkval;
f05e27e5 218#endif
4e4da3ac 219}
f7e3d326 220/* Line 1489 of yacc.c. */
4e4da3ac 221 YYSTYPE;
0de566d7
DM
222# define yystype YYSTYPE /* obsolescent; will be withdrawn */
223# define YYSTYPE_IS_DECLARED 1
4e4da3ac 224# define YYSTYPE_IS_TRIVIAL 1
0de566d7
DM
225#endif
226
227
228