Commit | Line | Data |
---|---|---|
d8118cad | 1 | #ifdef PERL_CORE |
f05e27e5 | 2 | /* A Bison parser, made by GNU Bison 2.3. */ |
0de566d7 | 3 | |
f05e27e5 DM |
4 | /* Skeleton interface for Bison's Yacc-like parsers in C |
5 | ||
6 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 | |
7 | Free Software Foundation, Inc. | |
0de566d7 DM |
8 | |
9 | This program is free software; you can redistribute it and/or modify | |
10 | it under the terms of the GNU General Public License as published by | |
11 | the Free Software Foundation; either version 2, or (at your option) | |
12 | any later version. | |
13 | ||
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. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
20 | along with this program; if not, write to the Free Software | |
20515881 RGS |
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. | |
33 | ||
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 { | |
43 | WORD = 258, | |
44 | METHOD = 259, | |
45 | FUNCMETH = 260, | |
46 | THING = 261, | |
47 | PMFUNC = 262, | |
48 | PRIVATEREF = 263, | |
49 | FUNC0SUB = 264, | |
50 | UNIOPSUB = 265, | |
51 | LSTOPSUB = 266, | |
52 | LABEL = 267, | |
53 | FORMAT = 268, | |
54 | SUB = 269, | |
55 | ANONSUB = 270, | |
56 | PACKAGE = 271, | |
57 | USE = 272, | |
58 | WHILE = 273, | |
59 | UNTIL = 274, | |
60 | IF = 275, | |
61 | UNLESS = 276, | |
62 | ELSE = 277, | |
63 | ELSIF = 278, | |
64 | CONTINUE = 279, | |
65 | FOR = 280, | |
0d863452 RH |
66 | GIVEN = 281, |
67 | WHEN = 282, | |
68 | DEFAULT = 283, | |
69 | LOOPEX = 284, | |
70 | DOTDOT = 285, | |
be25f609 | 71 | YADAYADA = 286, |
72 | FUNC0 = 287, | |
73 | FUNC1 = 288, | |
74 | FUNC = 289, | |
75 | UNIOP = 290, | |
76 | LSTOP = 291, | |
77 | RELOP = 292, | |
78 | EQOP = 293, | |
79 | MULOP = 294, | |
80 | ADDOP = 295, | |
81 | DOLSHARP = 296, | |
82 | DO = 297, | |
83 | HASHBRACK = 298, | |
84 | NOAMP = 299, | |
85 | LOCAL = 300, | |
86 | MY = 301, | |
87 | MYSUB = 302, | |
88 | REQUIRE = 303, | |
89 | COLONATTR = 304, | |
90 | PREC_LOW = 305, | |
91 | DOROP = 306, | |
92 | OROP = 307, | |
93 | ANDOP = 308, | |
94 | NOTOP = 309, | |
95 | ASSIGNOP = 310, | |
96 | DORDOR = 311, | |
97 | OROR = 312, | |
98 | ANDAND = 313, | |
99 | BITOROP = 314, | |
100 | BITANDOP = 315, | |
101 | SHIFTOP = 316, | |
102 | MATCHOP = 317, | |
103 | REFGEN = 318, | |
104 | UMINUS = 319, | |
105 | POWOP = 320, | |
106 | POSTDEC = 321, | |
107 | POSTINC = 322, | |
108 | PREDEC = 323, | |
109 | PREINC = 324, | |
110 | ARROW = 325, | |
111 | PEG = 326 | |
0de566d7 DM |
112 | }; |
113 | #endif | |
20515881 | 114 | /* Tokens. */ |
0de566d7 DM |
115 | #define WORD 258 |
116 | #define METHOD 259 | |
117 | #define FUNCMETH 260 | |
118 | #define THING 261 | |
119 | #define PMFUNC 262 | |
120 | #define PRIVATEREF 263 | |
121 | #define FUNC0SUB 264 | |
122 | #define UNIOPSUB 265 | |
123 | #define LSTOPSUB 266 | |
124 | #define LABEL 267 | |
125 | #define FORMAT 268 | |
126 | #define SUB 269 | |
127 | #define ANONSUB 270 | |
128 | #define PACKAGE 271 | |
129 | #define USE 272 | |
130 | #define WHILE 273 | |
131 | #define UNTIL 274 | |
132 | #define IF 275 | |
133 | #define UNLESS 276 | |
134 | #define ELSE 277 | |
135 | #define ELSIF 278 | |
136 | #define CONTINUE 279 | |
137 | #define FOR 280 | |
0d863452 RH |
138 | #define GIVEN 281 |
139 | #define WHEN 282 | |
140 | #define DEFAULT 283 | |
141 | #define LOOPEX 284 | |
142 | #define DOTDOT 285 | |
be25f609 | 143 | #define YADAYADA 286 |
144 | #define FUNC0 287 | |
145 | #define FUNC1 288 | |
146 | #define FUNC 289 | |
147 | #define UNIOP 290 | |
148 | #define LSTOP 291 | |
149 | #define RELOP 292 | |
150 | #define EQOP 293 | |
151 | #define MULOP 294 | |
152 | #define ADDOP 295 | |
153 | #define DOLSHARP 296 | |
154 | #define DO 297 | |
155 | #define HASHBRACK 298 | |
156 | #define NOAMP 299 | |
157 | #define LOCAL 300 | |
158 | #define MY 301 | |
159 | #define MYSUB 302 | |
160 | #define REQUIRE 303 | |
161 | #define COLONATTR 304 | |
162 | #define PREC_LOW 305 | |
163 | #define DOROP 306 | |
164 | #define OROP 307 | |
165 | #define ANDOP 308 | |
166 | #define NOTOP 309 | |
167 | #define ASSIGNOP 310 | |
168 | #define DORDOR 311 | |
169 | #define OROR 312 | |
170 | #define ANDAND 313 | |
171 | #define BITOROP 314 | |
172 | #define BITANDOP 315 | |
173 | #define SHIFTOP 316 | |
174 | #define MATCHOP 317 | |
175 | #define REFGEN 318 | |
176 | #define UMINUS 319 | |
177 | #define POWOP 320 | |
178 | #define POSTDEC 321 | |
179 | #define POSTINC 322 | |
180 | #define PREDEC 323 | |
181 | #define PREINC 324 | |
182 | #define ARROW 325 | |
183 | #define PEG 326 | |
0de566d7 | 184 | |
d8118cad | 185 | |
0de566d7 DM |
186 | |
187 | ||
188 | #endif /* PERL_CORE */ | |
f05e27e5 DM |
189 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
190 | typedef union YYSTYPE | |
191 | { | |
d5c6462e DM |
192 | I32 ival; /* __DEFAULT__ (marker for regen_perly.pl; |
193 | must always be 1st union member) */ | |
79072805 LW |
194 | char *pval; |
195 | OP *opval; | |
196 | GV *gvval; | |
f05e27e5 DM |
197 | #ifdef PERL_IN_MADLY_C |
198 | TOKEN* p_tkval; | |
123d08c9 | 199 | TOKEN* i_tkval; |
f05e27e5 DM |
200 | #else |
201 | char *p_tkval; | |
123d08c9 DM |
202 | I32 i_tkval; |
203 | #endif | |
204 | #ifdef PERL_MAD | |
205 | TOKEN* tkval; | |
f05e27e5 DM |
206 | #endif |
207 | } | |
5a5094bd | 208 | /* Line 1489 of yacc.c. */ |
f05e27e5 | 209 | YYSTYPE; |
0de566d7 DM |
210 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
211 | # define YYSTYPE_IS_DECLARED 1 | |
212 | # define YYSTYPE_IS_TRIVIAL 1 | |
213 | #endif | |
214 | ||
215 | ||
216 |