You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1885 lines
54 KiB

  1. /* A Bison parser, made by GNU Bison 2.7. */
  2. /* Bison implementation for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2012 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. /* C LALR(1) parser skeleton written by Richard Stallman, by
  26. simplifying the original so-called "semantic" parser. */
  27. /* All symbols defined below should begin with yy or YY, to avoid
  28. infringing on user name space. This should be done even for local
  29. variables, as they might otherwise be expanded by user macros.
  30. There are some unavoidable exceptions within include files to
  31. define necessary library symbols; they are noted "INFRINGES ON
  32. USER NAME SPACE" below. */
  33. /* Identify Bison output. */
  34. #define YYBISON 1
  35. /* Bison version. */
  36. #define YYBISON_VERSION "2.7"
  37. /* Skeleton name. */
  38. #define YYSKELETON_NAME "yacc.c"
  39. /* Pure parsers. */
  40. #define YYPURE 1
  41. /* Push parsers. */
  42. #define YYPUSH 0
  43. /* Pull parsers. */
  44. #define YYPULL 1
  45. /* Copy the first part of user declarations. */
  46. /* Line 371 of yacc.c */
  47. #line 2 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  48. /*
  49. * phpdbg_parser.y
  50. * (from php-src root)
  51. * flex sapi/phpdbg/dev/phpdbg_lexer.l
  52. * bison sapi/phpdbg/dev/phpdbg_parser.y
  53. */
  54. #include "phpdbg.h"
  55. #include "phpdbg_cmd.h"
  56. #include "phpdbg_utils.h"
  57. #include "phpdbg_cmd.h"
  58. #include "phpdbg_prompt.h"
  59. #define YYSTYPE phpdbg_param_t
  60. #include "phpdbg_parser.h"
  61. #include "phpdbg_lexer.h"
  62. ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
  63. int yyerror(phpdbg_param_t *stack, yyscan_t scanner, const char *msg) {
  64. TSRMLS_FETCH();
  65. phpdbg_error("Parse Error: %s", msg);
  66. {
  67. const phpdbg_param_t *top = stack;
  68. while (top) {
  69. phpdbg_param_debug(
  70. top, "--> ");
  71. top = top->next;
  72. }
  73. }
  74. return 0;
  75. }
  76. /* Line 371 of yacc.c */
  77. #line 106 "sapi/phpdbg/phpdbg_parser.c"
  78. # ifndef YY_NULL
  79. # if defined __cplusplus && 201103L <= __cplusplus
  80. # define YY_NULL nullptr
  81. # else
  82. # define YY_NULL 0
  83. # endif
  84. # endif
  85. /* Enabling verbose error messages. */
  86. #ifdef YYERROR_VERBOSE
  87. # undef YYERROR_VERBOSE
  88. # define YYERROR_VERBOSE 1
  89. #else
  90. # define YYERROR_VERBOSE 1
  91. #endif
  92. /* In a future release of Bison, this section will be replaced
  93. by #include "phpdbg_parser.h". */
  94. #ifndef YY_YY_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED
  95. # define YY_YY_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED
  96. /* Enabling traces. */
  97. #ifndef YYDEBUG
  98. # define YYDEBUG 0
  99. #endif
  100. #if YYDEBUG
  101. extern int yydebug;
  102. #endif
  103. /* "%code requires" blocks. */
  104. /* Line 387 of yacc.c */
  105. #line 40 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  106. #include "phpdbg.h"
  107. #ifndef YY_TYPEDEF_YY_SCANNER_T
  108. #define YY_TYPEDEF_YY_SCANNER_T
  109. typedef void* yyscan_t;
  110. #endif
  111. /* Line 387 of yacc.c */
  112. #line 147 "sapi/phpdbg/phpdbg_parser.c"
  113. /* Tokens. */
  114. #ifndef YYTOKENTYPE
  115. # define YYTOKENTYPE
  116. /* Put the tokens into the symbol table, so that GDB and other debuggers
  117. know about them. */
  118. enum yytokentype {
  119. T_EVAL = 258,
  120. T_RUN = 259,
  121. T_SHELL = 260,
  122. T_IF = 261,
  123. T_TRUTHY = 262,
  124. T_FALSY = 263,
  125. T_STRING = 264,
  126. T_COLON = 265,
  127. T_DCOLON = 266,
  128. T_POUND = 267,
  129. T_PROTO = 268,
  130. T_DIGITS = 269,
  131. T_LITERAL = 270,
  132. T_ADDR = 271,
  133. T_OPCODE = 272,
  134. T_ID = 273,
  135. T_INPUT = 274,
  136. T_UNEXPECTED = 275
  137. };
  138. #endif
  139. /* Tokens. */
  140. #define T_EVAL 258
  141. #define T_RUN 259
  142. #define T_SHELL 260
  143. #define T_IF 261
  144. #define T_TRUTHY 262
  145. #define T_FALSY 263
  146. #define T_STRING 264
  147. #define T_COLON 265
  148. #define T_DCOLON 266
  149. #define T_POUND 267
  150. #define T_PROTO 268
  151. #define T_DIGITS 269
  152. #define T_LITERAL 270
  153. #define T_ADDR 271
  154. #define T_OPCODE 272
  155. #define T_ID 273
  156. #define T_INPUT 274
  157. #define T_UNEXPECTED 275
  158. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  159. typedef int YYSTYPE;
  160. # define YYSTYPE_IS_TRIVIAL 1
  161. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  162. # define YYSTYPE_IS_DECLARED 1
  163. #endif
  164. #ifdef YYPARSE_PARAM
  165. #if defined __STDC__ || defined __cplusplus
  166. int yyparse (void *YYPARSE_PARAM);
  167. #else
  168. int yyparse ();
  169. #endif
  170. #else /* ! YYPARSE_PARAM */
  171. #if defined __STDC__ || defined __cplusplus
  172. int yyparse (phpdbg_param_t *stack, yyscan_t scanner);
  173. #else
  174. int yyparse ();
  175. #endif
  176. #endif /* ! YYPARSE_PARAM */
  177. #endif /* !YY_YY_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED */
  178. /* Copy the second part of user declarations. */
  179. /* Line 390 of yacc.c */
  180. #line 224 "sapi/phpdbg/phpdbg_parser.c"
  181. #ifdef short
  182. # undef short
  183. #endif
  184. #ifdef YYTYPE_UINT8
  185. typedef YYTYPE_UINT8 yytype_uint8;
  186. #else
  187. typedef unsigned char yytype_uint8;
  188. #endif
  189. #ifdef YYTYPE_INT8
  190. typedef YYTYPE_INT8 yytype_int8;
  191. #elif (defined __STDC__ || defined __C99__FUNC__ \
  192. || defined __cplusplus || defined _MSC_VER)
  193. typedef signed char yytype_int8;
  194. #else
  195. typedef short int yytype_int8;
  196. #endif
  197. #ifdef YYTYPE_UINT16
  198. typedef YYTYPE_UINT16 yytype_uint16;
  199. #else
  200. typedef unsigned short int yytype_uint16;
  201. #endif
  202. #ifdef YYTYPE_INT16
  203. typedef YYTYPE_INT16 yytype_int16;
  204. #else
  205. typedef short int yytype_int16;
  206. #endif
  207. #ifndef YYSIZE_T
  208. # ifdef __SIZE_TYPE__
  209. # define YYSIZE_T __SIZE_TYPE__
  210. # elif defined size_t
  211. # define YYSIZE_T size_t
  212. # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
  213. || defined __cplusplus || defined _MSC_VER)
  214. # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  215. # define YYSIZE_T size_t
  216. # else
  217. # define YYSIZE_T unsigned int
  218. # endif
  219. #endif
  220. #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
  221. #ifndef YY_
  222. # if defined YYENABLE_NLS && YYENABLE_NLS
  223. # if ENABLE_NLS
  224. # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
  225. # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
  226. # endif
  227. # endif
  228. # ifndef YY_
  229. # define YY_(Msgid) Msgid
  230. # endif
  231. #endif
  232. /* Suppress unused-variable warnings by "using" E. */
  233. #if ! defined lint || defined __GNUC__
  234. # define YYUSE(E) ((void) (E))
  235. #else
  236. # define YYUSE(E) /* empty */
  237. #endif
  238. /* Identity function, used to suppress warnings about constant conditions. */
  239. #ifndef lint
  240. # define YYID(N) (N)
  241. #else
  242. #if (defined __STDC__ || defined __C99__FUNC__ \
  243. || defined __cplusplus || defined _MSC_VER)
  244. static int
  245. YYID (int yyi)
  246. #else
  247. static int
  248. YYID (yyi)
  249. int yyi;
  250. #endif
  251. {
  252. return yyi;
  253. }
  254. #endif
  255. #if ! defined yyoverflow || YYERROR_VERBOSE
  256. /* The parser invokes alloca or malloc; define the necessary symbols. */
  257. # ifdef YYSTACK_USE_ALLOCA
  258. # if YYSTACK_USE_ALLOCA
  259. # ifdef __GNUC__
  260. # define YYSTACK_ALLOC __builtin_alloca
  261. # elif defined __BUILTIN_VA_ARG_INCR
  262. # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
  263. # elif defined _AIX
  264. # define YYSTACK_ALLOC __alloca
  265. # elif defined _MSC_VER
  266. # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
  267. # define alloca _alloca
  268. # else
  269. # define YYSTACK_ALLOC alloca
  270. # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
  271. || defined __cplusplus || defined _MSC_VER)
  272. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  273. /* Use EXIT_SUCCESS as a witness for stdlib.h. */
  274. # ifndef EXIT_SUCCESS
  275. # define EXIT_SUCCESS 0
  276. # endif
  277. # endif
  278. # endif
  279. # endif
  280. # endif
  281. # ifdef YYSTACK_ALLOC
  282. /* Pacify GCC's `empty if-body' warning. */
  283. # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
  284. # ifndef YYSTACK_ALLOC_MAXIMUM
  285. /* The OS might guarantee only one guard page at the bottom of the stack,
  286. and a page size can be as small as 4096 bytes. So we cannot safely
  287. invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
  288. to allow for a few compiler-allocated temporary stack slots. */
  289. # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
  290. # endif
  291. # else
  292. # define YYSTACK_ALLOC YYMALLOC
  293. # define YYSTACK_FREE YYFREE
  294. # ifndef YYSTACK_ALLOC_MAXIMUM
  295. # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
  296. # endif
  297. # if (defined __cplusplus && ! defined EXIT_SUCCESS \
  298. && ! ((defined YYMALLOC || defined malloc) \
  299. && (defined YYFREE || defined free)))
  300. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  301. # ifndef EXIT_SUCCESS
  302. # define EXIT_SUCCESS 0
  303. # endif
  304. # endif
  305. # ifndef YYMALLOC
  306. # define YYMALLOC malloc
  307. # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
  308. || defined __cplusplus || defined _MSC_VER)
  309. void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
  310. # endif
  311. # endif
  312. # ifndef YYFREE
  313. # define YYFREE free
  314. # if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
  315. || defined __cplusplus || defined _MSC_VER)
  316. void free (void *); /* INFRINGES ON USER NAME SPACE */
  317. # endif
  318. # endif
  319. # endif
  320. #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
  321. #if (! defined yyoverflow \
  322. && (! defined __cplusplus \
  323. || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
  324. /* A type that is properly aligned for any stack member. */
  325. union yyalloc
  326. {
  327. yytype_int16 yyss_alloc;
  328. YYSTYPE yyvs_alloc;
  329. };
  330. /* The size of the maximum gap between one aligned stack and the next. */
  331. # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  332. /* The size of an array large to enough to hold all stacks, each with
  333. N elements. */
  334. # define YYSTACK_BYTES(N) \
  335. ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
  336. + YYSTACK_GAP_MAXIMUM)
  337. # define YYCOPY_NEEDED 1
  338. /* Relocate STACK from its old location to the new one. The
  339. local variables YYSIZE and YYSTACKSIZE give the old and new number of
  340. elements in the stack, and YYPTR gives the new location of the
  341. stack. Advance YYPTR to a properly aligned location for the next
  342. stack. */
  343. # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
  344. do \
  345. { \
  346. YYSIZE_T yynewbytes; \
  347. YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
  348. Stack = &yyptr->Stack_alloc; \
  349. yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  350. yyptr += yynewbytes / sizeof (*yyptr); \
  351. } \
  352. while (YYID (0))
  353. #endif
  354. #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
  355. /* Copy COUNT objects from SRC to DST. The source and destination do
  356. not overlap. */
  357. # ifndef YYCOPY
  358. # if defined __GNUC__ && 1 < __GNUC__
  359. # define YYCOPY(Dst, Src, Count) \
  360. __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
  361. # else
  362. # define YYCOPY(Dst, Src, Count) \
  363. do \
  364. { \
  365. YYSIZE_T yyi; \
  366. for (yyi = 0; yyi < (Count); yyi++) \
  367. (Dst)[yyi] = (Src)[yyi]; \
  368. } \
  369. while (YYID (0))
  370. # endif
  371. # endif
  372. #endif /* !YYCOPY_NEEDED */
  373. /* YYFINAL -- State number of the termination state. */
  374. #define YYFINAL 24
  375. /* YYLAST -- Last index in YYTABLE. */
  376. #define YYLAST 33
  377. /* YYNTOKENS -- Number of terminals. */
  378. #define YYNTOKENS 21
  379. /* YYNNTS -- Number of nonterminals. */
  380. #define YYNNTS 4
  381. /* YYNRULES -- Number of rules. */
  382. #define YYNRULES 24
  383. /* YYNRULES -- Number of states. */
  384. #define YYNSTATES 37
  385. /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  386. #define YYUNDEFTOK 2
  387. #define YYMAXUTOK 275
  388. #define YYTRANSLATE(YYX) \
  389. ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  390. /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  391. static const yytype_uint8 yytranslate[] =
  392. {
  393. 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  394. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  395. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  396. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  397. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  398. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  399. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  400. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  401. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  402. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  403. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  404. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  405. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  406. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  407. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  408. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  409. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  410. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  411. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  412. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  413. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  414. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  415. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  416. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  417. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  418. 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  419. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  420. 15, 16, 17, 18, 19, 20
  421. };
  422. #if YYDEBUG
  423. /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  424. YYRHS. */
  425. static const yytype_uint8 yyprhs[] =
  426. {
  427. 0, 0, 3, 5, 6, 8, 11, 15, 20, 25,
  428. 31, 35, 41, 45, 48, 51, 54, 56, 59, 61,
  429. 63, 65, 67, 69, 71
  430. };
  431. /* YYRHS -- A `-1'-separated list of the rules' RHS. */
  432. static const yytype_int8 yyrhs[] =
  433. {
  434. 22, 0, -1, 23, -1, -1, 24, -1, 23, 24,
  435. -1, 18, 10, 14, -1, 18, 10, 12, 14, -1,
  436. 13, 18, 10, 14, -1, 13, 18, 10, 12, 14,
  437. -1, 18, 11, 18, -1, 18, 11, 18, 12, 14,
  438. -1, 18, 12, 14, -1, 6, 19, -1, 3, 19,
  439. -1, 5, 19, -1, 4, -1, 4, 19, -1, 17,
  440. -1, 16, -1, 15, -1, 7, -1, 8, -1, 14,
  441. -1, 18, -1
  442. };
  443. /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  444. static const yytype_uint8 yyrline[] =
  445. {
  446. 0, 76, 76, 77, 81, 82, 86, 91, 96, 107,
  447. 118, 123, 129, 135, 140, 145, 150, 154, 159, 160,
  448. 161, 162, 163, 164, 165
  449. };
  450. #endif
  451. #if YYDEBUG || YYERROR_VERBOSE || 1
  452. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  453. First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  454. static const char *const yytname[] =
  455. {
  456. "$end", "error", "$undefined", "\"eval\"", "\"run\"", "\"shell\"",
  457. "\"if (condition)\"", "\"truthy (true, on, yes or enabled)\"",
  458. "\"falsy (false, off, no or disabled)\"",
  459. "\"string (some input, perhaps)\"", "\": (colon)\"",
  460. "\":: (double colon)\"", "\"# (pound sign)\"", "\"protocol (file://)\"",
  461. "\"digits (numbers)\"", "\"literal (string)\"", "\"address\"",
  462. "\"opcode\"", "\"identifier (command or function name)\"",
  463. "\"input (input string or data)\"", "\"input\"", "$accept", "input",
  464. "parameters", "parameter", YY_NULL
  465. };
  466. #endif
  467. # ifdef YYPRINT
  468. /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  469. token YYLEX-NUM. */
  470. static const yytype_uint16 yytoknum[] =
  471. {
  472. 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  473. 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
  474. 275
  475. };
  476. # endif
  477. /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  478. static const yytype_uint8 yyr1[] =
  479. {
  480. 0, 21, 22, 22, 23, 23, 24, 24, 24, 24,
  481. 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
  482. 24, 24, 24, 24, 24
  483. };
  484. /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  485. static const yytype_uint8 yyr2[] =
  486. {
  487. 0, 2, 1, 0, 1, 2, 3, 4, 4, 5,
  488. 3, 5, 3, 2, 2, 2, 1, 2, 1, 1,
  489. 1, 1, 1, 1, 1
  490. };
  491. /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
  492. Performed when YYTABLE doesn't specify something else to do. Zero
  493. means the default is an error. */
  494. static const yytype_uint8 yydefact[] =
  495. {
  496. 3, 0, 16, 0, 0, 21, 22, 0, 23, 20,
  497. 19, 18, 24, 0, 2, 4, 14, 17, 15, 13,
  498. 0, 0, 0, 0, 1, 5, 0, 0, 6, 10,
  499. 12, 0, 8, 7, 0, 9, 11
  500. };
  501. /* YYDEFGOTO[NTERM-NUM]. */
  502. static const yytype_int8 yydefgoto[] =
  503. {
  504. -1, 13, 14, 15
  505. };
  506. /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  507. STATE-NUM. */
  508. #define YYPACT_NINF -11
  509. static const yytype_int8 yypact[] =
  510. {
  511. -3, -10, 1, 2, 3, -11, -11, 6, -11, -11,
  512. -11, -11, -4, 23, -3, -11, -11, -11, -11, -11,
  513. 15, 4, 8, 13, -11, -11, 5, 14, -11, 17,
  514. -11, 16, -11, -11, 18, -11, -11
  515. };
  516. /* YYPGOTO[NTERM-NUM]. */
  517. static const yytype_int8 yypgoto[] =
  518. {
  519. -11, -11, -11, 19
  520. };
  521. /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  522. positive, shift that token. If negative, reduce the rule which
  523. number is the opposite. If YYTABLE_NINF, syntax error. */
  524. #define YYTABLE_NINF -1
  525. static const yytype_uint8 yytable[] =
  526. {
  527. 1, 2, 3, 4, 5, 6, 21, 22, 23, 16,
  528. 7, 8, 9, 10, 11, 12, 27, 31, 28, 32,
  529. 17, 18, 19, 24, 20, 26, 29, 30, 33, 34,
  530. 35, 0, 36, 25
  531. };
  532. #define yypact_value_is_default(Yystate) \
  533. (!!((Yystate) == (-11)))
  534. #define yytable_value_is_error(Yytable_value) \
  535. YYID (0)
  536. static const yytype_int8 yycheck[] =
  537. {
  538. 3, 4, 5, 6, 7, 8, 10, 11, 12, 19,
  539. 13, 14, 15, 16, 17, 18, 12, 12, 14, 14,
  540. 19, 19, 19, 0, 18, 10, 18, 14, 14, 12,
  541. 14, -1, 14, 14
  542. };
  543. /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  544. symbol of state STATE-NUM. */
  545. static const yytype_uint8 yystos[] =
  546. {
  547. 0, 3, 4, 5, 6, 7, 8, 13, 14, 15,
  548. 16, 17, 18, 22, 23, 24, 19, 19, 19, 19,
  549. 18, 10, 11, 12, 0, 24, 10, 12, 14, 18,
  550. 14, 12, 14, 14, 12, 14, 14
  551. };
  552. #define yyerrok (yyerrstatus = 0)
  553. #define yyclearin (yychar = YYEMPTY)
  554. #define YYEMPTY (-2)
  555. #define YYEOF 0
  556. #define YYACCEPT goto yyacceptlab
  557. #define YYABORT goto yyabortlab
  558. #define YYERROR goto yyerrorlab
  559. /* Like YYERROR except do call yyerror. This remains here temporarily
  560. to ease the transition to the new meaning of YYERROR, for GCC.
  561. Once GCC version 2 has supplanted version 1, this can go. However,
  562. YYFAIL appears to be in use. Nevertheless, it is formally deprecated
  563. in Bison 2.4.2's NEWS entry, where a plan to phase it out is
  564. discussed. */
  565. #define YYFAIL goto yyerrlab
  566. #if defined YYFAIL
  567. /* This is here to suppress warnings from the GCC cpp's
  568. -Wunused-macros. Normally we don't worry about that warning, but
  569. some users do, and we want to make it easy for users to remove
  570. YYFAIL uses, which will produce warnings from Bison 2.5. */
  571. #endif
  572. #define YYRECOVERING() (!!yyerrstatus)
  573. #define YYBACKUP(Token, Value) \
  574. do \
  575. if (yychar == YYEMPTY) \
  576. { \
  577. yychar = (Token); \
  578. yylval = (Value); \
  579. YYPOPSTACK (yylen); \
  580. yystate = *yyssp; \
  581. goto yybackup; \
  582. } \
  583. else \
  584. { \
  585. yyerror (stack, scanner, YY_("syntax error: cannot back up")); \
  586. YYERROR; \
  587. } \
  588. while (YYID (0))
  589. /* Error token number */
  590. #define YYTERROR 1
  591. #define YYERRCODE 256
  592. /* This macro is provided for backward compatibility. */
  593. #ifndef YY_LOCATION_PRINT
  594. # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
  595. #endif
  596. /* YYLEX -- calling `yylex' with the right arguments. */
  597. #ifdef YYLEX_PARAM
  598. # define YYLEX yylex (&yylval, YYLEX_PARAM)
  599. #else
  600. # define YYLEX yylex (&yylval, scanner)
  601. #endif
  602. /* Enable debugging if requested. */
  603. #if YYDEBUG
  604. # ifndef YYFPRINTF
  605. # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  606. # define YYFPRINTF fprintf
  607. # endif
  608. # define YYDPRINTF(Args) \
  609. do { \
  610. if (yydebug) \
  611. YYFPRINTF Args; \
  612. } while (YYID (0))
  613. # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
  614. do { \
  615. if (yydebug) \
  616. { \
  617. YYFPRINTF (stderr, "%s ", Title); \
  618. yy_symbol_print (stderr, \
  619. Type, Value, stack, scanner); \
  620. YYFPRINTF (stderr, "\n"); \
  621. } \
  622. } while (YYID (0))
  623. /*--------------------------------.
  624. | Print this symbol on YYOUTPUT. |
  625. `--------------------------------*/
  626. /*ARGSUSED*/
  627. #if (defined __STDC__ || defined __C99__FUNC__ \
  628. || defined __cplusplus || defined _MSC_VER)
  629. static void
  630. yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, phpdbg_param_t *stack, yyscan_t scanner)
  631. #else
  632. static void
  633. yy_symbol_value_print (yyoutput, yytype, yyvaluep, stack, scanner)
  634. FILE *yyoutput;
  635. int yytype;
  636. YYSTYPE const * const yyvaluep;
  637. phpdbg_param_t *stack;
  638. yyscan_t scanner;
  639. #endif
  640. {
  641. FILE *yyo = yyoutput;
  642. YYUSE (yyo);
  643. if (!yyvaluep)
  644. return;
  645. YYUSE (stack);
  646. YYUSE (scanner);
  647. # ifdef YYPRINT
  648. if (yytype < YYNTOKENS)
  649. YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  650. # else
  651. YYUSE (yyoutput);
  652. # endif
  653. switch (yytype)
  654. {
  655. default:
  656. break;
  657. }
  658. }
  659. /*--------------------------------.
  660. | Print this symbol on YYOUTPUT. |
  661. `--------------------------------*/
  662. #if (defined __STDC__ || defined __C99__FUNC__ \
  663. || defined __cplusplus || defined _MSC_VER)
  664. static void
  665. yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, phpdbg_param_t *stack, yyscan_t scanner)
  666. #else
  667. static void
  668. yy_symbol_print (yyoutput, yytype, yyvaluep, stack, scanner)
  669. FILE *yyoutput;
  670. int yytype;
  671. YYSTYPE const * const yyvaluep;
  672. phpdbg_param_t *stack;
  673. yyscan_t scanner;
  674. #endif
  675. {
  676. if (yytype < YYNTOKENS)
  677. YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  678. else
  679. YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  680. yy_symbol_value_print (yyoutput, yytype, yyvaluep, stack, scanner);
  681. YYFPRINTF (yyoutput, ")");
  682. }
  683. /*------------------------------------------------------------------.
  684. | yy_stack_print -- Print the state stack from its BOTTOM up to its |
  685. | TOP (included). |
  686. `------------------------------------------------------------------*/
  687. #if (defined __STDC__ || defined __C99__FUNC__ \
  688. || defined __cplusplus || defined _MSC_VER)
  689. static void
  690. yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
  691. #else
  692. static void
  693. yy_stack_print (yybottom, yytop)
  694. yytype_int16 *yybottom;
  695. yytype_int16 *yytop;
  696. #endif
  697. {
  698. YYFPRINTF (stderr, "Stack now");
  699. for (; yybottom <= yytop; yybottom++)
  700. {
  701. int yybot = *yybottom;
  702. YYFPRINTF (stderr, " %d", yybot);
  703. }
  704. YYFPRINTF (stderr, "\n");
  705. }
  706. # define YY_STACK_PRINT(Bottom, Top) \
  707. do { \
  708. if (yydebug) \
  709. yy_stack_print ((Bottom), (Top)); \
  710. } while (YYID (0))
  711. /*------------------------------------------------.
  712. | Report that the YYRULE is going to be reduced. |
  713. `------------------------------------------------*/
  714. #if (defined __STDC__ || defined __C99__FUNC__ \
  715. || defined __cplusplus || defined _MSC_VER)
  716. static void
  717. yy_reduce_print (YYSTYPE *yyvsp, int yyrule, phpdbg_param_t *stack, yyscan_t scanner)
  718. #else
  719. static void
  720. yy_reduce_print (yyvsp, yyrule, stack, scanner)
  721. YYSTYPE *yyvsp;
  722. int yyrule;
  723. phpdbg_param_t *stack;
  724. yyscan_t scanner;
  725. #endif
  726. {
  727. int yynrhs = yyr2[yyrule];
  728. int yyi;
  729. unsigned long int yylno = yyrline[yyrule];
  730. YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
  731. yyrule - 1, yylno);
  732. /* The symbols being reduced. */
  733. for (yyi = 0; yyi < yynrhs; yyi++)
  734. {
  735. YYFPRINTF (stderr, " $%d = ", yyi + 1);
  736. yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
  737. &(yyvsp[(yyi + 1) - (yynrhs)])
  738. , stack, scanner);
  739. YYFPRINTF (stderr, "\n");
  740. }
  741. }
  742. # define YY_REDUCE_PRINT(Rule) \
  743. do { \
  744. if (yydebug) \
  745. yy_reduce_print (yyvsp, Rule, stack, scanner); \
  746. } while (YYID (0))
  747. /* Nonzero means print parse trace. It is left uninitialized so that
  748. multiple parsers can coexist. */
  749. int yydebug;
  750. #else /* !YYDEBUG */
  751. # define YYDPRINTF(Args)
  752. # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
  753. # define YY_STACK_PRINT(Bottom, Top)
  754. # define YY_REDUCE_PRINT(Rule)
  755. #endif /* !YYDEBUG */
  756. /* YYINITDEPTH -- initial size of the parser's stacks. */
  757. #ifndef YYINITDEPTH
  758. # define YYINITDEPTH 200
  759. #endif
  760. /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  761. if the built-in stack extension method is used).
  762. Do not make this value too large; the results are undefined if
  763. YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
  764. evaluated with infinite-precision integer arithmetic. */
  765. #ifndef YYMAXDEPTH
  766. # define YYMAXDEPTH 10000
  767. #endif
  768. #if YYERROR_VERBOSE
  769. # ifndef yystrlen
  770. # if defined __GLIBC__ && defined _STRING_H
  771. # define yystrlen strlen
  772. # else
  773. /* Return the length of YYSTR. */
  774. #if (defined __STDC__ || defined __C99__FUNC__ \
  775. || defined __cplusplus || defined _MSC_VER)
  776. static YYSIZE_T
  777. yystrlen (const char *yystr)
  778. #else
  779. static YYSIZE_T
  780. yystrlen (yystr)
  781. const char *yystr;
  782. #endif
  783. {
  784. YYSIZE_T yylen;
  785. for (yylen = 0; yystr[yylen]; yylen++)
  786. continue;
  787. return yylen;
  788. }
  789. # endif
  790. # endif
  791. # ifndef yystpcpy
  792. # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
  793. # define yystpcpy stpcpy
  794. # else
  795. /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  796. YYDEST. */
  797. #if (defined __STDC__ || defined __C99__FUNC__ \
  798. || defined __cplusplus || defined _MSC_VER)
  799. static char *
  800. yystpcpy (char *yydest, const char *yysrc)
  801. #else
  802. static char *
  803. yystpcpy (yydest, yysrc)
  804. char *yydest;
  805. const char *yysrc;
  806. #endif
  807. {
  808. char *yyd = yydest;
  809. const char *yys = yysrc;
  810. while ((*yyd++ = *yys++) != '\0')
  811. continue;
  812. return yyd - 1;
  813. }
  814. # endif
  815. # endif
  816. # ifndef yytnamerr
  817. /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
  818. quotes and backslashes, so that it's suitable for yyerror. The
  819. heuristic is that double-quoting is unnecessary unless the string
  820. contains an apostrophe, a comma, or backslash (other than
  821. backslash-backslash). YYSTR is taken from yytname. If YYRES is
  822. null, do not copy; instead, return the length of what the result
  823. would have been. */
  824. static YYSIZE_T
  825. yytnamerr (char *yyres, const char *yystr)
  826. {
  827. if (*yystr == '"')
  828. {
  829. YYSIZE_T yyn = 0;
  830. char const *yyp = yystr;
  831. for (;;)
  832. switch (*++yyp)
  833. {
  834. case '\'':
  835. case ',':
  836. goto do_not_strip_quotes;
  837. case '\\':
  838. if (*++yyp != '\\')
  839. goto do_not_strip_quotes;
  840. /* Fall through. */
  841. default:
  842. if (yyres)
  843. yyres[yyn] = *yyp;
  844. yyn++;
  845. break;
  846. case '"':
  847. if (yyres)
  848. yyres[yyn] = '\0';
  849. return yyn;
  850. }
  851. do_not_strip_quotes: ;
  852. }
  853. if (! yyres)
  854. return yystrlen (yystr);
  855. return yystpcpy (yyres, yystr) - yyres;
  856. }
  857. # endif
  858. /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
  859. about the unexpected token YYTOKEN for the state stack whose top is
  860. YYSSP.
  861. Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
  862. not large enough to hold the message. In that case, also set
  863. *YYMSG_ALLOC to the required number of bytes. Return 2 if the
  864. required number of bytes is too large to store. */
  865. static int
  866. yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
  867. yytype_int16 *yyssp, int yytoken)
  868. {
  869. YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
  870. YYSIZE_T yysize = yysize0;
  871. enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  872. /* Internationalized format string. */
  873. const char *yyformat = YY_NULL;
  874. /* Arguments of yyformat. */
  875. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  876. /* Number of reported tokens (one for the "unexpected", one per
  877. "expected"). */
  878. int yycount = 0;
  879. /* There are many possibilities here to consider:
  880. - Assume YYFAIL is not used. It's too flawed to consider. See
  881. <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
  882. for details. YYERROR is fine as it does not invoke this
  883. function.
  884. - If this state is a consistent state with a default action, then
  885. the only way this function was invoked is if the default action
  886. is an error action. In that case, don't check for expected
  887. tokens because there are none.
  888. - The only way there can be no lookahead present (in yychar) is if
  889. this state is a consistent state with a default action. Thus,
  890. detecting the absence of a lookahead is sufficient to determine
  891. that there is no unexpected or expected token to report. In that
  892. case, just report a simple "syntax error".
  893. - Don't assume there isn't a lookahead just because this state is a
  894. consistent state with a default action. There might have been a
  895. previous inconsistent state, consistent state with a non-default
  896. action, or user semantic action that manipulated yychar.
  897. - Of course, the expected token list depends on states to have
  898. correct lookahead information, and it depends on the parser not
  899. to perform extra reductions after fetching a lookahead from the
  900. scanner and before detecting a syntax error. Thus, state merging
  901. (from LALR or IELR) and default reductions corrupt the expected
  902. token list. However, the list is correct for canonical LR with
  903. one exception: it will still contain any token that will not be
  904. accepted due to an error action in a later state.
  905. */
  906. if (yytoken != YYEMPTY)
  907. {
  908. int yyn = yypact[*yyssp];
  909. yyarg[yycount++] = yytname[yytoken];
  910. if (!yypact_value_is_default (yyn))
  911. {
  912. /* Start YYX at -YYN if negative to avoid negative indexes in
  913. YYCHECK. In other words, skip the first -YYN actions for
  914. this state because they are default actions. */
  915. int yyxbegin = yyn < 0 ? -yyn : 0;
  916. /* Stay within bounds of both yycheck and yytname. */
  917. int yychecklim = YYLAST - yyn + 1;
  918. int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  919. int yyx;
  920. for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  921. if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
  922. && !yytable_value_is_error (yytable[yyx + yyn]))
  923. {
  924. if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
  925. {
  926. yycount = 1;
  927. yysize = yysize0;
  928. break;
  929. }
  930. yyarg[yycount++] = yytname[yyx];
  931. {
  932. YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
  933. if (! (yysize <= yysize1
  934. && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
  935. return 2;
  936. yysize = yysize1;
  937. }
  938. }
  939. }
  940. }
  941. switch (yycount)
  942. {
  943. # define YYCASE_(N, S) \
  944. case N: \
  945. yyformat = S; \
  946. break
  947. YYCASE_(0, YY_("syntax error"));
  948. YYCASE_(1, YY_("syntax error, unexpected %s"));
  949. YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
  950. YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
  951. YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
  952. YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
  953. # undef YYCASE_
  954. }
  955. {
  956. YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
  957. if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
  958. return 2;
  959. yysize = yysize1;
  960. }
  961. if (*yymsg_alloc < yysize)
  962. {
  963. *yymsg_alloc = 2 * yysize;
  964. if (! (yysize <= *yymsg_alloc
  965. && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
  966. *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
  967. return 1;
  968. }
  969. /* Avoid sprintf, as that infringes on the user's name space.
  970. Don't have undefined behavior even if the translation
  971. produced a string with the wrong number of "%s"s. */
  972. {
  973. char *yyp = *yymsg;
  974. int yyi = 0;
  975. while ((*yyp = *yyformat) != '\0')
  976. if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
  977. {
  978. yyp += yytnamerr (yyp, yyarg[yyi++]);
  979. yyformat += 2;
  980. }
  981. else
  982. {
  983. yyp++;
  984. yyformat++;
  985. }
  986. }
  987. return 0;
  988. }
  989. #endif /* YYERROR_VERBOSE */
  990. /*-----------------------------------------------.
  991. | Release the memory associated to this symbol. |
  992. `-----------------------------------------------*/
  993. /*ARGSUSED*/
  994. #if (defined __STDC__ || defined __C99__FUNC__ \
  995. || defined __cplusplus || defined _MSC_VER)
  996. static void
  997. yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, phpdbg_param_t *stack, yyscan_t scanner)
  998. #else
  999. static void
  1000. yydestruct (yymsg, yytype, yyvaluep, stack, scanner)
  1001. const char *yymsg;
  1002. int yytype;
  1003. YYSTYPE *yyvaluep;
  1004. phpdbg_param_t *stack;
  1005. yyscan_t scanner;
  1006. #endif
  1007. {
  1008. YYUSE (yyvaluep);
  1009. YYUSE (stack);
  1010. YYUSE (scanner);
  1011. if (!yymsg)
  1012. yymsg = "Deleting";
  1013. YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
  1014. switch (yytype)
  1015. {
  1016. default:
  1017. break;
  1018. }
  1019. }
  1020. /*----------.
  1021. | yyparse. |
  1022. `----------*/
  1023. #ifdef YYPARSE_PARAM
  1024. #if (defined __STDC__ || defined __C99__FUNC__ \
  1025. || defined __cplusplus || defined _MSC_VER)
  1026. int
  1027. yyparse (void *YYPARSE_PARAM)
  1028. #else
  1029. int
  1030. yyparse (YYPARSE_PARAM)
  1031. void *YYPARSE_PARAM;
  1032. #endif
  1033. #else /* ! YYPARSE_PARAM */
  1034. #if (defined __STDC__ || defined __C99__FUNC__ \
  1035. || defined __cplusplus || defined _MSC_VER)
  1036. int
  1037. yyparse (phpdbg_param_t *stack, yyscan_t scanner)
  1038. #else
  1039. int
  1040. yyparse (stack, scanner)
  1041. phpdbg_param_t *stack;
  1042. yyscan_t scanner;
  1043. #endif
  1044. #endif
  1045. {
  1046. /* The lookahead symbol. */
  1047. int yychar;
  1048. #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
  1049. /* Suppress an incorrect diagnostic about yylval being uninitialized. */
  1050. # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
  1051. _Pragma ("GCC diagnostic push") \
  1052. _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
  1053. _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
  1054. # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
  1055. _Pragma ("GCC diagnostic pop")
  1056. #else
  1057. /* Default value used for initialization, for pacifying older GCCs
  1058. or non-GCC compilers. */
  1059. static YYSTYPE yyval_default;
  1060. # define YY_INITIAL_VALUE(Value) = Value
  1061. #endif
  1062. #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  1063. # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  1064. # define YY_IGNORE_MAYBE_UNINITIALIZED_END
  1065. #endif
  1066. #ifndef YY_INITIAL_VALUE
  1067. # define YY_INITIAL_VALUE(Value) /* Nothing. */
  1068. #endif
  1069. /* The semantic value of the lookahead symbol. */
  1070. YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
  1071. /* Number of syntax errors so far. */
  1072. int yynerrs;
  1073. int yystate;
  1074. /* Number of tokens to shift before error messages enabled. */
  1075. int yyerrstatus;
  1076. /* The stacks and their tools:
  1077. `yyss': related to states.
  1078. `yyvs': related to semantic values.
  1079. Refer to the stacks through separate pointers, to allow yyoverflow
  1080. to reallocate them elsewhere. */
  1081. /* The state stack. */
  1082. yytype_int16 yyssa[YYINITDEPTH];
  1083. yytype_int16 *yyss;
  1084. yytype_int16 *yyssp;
  1085. /* The semantic value stack. */
  1086. YYSTYPE yyvsa[YYINITDEPTH];
  1087. YYSTYPE *yyvs;
  1088. YYSTYPE *yyvsp;
  1089. YYSIZE_T yystacksize;
  1090. int yyn;
  1091. int yyresult;
  1092. /* Lookahead token as an internal (translated) token number. */
  1093. int yytoken = 0;
  1094. /* The variables used to return semantic value and location from the
  1095. action routines. */
  1096. YYSTYPE yyval;
  1097. #if YYERROR_VERBOSE
  1098. /* Buffer for error messages, and its allocated size. */
  1099. char yymsgbuf[128];
  1100. char *yymsg = yymsgbuf;
  1101. YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
  1102. #endif
  1103. #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
  1104. /* The number of symbols on the RHS of the reduced rule.
  1105. Keep to zero when no symbol should be popped. */
  1106. int yylen = 0;
  1107. yyssp = yyss = yyssa;
  1108. yyvsp = yyvs = yyvsa;
  1109. yystacksize = YYINITDEPTH;
  1110. YYDPRINTF ((stderr, "Starting parse\n"));
  1111. yystate = 0;
  1112. yyerrstatus = 0;
  1113. yynerrs = 0;
  1114. yychar = YYEMPTY; /* Cause a token to be read. */
  1115. goto yysetstate;
  1116. /*------------------------------------------------------------.
  1117. | yynewstate -- Push a new state, which is found in yystate. |
  1118. `------------------------------------------------------------*/
  1119. yynewstate:
  1120. /* In all cases, when you get here, the value and location stacks
  1121. have just been pushed. So pushing a state here evens the stacks. */
  1122. yyssp++;
  1123. yysetstate:
  1124. *yyssp = yystate;
  1125. if (yyss + yystacksize - 1 <= yyssp)
  1126. {
  1127. /* Get the current used size of the three stacks, in elements. */
  1128. YYSIZE_T yysize = yyssp - yyss + 1;
  1129. #ifdef yyoverflow
  1130. {
  1131. /* Give user a chance to reallocate the stack. Use copies of
  1132. these so that the &'s don't force the real ones into
  1133. memory. */
  1134. YYSTYPE *yyvs1 = yyvs;
  1135. yytype_int16 *yyss1 = yyss;
  1136. /* Each stack pointer address is followed by the size of the
  1137. data in use in that stack, in bytes. This used to be a
  1138. conditional around just the two extra args, but that might
  1139. be undefined if yyoverflow is a macro. */
  1140. yyoverflow (YY_("memory exhausted"),
  1141. &yyss1, yysize * sizeof (*yyssp),
  1142. &yyvs1, yysize * sizeof (*yyvsp),
  1143. &yystacksize);
  1144. yyss = yyss1;
  1145. yyvs = yyvs1;
  1146. }
  1147. #else /* no yyoverflow */
  1148. # ifndef YYSTACK_RELOCATE
  1149. goto yyexhaustedlab;
  1150. # else
  1151. /* Extend the stack our own way. */
  1152. if (YYMAXDEPTH <= yystacksize)
  1153. goto yyexhaustedlab;
  1154. yystacksize *= 2;
  1155. if (YYMAXDEPTH < yystacksize)
  1156. yystacksize = YYMAXDEPTH;
  1157. {
  1158. yytype_int16 *yyss1 = yyss;
  1159. union yyalloc *yyptr =
  1160. (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  1161. if (! yyptr)
  1162. goto yyexhaustedlab;
  1163. YYSTACK_RELOCATE (yyss_alloc, yyss);
  1164. YYSTACK_RELOCATE (yyvs_alloc, yyvs);
  1165. # undef YYSTACK_RELOCATE
  1166. if (yyss1 != yyssa)
  1167. YYSTACK_FREE (yyss1);
  1168. }
  1169. # endif
  1170. #endif /* no yyoverflow */
  1171. yyssp = yyss + yysize - 1;
  1172. yyvsp = yyvs + yysize - 1;
  1173. YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  1174. (unsigned long int) yystacksize));
  1175. if (yyss + yystacksize - 1 <= yyssp)
  1176. YYABORT;
  1177. }
  1178. YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  1179. if (yystate == YYFINAL)
  1180. YYACCEPT;
  1181. goto yybackup;
  1182. /*-----------.
  1183. | yybackup. |
  1184. `-----------*/
  1185. yybackup:
  1186. /* Do appropriate processing given the current state. Read a
  1187. lookahead token if we need one and don't already have one. */
  1188. /* First try to decide what to do without reference to lookahead token. */
  1189. yyn = yypact[yystate];
  1190. if (yypact_value_is_default (yyn))
  1191. goto yydefault;
  1192. /* Not known => get a lookahead token if don't already have one. */
  1193. /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
  1194. if (yychar == YYEMPTY)
  1195. {
  1196. YYDPRINTF ((stderr, "Reading a token: "));
  1197. yychar = YYLEX;
  1198. }
  1199. if (yychar <= YYEOF)
  1200. {
  1201. yychar = yytoken = YYEOF;
  1202. YYDPRINTF ((stderr, "Now at end of input.\n"));
  1203. }
  1204. else
  1205. {
  1206. yytoken = YYTRANSLATE (yychar);
  1207. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  1208. }
  1209. /* If the proper action on seeing token YYTOKEN is to reduce or to
  1210. detect an error, take that action. */
  1211. yyn += yytoken;
  1212. if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  1213. goto yydefault;
  1214. yyn = yytable[yyn];
  1215. if (yyn <= 0)
  1216. {
  1217. if (yytable_value_is_error (yyn))
  1218. goto yyerrlab;
  1219. yyn = -yyn;
  1220. goto yyreduce;
  1221. }
  1222. /* Count tokens shifted since error; after three, turn off error
  1223. status. */
  1224. if (yyerrstatus)
  1225. yyerrstatus--;
  1226. /* Shift the lookahead token. */
  1227. YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  1228. /* Discard the shifted token. */
  1229. yychar = YYEMPTY;
  1230. yystate = yyn;
  1231. YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  1232. *++yyvsp = yylval;
  1233. YY_IGNORE_MAYBE_UNINITIALIZED_END
  1234. goto yynewstate;
  1235. /*-----------------------------------------------------------.
  1236. | yydefault -- do the default action for the current state. |
  1237. `-----------------------------------------------------------*/
  1238. yydefault:
  1239. yyn = yydefact[yystate];
  1240. if (yyn == 0)
  1241. goto yyerrlab;
  1242. goto yyreduce;
  1243. /*-----------------------------.
  1244. | yyreduce -- Do a reduction. |
  1245. `-----------------------------*/
  1246. yyreduce:
  1247. /* yyn is the number of a rule to reduce with. */
  1248. yylen = yyr2[yyn];
  1249. /* If YYLEN is nonzero, implement the default value of the action:
  1250. `$$ = $1'.
  1251. Otherwise, the following line sets YYVAL to garbage.
  1252. This behavior is undocumented and Bison
  1253. users should not rely upon it. Assigning to YYVAL
  1254. unconditionally makes the parser a bit smaller, and it avoids a
  1255. GCC warning that YYVAL may be used uninitialized. */
  1256. yyval = yyvsp[1-yylen];
  1257. YY_REDUCE_PRINT (yyn);
  1258. switch (yyn)
  1259. {
  1260. case 4:
  1261. /* Line 1792 of yacc.c */
  1262. #line 81 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1263. { phpdbg_stack_push(stack, &(yyvsp[(1) - (1)])); }
  1264. break;
  1265. case 5:
  1266. /* Line 1792 of yacc.c */
  1267. #line 82 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1268. { phpdbg_stack_push(stack, &(yyvsp[(2) - (2)])); }
  1269. break;
  1270. case 6:
  1271. /* Line 1792 of yacc.c */
  1272. #line 86 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1273. {
  1274. (yyval).type = FILE_PARAM;
  1275. (yyval).file.name = (yyvsp[(2) - (3)]).str;
  1276. (yyval).file.line = (yyvsp[(3) - (3)]).num;
  1277. }
  1278. break;
  1279. case 7:
  1280. /* Line 1792 of yacc.c */
  1281. #line 91 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1282. {
  1283. (yyval).type = NUMERIC_FILE_PARAM;
  1284. (yyval).file.name = (yyvsp[(1) - (4)]).str;
  1285. (yyval).file.line = (yyvsp[(4) - (4)]).num;
  1286. }
  1287. break;
  1288. case 8:
  1289. /* Line 1792 of yacc.c */
  1290. #line 96 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1291. {
  1292. (yyval).type = FILE_PARAM;
  1293. (yyval).file.name = malloc((yyvsp[(1) - (4)]).len +
  1294. (yyvsp[(2) - (4)]).len + 1);
  1295. if ((yyval).file.name) {
  1296. memcpy(&(yyval).file.name[0], (yyvsp[(1) - (4)]).str, (yyvsp[(1) - (4)]).len);
  1297. memcpy(&(yyval).file.name[(yyvsp[(1) - (4)]).len], (yyvsp[(2) - (4)]).str, (yyvsp[(2) - (4)]).len);
  1298. (yyval).file.name[(yyvsp[(1) - (4)]).len + (yyvsp[(2) - (4)]).len] = '\0';
  1299. }
  1300. (yyval).file.line = (yyvsp[(4) - (4)]).num;
  1301. }
  1302. break;
  1303. case 9:
  1304. /* Line 1792 of yacc.c */
  1305. #line 107 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1306. {
  1307. (yyval).type = NUMERIC_FILE_PARAM;
  1308. (yyval).file.name = malloc((yyvsp[(1) - (5)]).len +
  1309. (yyvsp[(2) - (5)]).len + 1);
  1310. if ((yyval).file.name) {
  1311. memcpy(&(yyval).file.name[0], (yyvsp[(1) - (5)]).str, (yyvsp[(1) - (5)]).len);
  1312. memcpy(&(yyval).file.name[(yyvsp[(1) - (5)]).len], (yyvsp[(2) - (5)]).str, (yyvsp[(2) - (5)]).len);
  1313. (yyval).file.name[(yyvsp[(1) - (5)]).len + (yyvsp[(2) - (5)]).len] = '\0';
  1314. }
  1315. (yyval).file.line = (yyvsp[(5) - (5)]).num;
  1316. }
  1317. break;
  1318. case 10:
  1319. /* Line 1792 of yacc.c */
  1320. #line 118 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1321. {
  1322. (yyval).type = METHOD_PARAM;
  1323. (yyval).method.class = (yyvsp[(1) - (3)]).str;
  1324. (yyval).method.name = (yyvsp[(3) - (3)]).str;
  1325. }
  1326. break;
  1327. case 11:
  1328. /* Line 1792 of yacc.c */
  1329. #line 123 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1330. {
  1331. (yyval).type = NUMERIC_METHOD_PARAM;
  1332. (yyval).method.class = (yyvsp[(1) - (5)]).str;
  1333. (yyval).method.name = (yyvsp[(3) - (5)]).str;
  1334. (yyval).num = (yyvsp[(5) - (5)]).num;
  1335. }
  1336. break;
  1337. case 12:
  1338. /* Line 1792 of yacc.c */
  1339. #line 129 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1340. {
  1341. (yyval).type = NUMERIC_FUNCTION_PARAM;
  1342. (yyval).str = (yyvsp[(1) - (3)]).str;
  1343. (yyval).len = (yyvsp[(1) - (3)]).len;
  1344. (yyval).num = (yyvsp[(3) - (3)]).num;
  1345. }
  1346. break;
  1347. case 13:
  1348. /* Line 1792 of yacc.c */
  1349. #line 135 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1350. {
  1351. (yyval).type = COND_PARAM;
  1352. (yyval).str = (yyvsp[(2) - (2)]).str;
  1353. (yyval).len = (yyvsp[(2) - (2)]).len;
  1354. }
  1355. break;
  1356. case 14:
  1357. /* Line 1792 of yacc.c */
  1358. #line 140 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1359. {
  1360. (yyval).type = EVAL_PARAM;
  1361. (yyval).str = (yyvsp[(2) - (2)]).str;
  1362. (yyval).len = (yyvsp[(2) - (2)]).len;
  1363. }
  1364. break;
  1365. case 15:
  1366. /* Line 1792 of yacc.c */
  1367. #line 145 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1368. {
  1369. (yyval).type = SHELL_PARAM;
  1370. (yyval).str = (yyvsp[(2) - (2)]).str;
  1371. (yyval).len = (yyvsp[(2) - (2)]).len;
  1372. }
  1373. break;
  1374. case 16:
  1375. /* Line 1792 of yacc.c */
  1376. #line 150 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1377. {
  1378. (yyval).type = RUN_PARAM;
  1379. (yyval).len = 0;
  1380. }
  1381. break;
  1382. case 17:
  1383. /* Line 1792 of yacc.c */
  1384. #line 154 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1385. {
  1386. (yyval).type = RUN_PARAM;
  1387. (yyval).str = (yyvsp[(2) - (2)]).str;
  1388. (yyval).len = (yyvsp[(2) - (2)]).len;
  1389. }
  1390. break;
  1391. case 18:
  1392. /* Line 1792 of yacc.c */
  1393. #line 159 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1394. { (yyval) = (yyvsp[(1) - (1)]); }
  1395. break;
  1396. case 19:
  1397. /* Line 1792 of yacc.c */
  1398. #line 160 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1399. { (yyval) = (yyvsp[(1) - (1)]); }
  1400. break;
  1401. case 20:
  1402. /* Line 1792 of yacc.c */
  1403. #line 161 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1404. { (yyval) = (yyvsp[(1) - (1)]); }
  1405. break;
  1406. case 21:
  1407. /* Line 1792 of yacc.c */
  1408. #line 162 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1409. { (yyval) = (yyvsp[(1) - (1)]); }
  1410. break;
  1411. case 22:
  1412. /* Line 1792 of yacc.c */
  1413. #line 163 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1414. { (yyval) = (yyvsp[(1) - (1)]); }
  1415. break;
  1416. case 23:
  1417. /* Line 1792 of yacc.c */
  1418. #line 164 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1419. { (yyval) = (yyvsp[(1) - (1)]); }
  1420. break;
  1421. case 24:
  1422. /* Line 1792 of yacc.c */
  1423. #line 165 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"
  1424. { (yyval) = (yyvsp[(1) - (1)]); }
  1425. break;
  1426. /* Line 1792 of yacc.c */
  1427. #line 1653 "sapi/phpdbg/phpdbg_parser.c"
  1428. default: break;
  1429. }
  1430. /* User semantic actions sometimes alter yychar, and that requires
  1431. that yytoken be updated with the new translation. We take the
  1432. approach of translating immediately before every use of yytoken.
  1433. One alternative is translating here after every semantic action,
  1434. but that translation would be missed if the semantic action invokes
  1435. YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
  1436. if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
  1437. incorrect destructor might then be invoked immediately. In the
  1438. case of YYERROR or YYBACKUP, subsequent parser actions might lead
  1439. to an incorrect destructor call or verbose syntax error message
  1440. before the lookahead is translated. */
  1441. YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
  1442. YYPOPSTACK (yylen);
  1443. yylen = 0;
  1444. YY_STACK_PRINT (yyss, yyssp);
  1445. *++yyvsp = yyval;
  1446. /* Now `shift' the result of the reduction. Determine what state
  1447. that goes to, based on the state we popped back to and the rule
  1448. number reduced by. */
  1449. yyn = yyr1[yyn];
  1450. yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  1451. if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  1452. yystate = yytable[yystate];
  1453. else
  1454. yystate = yydefgoto[yyn - YYNTOKENS];
  1455. goto yynewstate;
  1456. /*------------------------------------.
  1457. | yyerrlab -- here on detecting error |
  1458. `------------------------------------*/
  1459. yyerrlab:
  1460. /* Make sure we have latest lookahead translation. See comments at
  1461. user semantic actions for why this is necessary. */
  1462. yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
  1463. /* If not already recovering from an error, report this error. */
  1464. if (!yyerrstatus)
  1465. {
  1466. ++yynerrs;
  1467. #if ! YYERROR_VERBOSE
  1468. yyerror (stack, scanner, YY_("syntax error"));
  1469. #else
  1470. # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
  1471. yyssp, yytoken)
  1472. {
  1473. char const *yymsgp = YY_("syntax error");
  1474. int yysyntax_error_status;
  1475. yysyntax_error_status = YYSYNTAX_ERROR;
  1476. if (yysyntax_error_status == 0)
  1477. yymsgp = yymsg;
  1478. else if (yysyntax_error_status == 1)
  1479. {
  1480. if (yymsg != yymsgbuf)
  1481. YYSTACK_FREE (yymsg);
  1482. yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
  1483. if (!yymsg)
  1484. {
  1485. yymsg = yymsgbuf;
  1486. yymsg_alloc = sizeof yymsgbuf;
  1487. yysyntax_error_status = 2;
  1488. }
  1489. else
  1490. {
  1491. yysyntax_error_status = YYSYNTAX_ERROR;
  1492. yymsgp = yymsg;
  1493. }
  1494. }
  1495. yyerror (stack, scanner, yymsgp);
  1496. if (yysyntax_error_status == 2)
  1497. goto yyexhaustedlab;
  1498. }
  1499. # undef YYSYNTAX_ERROR
  1500. #endif
  1501. }
  1502. if (yyerrstatus == 3)
  1503. {
  1504. /* If just tried and failed to reuse lookahead token after an
  1505. error, discard it. */
  1506. if (yychar <= YYEOF)
  1507. {
  1508. /* Return failure if at end of input. */
  1509. if (yychar == YYEOF)
  1510. YYABORT;
  1511. }
  1512. else
  1513. {
  1514. yydestruct ("Error: discarding",
  1515. yytoken, &yylval, stack, scanner);
  1516. yychar = YYEMPTY;
  1517. }
  1518. }
  1519. /* Else will try to reuse lookahead token after shifting the error
  1520. token. */
  1521. goto yyerrlab1;
  1522. /*---------------------------------------------------.
  1523. | yyerrorlab -- error raised explicitly by YYERROR. |
  1524. `---------------------------------------------------*/
  1525. yyerrorlab:
  1526. /* Pacify compilers like GCC when the user code never invokes
  1527. YYERROR and the label yyerrorlab therefore never appears in user
  1528. code. */
  1529. if (/*CONSTCOND*/ 0)
  1530. goto yyerrorlab;
  1531. /* Do not reclaim the symbols of the rule which action triggered
  1532. this YYERROR. */
  1533. YYPOPSTACK (yylen);
  1534. yylen = 0;
  1535. YY_STACK_PRINT (yyss, yyssp);
  1536. yystate = *yyssp;
  1537. goto yyerrlab1;
  1538. /*-------------------------------------------------------------.
  1539. | yyerrlab1 -- common code for both syntax error and YYERROR. |
  1540. `-------------------------------------------------------------*/
  1541. yyerrlab1:
  1542. yyerrstatus = 3; /* Each real token shifted decrements this. */
  1543. for (;;)
  1544. {
  1545. yyn = yypact[yystate];
  1546. if (!yypact_value_is_default (yyn))
  1547. {
  1548. yyn += YYTERROR;
  1549. if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  1550. {
  1551. yyn = yytable[yyn];
  1552. if (0 < yyn)
  1553. break;
  1554. }
  1555. }
  1556. /* Pop the current state because it cannot handle the error token. */
  1557. if (yyssp == yyss)
  1558. YYABORT;
  1559. yydestruct ("Error: popping",
  1560. yystos[yystate], yyvsp, stack, scanner);
  1561. YYPOPSTACK (1);
  1562. yystate = *yyssp;
  1563. YY_STACK_PRINT (yyss, yyssp);
  1564. }
  1565. YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  1566. *++yyvsp = yylval;
  1567. YY_IGNORE_MAYBE_UNINITIALIZED_END
  1568. /* Shift the error token. */
  1569. YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
  1570. yystate = yyn;
  1571. goto yynewstate;
  1572. /*-------------------------------------.
  1573. | yyacceptlab -- YYACCEPT comes here. |
  1574. `-------------------------------------*/
  1575. yyacceptlab:
  1576. yyresult = 0;
  1577. goto yyreturn;
  1578. /*-----------------------------------.
  1579. | yyabortlab -- YYABORT comes here. |
  1580. `-----------------------------------*/
  1581. yyabortlab:
  1582. yyresult = 1;
  1583. goto yyreturn;
  1584. #if !defined yyoverflow || YYERROR_VERBOSE
  1585. /*-------------------------------------------------.
  1586. | yyexhaustedlab -- memory exhaustion comes here. |
  1587. `-------------------------------------------------*/
  1588. yyexhaustedlab:
  1589. yyerror (stack, scanner, YY_("memory exhausted"));
  1590. yyresult = 2;
  1591. /* Fall through. */
  1592. #endif
  1593. yyreturn:
  1594. if (yychar != YYEMPTY)
  1595. {
  1596. /* Make sure we have latest lookahead translation. See comments at
  1597. user semantic actions for why this is necessary. */
  1598. yytoken = YYTRANSLATE (yychar);
  1599. yydestruct ("Cleanup: discarding lookahead",
  1600. yytoken, &yylval, stack, scanner);
  1601. }
  1602. /* Do not reclaim the symbols of the rule which action triggered
  1603. this YYABORT or YYACCEPT. */
  1604. YYPOPSTACK (yylen);
  1605. YY_STACK_PRINT (yyss, yyssp);
  1606. while (yyssp != yyss)
  1607. {
  1608. yydestruct ("Cleanup: popping",
  1609. yystos[*yyssp], yyvsp, stack, scanner);
  1610. YYPOPSTACK (1);
  1611. }
  1612. #ifndef yyoverflow
  1613. if (yyss != yyssa)
  1614. YYSTACK_FREE (yyss);
  1615. #endif
  1616. #if YYERROR_VERBOSE
  1617. if (yymsg != yymsgbuf)
  1618. YYSTACK_FREE (yymsg);
  1619. #endif
  1620. /* Make sure YYID is used. */
  1621. return YYID (yyresult);
  1622. }
  1623. /* Line 2055 of yacc.c */
  1624. #line 168 "/usr/src/php-src/sapi/phpdbg/phpdbg_parser.y"