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