json_parser.tab.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /* A Bison parser, made by GNU Bison 3.0.4. */
  2. /* Bison interface for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. /* As a special exception, you may create a larger work that contains
  15. part or all of the Bison parser skeleton and distribute that work
  16. under terms of your choice, so long as that work isn't itself a
  17. parser generator using the skeleton or a modified version thereof
  18. as a parser skeleton. Alternatively, if you modify or redistribute
  19. the parser skeleton itself, you may (at your option) remove this
  20. special exception, which will cause the skeleton and the resulting
  21. Bison output files to be licensed under the GNU General Public
  22. License without this special exception.
  23. This special exception was added by the Free Software Foundation in
  24. version 2.2 of Bison. */
  25. #ifndef YY_PHP_JSON_YY_HOME_DMITRY_PHP_PHP_MASTER_EXT_JSON_JSON_PARSER_TAB_H_INCLUDED
  26. # define YY_PHP_JSON_YY_HOME_DMITRY_PHP_PHP_MASTER_EXT_JSON_JSON_PARSER_TAB_H_INCLUDED
  27. /* Debug traces. */
  28. #ifndef YYDEBUG
  29. # define YYDEBUG 0
  30. #endif
  31. #if YYDEBUG
  32. extern int php_json_yydebug;
  33. #endif
  34. /* Token type. */
  35. #ifndef YYTOKENTYPE
  36. # define YYTOKENTYPE
  37. enum yytokentype
  38. {
  39. PHP_JSON_T_NUL = 258,
  40. PHP_JSON_T_TRUE = 259,
  41. PHP_JSON_T_FALSE = 260,
  42. PHP_JSON_T_INT = 261,
  43. PHP_JSON_T_DOUBLE = 262,
  44. PHP_JSON_T_STRING = 263,
  45. PHP_JSON_T_ESTRING = 264,
  46. PHP_JSON_T_EOI = 265,
  47. PHP_JSON_T_ERROR = 266
  48. };
  49. #endif
  50. /* Tokens. */
  51. #define PHP_JSON_T_NUL 258
  52. #define PHP_JSON_T_TRUE 259
  53. #define PHP_JSON_T_FALSE 260
  54. #define PHP_JSON_T_INT 261
  55. #define PHP_JSON_T_DOUBLE 262
  56. #define PHP_JSON_T_STRING 263
  57. #define PHP_JSON_T_ESTRING 264
  58. #define PHP_JSON_T_EOI 265
  59. #define PHP_JSON_T_ERROR 266
  60. /* Value type. */
  61. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  62. union YYSTYPE
  63. {
  64. zval value;
  65. struct {
  66. zend_string *key;
  67. zval val;
  68. } pair;
  69. };
  70. typedef union YYSTYPE YYSTYPE;
  71. # define YYSTYPE_IS_TRIVIAL 1
  72. # define YYSTYPE_IS_DECLARED 1
  73. #endif
  74. int php_json_yyparse (php_json_parser *parser);
  75. #endif /* !YY_PHP_JSON_YY_HOME_DMITRY_PHP_PHP_MASTER_EXT_JSON_JSON_PARSER_TAB_H_INCLUDED */