Commit | Line | Data |
---|---|---|
d8118cad | 1 | #ifdef PERL_CORE |
20515881 | 2 | /* A Bison parser, made by GNU Bison 2.1. */ |
0de566d7 DM |
3 | |
4 | /* Skeleton parser for Yacc-like parsing with Bison, | |
20515881 | 5 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
0de566d7 DM |
6 | |
7 | This program is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2, or (at your option) | |
10 | any later version. | |
11 | ||
12 | This program is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with this program; if not, write to the Free Software | |
20515881 RGS |
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 | Boston, MA 02110-1301, USA. */ | |
0de566d7 DM |
21 | |
22 | /* As a special exception, when this file is copied by Bison into a | |
23 | Bison output file, you may use that output file without restriction. | |
24 | This special exception was added by the Free Software Foundation | |
25 | in version 1.24 of Bison. */ | |
26 | ||
27 | /* Tokens. */ | |
28 | #ifndef YYTOKENTYPE | |
29 | # define YYTOKENTYPE | |
30 | /* Put the tokens into the symbol table, so that GDB and other debuggers | |
31 | know about them. */ | |
32 | enum yytokentype { | |
33 | WORD = 258, | |
34 | METHOD = 259, | |
35 | FUNCMETH = 260, | |
36 | THING = 261, | |
37 | PMFUNC = 262, | |
38 | PRIVATEREF = 263, | |
39 | FUNC0SUB = 264, | |
40 | UNIOPSUB = 265, | |
41 | LSTOPSUB = 266, | |
42 | LABEL = 267, | |
43 | FORMAT = 268, | |
44 | SUB = 269, | |
45 | ANONSUB = 270, | |
46 | PACKAGE = 271, | |
47 | USE = 272, | |
48 | WHILE = 273, | |
49 | UNTIL = 274, | |
50 | IF = 275, | |
51 | UNLESS = 276, | |
52 | ELSE = 277, | |
53 | ELSIF = 278, | |
54 | CONTINUE = 279, | |
55 | FOR = 280, | |
0d863452 RH |
56 | GIVEN = 281, |
57 | WHEN = 282, | |
58 | DEFAULT = 283, | |
59 | LOOPEX = 284, | |
60 | DOTDOT = 285, | |
61 | FUNC0 = 286, | |
62 | FUNC1 = 287, | |
63 | FUNC = 288, | |
64 | UNIOP = 289, | |
65 | LSTOP = 290, | |
66 | RELOP = 291, | |
67 | EQOP = 292, | |
68 | MULOP = 293, | |
69 | ADDOP = 294, | |
70 | DOLSHARP = 295, | |
71 | DO = 296, | |
72 | HASHBRACK = 297, | |
73 | NOAMP = 298, | |
74 | LOCAL = 299, | |
75 | MY = 300, | |
76 | MYSUB = 301, | |
77 | REQUIRE = 302, | |
78 | COLONATTR = 303, | |
79 | PREC_LOW = 304, | |
80 | DOROP = 305, | |
81 | OROP = 306, | |
82 | ANDOP = 307, | |
83 | NOTOP = 308, | |
84 | ASSIGNOP = 309, | |
85 | DORDOR = 310, | |
86 | OROR = 311, | |
87 | ANDAND = 312, | |
88 | BITOROP = 313, | |
89 | BITANDOP = 314, | |
90 | SHIFTOP = 315, | |
91 | MATCHOP = 316, | |
92 | REFGEN = 317, | |
93 | UMINUS = 318, | |
94 | POWOP = 319, | |
95 | POSTDEC = 320, | |
96 | POSTINC = 321, | |
97 | PREDEC = 322, | |
98 | PREINC = 323, | |
99 | ARROW = 324 | |
0de566d7 DM |
100 | }; |
101 | #endif | |
20515881 | 102 | /* Tokens. */ |
0de566d7 DM |
103 | #define WORD 258 |
104 | #define METHOD 259 | |
105 | #define FUNCMETH 260 | |
106 | #define THING 261 | |
107 | #define PMFUNC 262 | |
108 | #define PRIVATEREF 263 | |
109 | #define FUNC0SUB 264 | |
110 | #define UNIOPSUB 265 | |
111 | #define LSTOPSUB 266 | |
112 | #define LABEL 267 | |
113 | #define FORMAT 268 | |
114 | #define SUB 269 | |
115 | #define ANONSUB 270 | |
116 | #define PACKAGE 271 | |
117 | #define USE 272 | |
118 | #define WHILE 273 | |
119 | #define UNTIL 274 | |
120 | #define IF 275 | |
121 | #define UNLESS 276 | |
122 | #define ELSE 277 | |
123 | #define ELSIF 278 | |
124 | #define CONTINUE 279 | |
125 | #define FOR 280 | |
0d863452 RH |
126 | #define GIVEN 281 |
127 | #define WHEN 282 | |
128 | #define DEFAULT 283 | |
129 | #define LOOPEX 284 | |
130 | #define DOTDOT 285 | |
131 | #define FUNC0 286 | |
132 | #define FUNC1 287 | |
133 | #define FUNC 288 | |
134 | #define UNIOP 289 | |
135 | #define LSTOP 290 | |
136 | #define RELOP 291 | |
137 | #define EQOP 292 | |
138 | #define MULOP 293 | |
139 | #define ADDOP 294 | |
140 | #define DOLSHARP 295 | |
141 | #define DO 296 | |
142 | #define HASHBRACK 297 | |
143 | #define NOAMP 298 | |
144 | #define LOCAL 299 | |
145 | #define MY 300 | |
146 | #define MYSUB 301 | |
147 | #define REQUIRE 302 | |
148 | #define COLONATTR 303 | |
149 | #define PREC_LOW 304 | |
150 | #define DOROP 305 | |
151 | #define OROP 306 | |
152 | #define ANDOP 307 | |
153 | #define NOTOP 308 | |
154 | #define ASSIGNOP 309 | |
155 | #define DORDOR 310 | |
156 | #define OROR 311 | |
157 | #define ANDAND 312 | |
158 | #define BITOROP 313 | |
159 | #define BITANDOP 314 | |
160 | #define SHIFTOP 315 | |
161 | #define MATCHOP 316 | |
162 | #define REFGEN 317 | |
163 | #define UMINUS 318 | |
164 | #define POWOP 319 | |
165 | #define POSTDEC 320 | |
166 | #define POSTINC 321 | |
167 | #define PREDEC 322 | |
168 | #define PREINC 323 | |
169 | #define ARROW 324 | |
0de566d7 | 170 | |
d8118cad | 171 | |
0de566d7 DM |
172 | |
173 | ||
174 | #endif /* PERL_CORE */ | |
175 | #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) | |
166f8a29 | 176 | #line 30 "perly.y" |
0de566d7 | 177 | typedef union YYSTYPE { |
79072805 LW |
178 | I32 ival; |
179 | char *pval; | |
180 | OP *opval; | |
181 | GV *gvval; | |
182 | } YYSTYPE; | |
20515881 | 183 | /* Line 1447 of yacc.c. */ |
0d863452 | 184 | #line 183 "perly.h" |
0de566d7 DM |
185 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
186 | # define YYSTYPE_IS_DECLARED 1 | |
187 | # define YYSTYPE_IS_TRIVIAL 1 | |
188 | #endif | |
189 | ||
190 | ||
191 | ||
192 | ||
193 |