204 lines
5.0 KiB
C
204 lines
5.0 KiB
C
/* A Bison parser, made by GNU Bison 3.0.2. */
|
|
|
|
/* Bison interface for Yacc-like parsers in C
|
|
|
|
Copyright (C) 1984, 1989-1990, 2000-2013 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. */
|
|
|
|
#ifndef YY_ZEND_ZEND_ZEND_LANGUAGE_PARSER_H_INCLUDED
|
|
# define YY_ZEND_ZEND_ZEND_LANGUAGE_PARSER_H_INCLUDED
|
|
/* Debug traces. */
|
|
#ifndef YYDEBUG
|
|
# define YYDEBUG 0
|
|
#endif
|
|
#if YYDEBUG
|
|
extern int zenddebug;
|
|
#endif
|
|
/* "%code requires" blocks. */
|
|
|
|
|
|
|
|
|
|
|
|
/* Token type. */
|
|
#include "zend.h"
|
|
#ifndef YYTOKENTYPE
|
|
# define YYTOKENTYPE
|
|
enum yytokentype
|
|
{
|
|
END = 0,
|
|
PREC_ARROW_FUNCTION = 258,
|
|
T_INCLUDE = 259,
|
|
T_INCLUDE_ONCE = 260,
|
|
T_REQUIRE = 261,
|
|
T_REQUIRE_ONCE = 262,
|
|
T_LOGICAL_OR = 263,
|
|
T_LOGICAL_XOR = 264,
|
|
T_LOGICAL_AND = 265,
|
|
T_PRINT = 266,
|
|
T_YIELD = 267,
|
|
T_DOUBLE_ARROW = 268,
|
|
T_YIELD_FROM = 269,
|
|
T_PLUS_EQUAL = 270,
|
|
T_MINUS_EQUAL = 271,
|
|
T_MUL_EQUAL = 272,
|
|
T_DIV_EQUAL = 273,
|
|
T_CONCAT_EQUAL = 274,
|
|
T_MOD_EQUAL = 275,
|
|
T_AND_EQUAL = 276,
|
|
T_OR_EQUAL = 277,
|
|
T_XOR_EQUAL = 278,
|
|
T_SL_EQUAL = 279,
|
|
T_SR_EQUAL = 280,
|
|
T_POW_EQUAL = 281,
|
|
T_COALESCE_EQUAL = 282,
|
|
T_COALESCE = 283,
|
|
T_BOOLEAN_OR = 284,
|
|
T_BOOLEAN_AND = 285,
|
|
T_IS_EQUAL = 286,
|
|
T_IS_NOT_EQUAL = 287,
|
|
T_IS_IDENTICAL = 288,
|
|
T_IS_NOT_IDENTICAL = 289,
|
|
T_SPACESHIP = 290,
|
|
T_IS_SMALLER_OR_EQUAL = 291,
|
|
T_IS_GREATER_OR_EQUAL = 292,
|
|
T_SL = 293,
|
|
T_SR = 294,
|
|
T_INSTANCEOF = 295,
|
|
T_INT_CAST = 296,
|
|
T_DOUBLE_CAST = 297,
|
|
T_STRING_CAST = 298,
|
|
T_ARRAY_CAST = 299,
|
|
T_OBJECT_CAST = 300,
|
|
T_BOOL_CAST = 301,
|
|
T_UNSET_CAST = 302,
|
|
T_POW = 303,
|
|
T_NEW = 304,
|
|
T_CLONE = 305,
|
|
T_NOELSE = 306,
|
|
T_ELSEIF = 307,
|
|
T_ELSE = 308,
|
|
T_LNUMBER = 309,
|
|
T_DNUMBER = 310,
|
|
T_STRING = 311,
|
|
T_VARIABLE = 312,
|
|
T_INLINE_HTML = 313,
|
|
T_ENCAPSED_AND_WHITESPACE = 314,
|
|
T_CONSTANT_ENCAPSED_STRING = 315,
|
|
T_STRING_VARNAME = 316,
|
|
T_NUM_STRING = 317,
|
|
T_EVAL = 318,
|
|
T_INC = 319,
|
|
T_DEC = 320,
|
|
T_EXIT = 321,
|
|
T_IF = 322,
|
|
T_ENDIF = 323,
|
|
T_ECHO = 324,
|
|
T_DO = 325,
|
|
T_WHILE = 326,
|
|
T_ENDWHILE = 327,
|
|
T_FOR = 328,
|
|
T_ENDFOR = 329,
|
|
T_FOREACH = 330,
|
|
T_ENDFOREACH = 331,
|
|
T_DECLARE = 332,
|
|
T_ENDDECLARE = 333,
|
|
T_AS = 334,
|
|
T_SWITCH = 335,
|
|
T_ENDSWITCH = 336,
|
|
T_CASE = 337,
|
|
T_DEFAULT = 338,
|
|
T_BREAK = 339,
|
|
T_CONTINUE = 340,
|
|
T_GOTO = 341,
|
|
T_FUNCTION = 342,
|
|
T_FN = 343,
|
|
T_CONST = 344,
|
|
T_RETURN = 345,
|
|
T_TRY = 346,
|
|
T_CATCH = 347,
|
|
T_FINALLY = 348,
|
|
T_THROW = 349,
|
|
T_USE = 350,
|
|
T_INSTEADOF = 351,
|
|
T_GLOBAL = 352,
|
|
T_STATIC = 353,
|
|
T_ABSTRACT = 354,
|
|
T_FINAL = 355,
|
|
T_PRIVATE = 356,
|
|
T_PROTECTED = 357,
|
|
T_PUBLIC = 358,
|
|
T_VAR = 359,
|
|
T_UNSET = 360,
|
|
T_ISSET = 361,
|
|
T_EMPTY = 362,
|
|
T_HALT_COMPILER = 363,
|
|
T_CLASS = 364,
|
|
T_TRAIT = 365,
|
|
T_INTERFACE = 366,
|
|
T_EXTENDS = 367,
|
|
T_IMPLEMENTS = 368,
|
|
T_OBJECT_OPERATOR = 369,
|
|
T_LIST = 370,
|
|
T_ARRAY = 371,
|
|
T_CALLABLE = 372,
|
|
T_LINE = 373,
|
|
T_FILE = 374,
|
|
T_DIR = 375,
|
|
T_CLASS_C = 376,
|
|
T_TRAIT_C = 377,
|
|
T_METHOD_C = 378,
|
|
T_FUNC_C = 379,
|
|
T_COMMENT = 380,
|
|
T_DOC_COMMENT = 381,
|
|
T_OPEN_TAG = 382,
|
|
T_OPEN_TAG_WITH_ECHO = 383,
|
|
T_CLOSE_TAG = 384,
|
|
T_WHITESPACE = 385,
|
|
T_START_HEREDOC = 386,
|
|
T_END_HEREDOC = 387,
|
|
T_DOLLAR_OPEN_CURLY_BRACES = 388,
|
|
T_CURLY_OPEN = 389,
|
|
T_PAAMAYIM_NEKUDOTAYIM = 390,
|
|
T_NAMESPACE = 391,
|
|
T_NS_C = 392,
|
|
T_NS_SEPARATOR = 393,
|
|
T_ELLIPSIS = 394,
|
|
T_BAD_CHARACTER = 395,
|
|
T_ERROR = 396
|
|
};
|
|
#endif
|
|
|
|
/* Value type. */
|
|
|
|
|
|
|
|
ZEND_API int zendparse (void);
|
|
|
|
#endif /* !YY_ZEND_ZEND_ZEND_LANGUAGE_PARSER_H_INCLUDED */
|