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