1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
|
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* "%code requires" blocks. */
#ifdef ZTS
# define YYPARSE_PARAM tsrm_ls
# define YYLEX_PARAM tsrm_ls
#endif
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
END = 0,
T_REQUIRE_ONCE = 258,
T_REQUIRE = 259,
T_EVAL = 260,
T_INCLUDE_ONCE = 261,
T_INCLUDE = 262,
T_LOGICAL_OR = 263,
T_LOGICAL_XOR = 264,
T_LOGICAL_AND = 265,
T_PRINT = 266,
T_YIELD = 267,
T_POW_EQUAL = 268,
T_SR_EQUAL = 269,
T_SL_EQUAL = 270,
T_XOR_EQUAL = 271,
T_OR_EQUAL = 272,
T_AND_EQUAL = 273,
T_MOD_EQUAL = 274,
T_CONCAT_EQUAL = 275,
T_DIV_EQUAL = 276,
T_MUL_EQUAL = 277,
T_MINUS_EQUAL = 278,
T_PLUS_EQUAL = 279,
T_BOOLEAN_OR = 280,
T_BOOLEAN_AND = 281,
T_IS_NOT_IDENTICAL = 282,
T_IS_IDENTICAL = 283,
T_IS_NOT_EQUAL = 284,
T_IS_EQUAL = 285,
T_IS_GREATER_OR_EQUAL = 286,
T_IS_SMALLER_OR_EQUAL = 287,
T_SR = 288,
T_SL = 289,
T_INSTANCEOF = 290,
T_UNSET_CAST = 291,
T_BOOL_CAST = 292,
T_OBJECT_CAST = 293,
T_ARRAY_CAST = 294,
T_STRING_CAST = 295,
T_DOUBLE_CAST = 296,
T_INT_CAST = 297,
T_DEC = 298,
T_INC = 299,
T_POW = 300,
T_CLONE = 301,
T_NEW = 302,
T_EXIT = 303,
T_IF = 304,
T_ELSEIF = 305,
T_ELSE = 306,
T_ENDIF = 307,
T_LNUMBER = 308,
T_DNUMBER = 309,
T_STRING = 310,
T_STRING_VARNAME = 311,
T_VARIABLE = 312,
T_NUM_STRING = 313,
T_INLINE_HTML = 314,
T_CHARACTER = 315,
T_BAD_CHARACTER = 316,
T_ENCAPSED_AND_WHITESPACE = 317,
T_CONSTANT_ENCAPSED_STRING = 318,
T_ECHO = 319,
T_DO = 320,
T_WHILE = 321,
T_ENDWHILE = 322,
T_FOR = 323,
T_ENDFOR = 324,
T_FOREACH = 325,
T_ENDFOREACH = 326,
T_DECLARE = 327,
T_ENDDECLARE = 328,
T_AS = 329,
T_SWITCH = 330,
T_ENDSWITCH = 331,
T_CASE = 332,
T_DEFAULT = 333,
T_BREAK = 334,
T_CONTINUE = 335,
T_GOTO = 336,
T_FUNCTION = 337,
T_CONST = 338,
T_RETURN = 339,
T_TRY = 340,
T_CATCH = 341,
T_FINALLY = 342,
T_THROW = 343,
T_USE = 344,
T_INSTEADOF = 345,
T_GLOBAL = 346,
T_PUBLIC = 347,
T_PROTECTED = 348,
T_PRIVATE = 349,
T_FINAL = 350,
T_ABSTRACT = 351,
T_STATIC = 352,
T_VAR = 353,
T_UNSET = 354,
T_ISSET = 355,
T_EMPTY = 356,
T_HALT_COMPILER = 357,
T_CLASS = 358,
T_TRAIT = 359,
T_INTERFACE = 360,
T_EXTENDS = 361,
T_IMPLEMENTS = 362,
T_OBJECT_OPERATOR = 363,
T_DOUBLE_ARROW = 364,
T_LIST = 365,
T_ARRAY = 366,
T_CALLABLE = 367,
T_CLASS_C = 368,
T_TRAIT_C = 369,
T_METHOD_C = 370,
T_FUNC_C = 371,
T_LINE = 372,
T_FILE = 373,
T_COMMENT = 374,
T_DOC_COMMENT = 375,
T_OPEN_TAG = 376,
T_OPEN_TAG_WITH_ECHO = 377,
T_CLOSE_TAG = 378,
T_WHITESPACE = 379,
T_START_HEREDOC = 380,
T_END_HEREDOC = 381,
T_DOLLAR_OPEN_CURLY_BRACES = 382,
T_CURLY_OPEN = 383,
T_PAAMAYIM_NEKUDOTAYIM = 384,
T_NAMESPACE = 385,
T_NS_C = 386,
T_DIR = 387,
T_NS_SEPARATOR = 388,
T_ELLIPSIS = 389
};
#endif
/* Tokens. */
#define END 0
#define T_REQUIRE_ONCE 258
#define T_REQUIRE 259
#define T_EVAL 260
#define T_INCLUDE_ONCE 261
#define T_INCLUDE 262
#define T_LOGICAL_OR 263
#define T_LOGICAL_XOR 264
#define T_LOGICAL_AND 265
#define T_PRINT 266
#define T_YIELD 267
#define T_POW_EQUAL 268
#define T_SR_EQUAL 269
#define T_SL_EQUAL 270
#define T_XOR_EQUAL 271
#define T_OR_EQUAL 272
#define T_AND_EQUAL 273
#define T_MOD_EQUAL 274
#define T_CONCAT_EQUAL 275
#define T_DIV_EQUAL 276
#define T_MUL_EQUAL 277
#define T_MINUS_EQUAL 278
#define T_PLUS_EQUAL 279
#define T_BOOLEAN_OR 280
#define T_BOOLEAN_AND 281
#define T_IS_NOT_IDENTICAL 282
#define T_IS_IDENTICAL 283
#define T_IS_NOT_EQUAL 284
#define T_IS_EQUAL 285
#define T_IS_GREATER_OR_EQUAL 286
#define T_IS_SMALLER_OR_EQUAL 287
#define T_SR 288
#define T_SL 289
#define T_INSTANCEOF 290
#define T_UNSET_CAST 291
#define T_BOOL_CAST 292
#define T_OBJECT_CAST 293
#define T_ARRAY_CAST 294
#define T_STRING_CAST 295
#define T_DOUBLE_CAST 296
#define T_INT_CAST 297
#define T_DEC 298
#define T_INC 299
#define T_POW 300
#define T_CLONE 301
#define T_NEW 302
#define T_EXIT 303
#define T_IF 304
#define T_ELSEIF 305
#define T_ELSE 306
#define T_ENDIF 307
#define T_LNUMBER 308
#define T_DNUMBER 309
#define T_STRING 310
#define T_STRING_VARNAME 311
#define T_VARIABLE 312
#define T_NUM_STRING 313
#define T_INLINE_HTML 314
#define T_CHARACTER 315
#define T_BAD_CHARACTER 316
#define T_ENCAPSED_AND_WHITESPACE 317
#define T_CONSTANT_ENCAPSED_STRING 318
#define T_ECHO 319
#define T_DO 320
#define T_WHILE 321
#define T_ENDWHILE 322
#define T_FOR 323
#define T_ENDFOR 324
#define T_FOREACH 325
#define T_ENDFOREACH 326
#define T_DECLARE 327
#define T_ENDDECLARE 328
#define T_AS 329
#define T_SWITCH 330
#define T_ENDSWITCH 331
#define T_CASE 332
#define T_DEFAULT 333
#define T_BREAK 334
#define T_CONTINUE 335
#define T_GOTO 336
#define T_FUNCTION 337
#define T_CONST 338
#define T_RETURN 339
#define T_TRY 340
#define T_CATCH 341
#define T_FINALLY 342
#define T_THROW 343
#define T_USE 344
#define T_INSTEADOF 345
#define T_GLOBAL 346
#define T_PUBLIC 347
#define T_PROTECTED 348
#define T_PRIVATE 349
#define T_FINAL 350
#define T_ABSTRACT 351
#define T_STATIC 352
#define T_VAR 353
#define T_UNSET 354
#define T_ISSET 355
#define T_EMPTY 356
#define T_HALT_COMPILER 357
#define T_CLASS 358
#define T_TRAIT 359
#define T_INTERFACE 360
#define T_EXTENDS 361
#define T_IMPLEMENTS 362
#define T_OBJECT_OPERATOR 363
#define T_DOUBLE_ARROW 364
#define T_LIST 365
#define T_ARRAY 366
#define T_CALLABLE 367
#define T_CLASS_C 368
#define T_TRAIT_C 369
#define T_METHOD_C 370
#define T_FUNC_C 371
#define T_LINE 372
#define T_FILE 373
#define T_COMMENT 374
#define T_DOC_COMMENT 375
#define T_OPEN_TAG 376
#define T_OPEN_TAG_WITH_ECHO 377
#define T_CLOSE_TAG 378
#define T_WHITESPACE 379
#define T_START_HEREDOC 380
#define T_END_HEREDOC 381
#define T_DOLLAR_OPEN_CURLY_BRACES 382
#define T_CURLY_OPEN 383
#define T_PAAMAYIM_NEKUDOTAYIM 384
#define T_NAMESPACE 385
#define T_NS_C 386
#define T_DIR 387
#define T_NS_SEPARATOR 388
#define T_ELLIPSIS 389
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
|