This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In pp_sys.c, rename the macro tied_handle_method() to tied_handle_method0()
[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 43 GRAMPROG = 258,
78cdf107
Z
44 GRAMEXPR = 259,
45 GRAMBLOCK = 260,
46 GRAMBARESTMT = 261,
47 GRAMFULLSTMT = 262,
48 GRAMSTMTSEQ = 263,
49 WORD = 264,
50 METHOD = 265,
51 FUNCMETH = 266,
52 THING = 267,
53 PMFUNC = 268,
54 PRIVATEREF = 269,
55 QWLIST = 270,
56 FUNC0SUB = 271,
57 UNIOPSUB = 272,
58 LSTOPSUB = 273,
59 PLUGEXPR = 274,
60 PLUGSTMT = 275,
61 LABEL = 276,
62 FORMAT = 277,
63 SUB = 278,
64 ANONSUB = 279,
65 PACKAGE = 280,
66 USE = 281,
67 WHILE = 282,
68 UNTIL = 283,
69 IF = 284,
70 UNLESS = 285,
71 ELSE = 286,
72 ELSIF = 287,
73 CONTINUE = 288,
74 FOR = 289,
75 GIVEN = 290,
76 WHEN = 291,
77 DEFAULT = 292,
78 LOOPEX = 293,
79 DOTDOT = 294,
80 YADAYADA = 295,
81 FUNC0 = 296,
82 FUNC1 = 297,
83 FUNC = 298,
84 UNIOP = 299,
85 LSTOP = 300,
86 RELOP = 301,
87 EQOP = 302,
88 MULOP = 303,
89 ADDOP = 304,
90 DOLSHARP = 305,
91 DO = 306,
92 HASHBRACK = 307,
93 NOAMP = 308,
94 LOCAL = 309,
95 MY = 310,
96 MYSUB = 311,
97 REQUIRE = 312,
98 COLONATTR = 313,
99 PREC_LOW = 314,
100 DOROP = 315,
101 OROP = 316,
102 ANDOP = 317,
103 NOTOP = 318,
104 ASSIGNOP = 319,
105 DORDOR = 320,
106 OROR = 321,
107 ANDAND = 322,
108 BITOROP = 323,
109 BITANDOP = 324,
110 SHIFTOP = 325,
111 MATCHOP = 326,
112 REFGEN = 327,
113 UMINUS = 328,
114 POWOP = 329,
115 POSTDEC = 330,
116 POSTINC = 331,
117 PREDEC = 332,
118 PREINC = 333,
119 ARROW = 334,
120 PEG = 335
0de566d7
DM
121 };
122#endif
20515881 123/* Tokens. */
636def1f 124#define GRAMPROG 258
78cdf107
Z
125#define GRAMEXPR 259
126#define GRAMBLOCK 260
127#define GRAMBARESTMT 261
128#define GRAMFULLSTMT 262
129#define GRAMSTMTSEQ 263
130#define WORD 264
131#define METHOD 265
132#define FUNCMETH 266
133#define THING 267
134#define PMFUNC 268
135#define PRIVATEREF 269
136#define QWLIST 270
137#define FUNC0SUB 271
138#define UNIOPSUB 272
139#define LSTOPSUB 273
140#define PLUGEXPR 274
141#define PLUGSTMT 275
142#define LABEL 276
143#define FORMAT 277
144#define SUB 278
145#define ANONSUB 279
146#define PACKAGE 280
147#define USE 281
148#define WHILE 282
149#define UNTIL 283
150#define IF 284
151#define UNLESS 285
152#define ELSE 286
153#define ELSIF 287
154#define CONTINUE 288
155#define FOR 289
156#define GIVEN 290
157#define WHEN 291
158#define DEFAULT 292
159#define LOOPEX 293
160#define DOTDOT 294
161#define YADAYADA 295
162#define FUNC0 296
163#define FUNC1 297
164#define FUNC 298
165#define UNIOP 299
166#define LSTOP 300
167#define RELOP 301
168#define EQOP 302
169#define MULOP 303
170#define ADDOP 304
171#define DOLSHARP 305
172#define DO 306
173#define HASHBRACK 307
174#define NOAMP 308
175#define LOCAL 309
176#define MY 310
177#define MYSUB 311
178#define REQUIRE 312
179#define COLONATTR 313
180#define PREC_LOW 314
181#define DOROP 315
182#define OROP 316
183#define ANDOP 317
184#define NOTOP 318
185#define ASSIGNOP 319
186#define DORDOR 320
187#define OROR 321
188#define ANDAND 322
189#define BITOROP 323
190#define BITANDOP 324
191#define SHIFTOP 325
192#define MATCHOP 326
193#define REFGEN 327
194#define UMINUS 328
195#define POWOP 329
196#define POSTDEC 330
197#define POSTINC 331
198#define PREDEC 332
199#define PREINC 333
200#define ARROW 334
201#define PEG 335
0de566d7 202
d8118cad 203
0de566d7 204
4e4da3ac 205
0de566d7 206#endif /* PERL_CORE */
f05e27e5
DM
207#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
208typedef union YYSTYPE
209{
d5c6462e
DM
210 I32 ival; /* __DEFAULT__ (marker for regen_perly.pl;
211 must always be 1st union member) */
79072805
LW
212 char *pval;
213 OP *opval;
214 GV *gvval;
f05e27e5
DM
215#ifdef PERL_IN_MADLY_C
216 TOKEN* p_tkval;
123d08c9 217 TOKEN* i_tkval;
f05e27e5
DM
218#else
219 char *p_tkval;
123d08c9
DM
220 I32 i_tkval;
221#endif
222#ifdef PERL_MAD
223 TOKEN* tkval;
f05e27e5 224#endif
4e4da3ac 225}
44ef8c7d 226/* Line 1489 of yacc.c. */
4e4da3ac 227 YYSTYPE;
0de566d7
DM
228# define yystype YYSTYPE /* obsolescent; will be withdrawn */
229# define YYSTYPE_IS_DECLARED 1
4e4da3ac 230# define YYSTYPE_IS_TRIVIAL 1
0de566d7
DM
231#endif
232
233
234