PageRenderTime 86ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/parser.c

http://github.com/fizx/parsley
C | 4284 lines | 3556 code | 396 blank | 332 comment | 343 complexity | 5608247565c41bf07ca2cf7580b6db9b MD5 | raw file
  1. /* A Bison parser, made by GNU Bison 2.3. */
  2. /* Skeleton implementation for Bison GLR parsers in C
  3. Copyright (C) 2002, 2003, 2004, 2005, 2006 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 2, or (at your option)
  7. 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, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02110-1301, USA. */
  16. /* As a special exception, you may create a larger work that contains
  17. part or all of the Bison parser skeleton and distribute that work
  18. under terms of your choice, so long as that work isn't itself a
  19. parser generator using the skeleton or a modified version thereof
  20. as a parser skeleton. Alternatively, if you modify or redistribute
  21. the parser skeleton itself, you may (at your option) remove this
  22. special exception, which will cause the skeleton and the resulting
  23. Bison output files to be licensed under the GNU General Public
  24. License without this special exception.
  25. This special exception was added by the Free Software Foundation in
  26. version 2.2 of Bison. */
  27. /* C GLR parser skeleton written by Paul Hilfinger. */
  28. /* Identify Bison output. */
  29. #define YYBISON 1
  30. /* Bison version. */
  31. #define YYBISON_VERSION "2.3"
  32. /* Skeleton name. */
  33. #define YYSKELETON_NAME "glr.c"
  34. /* Pure parsers. */
  35. #define YYPURE 0
  36. /* Using locations. */
  37. #define YYLSP_NEEDED 0
  38. #include "y.tab.h"
  39. /* Enabling traces. */
  40. #ifndef YYDEBUG
  41. # define YYDEBUG 1
  42. #endif
  43. /* Enabling verbose error messages. */
  44. #ifdef YYERROR_VERBOSE
  45. # undef YYERROR_VERBOSE
  46. # define YYERROR_VERBOSE 1
  47. #else
  48. # define YYERROR_VERBOSE 0
  49. #endif
  50. /* Enabling the token table. */
  51. #ifndef YYTOKEN_TABLE
  52. # define YYTOKEN_TABLE 1
  53. #endif
  54. /* Default (constant) value used for initialization for null
  55. right-hand sides. Unlike the standard yacc.c template,
  56. here we set the default value of $$ to a zeroed-out value.
  57. Since the default value is undefined, this behavior is
  58. technically correct. */
  59. static YYSTYPE yyval_default;
  60. /* Copy the second part of user declarations. */
  61. /* Line 234 of glr.c. */
  62. #line 89 "parser.c"
  63. #include <stdio.h>
  64. #include <stdlib.h>
  65. #include <string.h>
  66. #include <stdarg.h>
  67. #ifndef YY_
  68. # if defined YYENABLE_NLS && YYENABLE_NLS
  69. # if ENABLE_NLS
  70. # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
  71. # define YY_(msgid) dgettext ("bison-runtime", msgid)
  72. # endif
  73. # endif
  74. # ifndef YY_
  75. # define YY_(msgid) msgid
  76. # endif
  77. #endif
  78. /* Suppress unused-variable warnings by "using" E. */
  79. #if ! defined lint || defined __GNUC__
  80. # define YYUSE(e) ((void) (e))
  81. #else
  82. # define YYUSE(e) /* empty */
  83. #endif
  84. /* Identity function, used to suppress warnings about constant conditions. */
  85. #ifndef lint
  86. # define YYID(n) (n)
  87. #else
  88. #if (defined __STDC__ || defined __C99__FUNC__ \
  89. || defined __cplusplus || defined _MSC_VER)
  90. static int
  91. YYID (int i)
  92. #else
  93. static int
  94. YYID (i)
  95. int i;
  96. #endif
  97. {
  98. return i;
  99. }
  100. #endif
  101. #ifndef YYFREE
  102. # define YYFREE free
  103. #endif
  104. #ifndef YYMALLOC
  105. # define YYMALLOC malloc
  106. #endif
  107. #ifndef YYREALLOC
  108. # define YYREALLOC realloc
  109. #endif
  110. #define YYSIZEMAX ((size_t) -1)
  111. #ifdef __cplusplus
  112. typedef bool yybool;
  113. #else
  114. typedef unsigned char yybool;
  115. #endif
  116. #define yytrue 1
  117. #define yyfalse 0
  118. #ifndef YYSETJMP
  119. # include <setjmp.h>
  120. # define YYJMP_BUF jmp_buf
  121. # define YYSETJMP(env) setjmp (env)
  122. # define YYLONGJMP(env, val) longjmp (env, val)
  123. #endif
  124. /*-----------------.
  125. | GCC extensions. |
  126. `-----------------*/
  127. #ifndef __attribute__
  128. /* This feature is available in gcc versions 2.5 and later. */
  129. # if (! defined __GNUC__ || __GNUC__ < 2 \
  130. || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__)
  131. # define __attribute__(Spec) /* empty */
  132. # endif
  133. #endif
  134. #ifdef __cplusplus
  135. # define YYOPTIONAL_LOC(Name) /* empty */
  136. #else
  137. # define YYOPTIONAL_LOC(Name) Name __attribute__ ((__unused__))
  138. #endif
  139. #ifndef YYASSERT
  140. # define YYASSERT(condition) ((void) ((condition) || (abort (), 0)))
  141. #endif
  142. /* YYFINAL -- State number of the termination state. */
  143. #define YYFINAL 127
  144. /* YYLAST -- Last index in YYTABLE. */
  145. #define YYLAST 2367
  146. /* YYNTOKENS -- Number of terminals. */
  147. #define YYNTOKENS 101
  148. /* YYNNTS -- Number of nonterminals. */
  149. #define YYNNTS 61
  150. /* YYNRULES -- Number of rules. */
  151. #define YYNRULES 209
  152. /* YYNRULES -- Number of states. */
  153. #define YYNSTATES 358
  154. /* YYMAXRHS -- Maximum number of symbols on right-hand side of rule. */
  155. #define YYMAXRHS 9
  156. /* YYMAXLEFT -- Maximum number of symbols to the left of a handle
  157. accessed by $0, $-1, etc., in any rule. */
  158. #define YYMAXLEFT 0
  159. /* YYTRANSLATE(X) -- Bison symbol number corresponding to X. */
  160. #define YYUNDEFTOK 2
  161. #define YYMAXUTOK 355
  162. #define YYTRANSLATE(YYX) \
  163. ((YYX <= 0) ? YYEOF : \
  164. (unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  165. /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  166. static const unsigned char yytranslate[] =
  167. {
  168. 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  169. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  170. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  171. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  172. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  173. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  174. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  175. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  176. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  177. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  178. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  179. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  180. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  181. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  182. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  183. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  184. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  185. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  186. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  187. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  188. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  189. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  190. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  191. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  192. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  193. 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  194. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  195. 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  196. 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
  197. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  198. 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
  199. 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
  200. 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
  201. 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
  202. 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
  203. 95, 96, 97, 98, 99, 100
  204. };
  205. #if YYDEBUG
  206. /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  207. YYRHS. */
  208. static const unsigned short int yyprhs[] =
  209. {
  210. 0, 0, 3, 6, 8, 10, 12, 15, 17, 19,
  211. 21, 25, 27, 30, 34, 36, 39, 41, 43, 45,
  212. 47, 49, 51, 53, 55, 57, 59, 61, 63, 65,
  213. 67, 69, 73, 78, 81, 83, 87, 89, 92, 96,
  214. 98, 100, 102, 103, 107, 109, 111, 115, 117, 119,
  215. 121, 126, 128, 129, 133, 135, 139, 141, 145, 147,
  216. 149, 153, 157, 159, 162, 164, 168, 170, 174, 176,
  217. 180, 184, 186, 192, 198, 204, 210, 212, 218, 224,
  218. 226, 232, 238, 244, 246, 249, 251, 253, 256, 260,
  219. 263, 265, 268, 270, 274, 276, 278, 280, 282, 284,
  220. 286, 288, 290, 294, 296, 298, 300, 302, 304, 309,
  221. 311, 313, 318, 322, 324, 328, 332, 336, 338, 340,
  222. 350, 356, 360, 364, 369, 375, 381, 387, 393, 399,
  223. 405, 411, 421, 431, 441, 451, 461, 471, 477, 483,
  224. 486, 489, 492, 495, 501, 504, 507, 510, 513, 516,
  225. 519, 522, 525, 528, 531, 534, 537, 540, 543, 546,
  226. 549, 552, 555, 558, 561, 564, 567, 570, 572, 573,
  227. 575, 577, 580, 582, 585, 588, 590, 592, 595, 597,
  228. 599, 601, 603, 606, 609, 611, 613, 615, 617, 619,
  229. 621, 623, 625, 627, 629, 631, 633, 635, 637, 639,
  230. 641, 643, 645, 647, 649, 651, 653, 655, 657, 659
  231. };
  232. /* YYRHS -- A `-1'-separated list of the rules' RHS. */
  233. static const short int yyrhs[] =
  234. {
  235. 102, 0, -1, 117, 161, -1, 105, -1, 104, -1,
  236. 146, -1, 10, 105, -1, 10, -1, 113, -1, 106,
  237. -1, 105, 10, 106, -1, 114, -1, 107, 109, -1,
  238. 107, 109, 110, -1, 115, -1, 108, 14, -1, 116,
  239. -1, 33, -1, 34, -1, 35, -1, 36, -1, 37,
  240. -1, 38, -1, 39, -1, 40, -1, 41, -1, 42,
  241. -1, 43, -1, 44, -1, 45, -1, 137, -1, 138,
  242. 6, 7, -1, 52, 6, 133, 7, -1, 110, 111,
  243. -1, 111, -1, 21, 112, 22, -1, 117, -1, 11,
  244. 105, -1, 105, 11, 106, -1, 18, -1, 19, -1,
  245. 5, -1, -1, 6, 122, 7, -1, 126, -1, 136,
  246. -1, 6, 117, 7, -1, 133, -1, 134, -1, 119,
  247. -1, 139, 6, 120, 7, -1, 121, -1, -1, 122,
  248. 17, 121, -1, 122, -1, 161, 117, 161, -1, 124,
  249. -1, 123, 8, 124, -1, 103, -1, 125, -1, 125,
  250. 10, 105, -1, 125, 11, 105, -1, 118, -1, 125,
  251. 110, -1, 127, -1, 126, 46, 127, -1, 128, -1,
  252. 127, 47, 128, -1, 129, -1, 128, 27, 129, -1,
  253. 128, 56, 129, -1, 130, -1, 129, 161, 9, 161,
  254. 130, -1, 129, 161, 20, 161, 130, -1, 129, 161,
  255. 28, 161, 130, -1, 129, 161, 29, 161, 130, -1,
  256. 131, -1, 130, 161, 25, 161, 131, -1, 130, 161,
  257. 26, 161, 131, -1, 132, -1, 131, 161, 135, 161,
  258. 132, -1, 131, 161, 48, 161, 132, -1, 131, 161,
  259. 49, 161, 132, -1, 123, -1, 26, 132, -1, 100,
  260. -1, 3, -1, 3, 18, -1, 3, 18, 3, -1,
  261. 18, 3, -1, 24, -1, 30, 140, -1, 24, -1,
  262. 145, 13, 24, -1, 140, -1, 50, -1, 51, -1,
  263. 52, -1, 53, -1, 140, -1, 141, -1, 142, -1,
  264. 143, 13, 144, -1, 144, -1, 145, -1, 145, -1,
  265. 99, -1, 159, -1, 147, 17, 161, 146, -1, 147,
  266. -1, 148, -1, 148, 4, 5, 99, -1, 150, 149,
  267. 148, -1, 150, -1, 161, 25, 161, -1, 161, 20,
  268. 161, -1, 161, 23, 161, -1, 4, -1, 152, -1,
  269. 151, 21, 153, 161, 55, 161, 160, 161, 22, -1,
  270. 151, 63, 6, 146, 7, -1, 151, 16, 158, -1,
  271. 151, 18, 158, -1, 151, 21, 153, 22, -1, 151,
  272. 66, 6, 157, 7, -1, 151, 67, 6, 157, 7,
  273. -1, 151, 68, 6, 157, 7, -1, 151, 71, 6,
  274. 160, 7, -1, 151, 73, 6, 146, 7, -1, 151,
  275. 77, 6, 157, 7, -1, 151, 78, 6, 157, 7,
  276. -1, 151, 21, 153, 161, 27, 161, 160, 161, 22,
  277. -1, 151, 21, 153, 161, 56, 161, 160, 161, 22,
  278. -1, 151, 21, 153, 161, 57, 161, 160, 161, 22,
  279. -1, 151, 21, 153, 161, 58, 161, 160, 161, 22,
  280. -1, 151, 21, 153, 161, 59, 161, 160, 161, 22,
  281. -1, 151, 21, 153, 161, 60, 161, 160, 161, 22,
  282. -1, 151, 75, 6, 157, 7, -1, 151, 76, 6,
  283. 157, 7, -1, 151, 61, -1, 151, 62, -1, 151,
  284. 64, -1, 151, 65, -1, 151, 69, 6, 160, 7,
  285. -1, 151, 70, -1, 151, 72, -1, 151, 74, -1,
  286. 151, 81, -1, 151, 82, -1, 151, 84, -1, 151,
  287. 85, -1, 151, 95, -1, 151, 96, -1, 151, 97,
  288. -1, 151, 98, -1, 151, 79, -1, 151, 80, -1,
  289. 151, 83, -1, 151, 86, -1, 151, 87, -1, 151,
  290. 88, -1, 151, 89, -1, 151, 90, -1, 151, 91,
  291. -1, 151, 92, -1, 151, 93, -1, 151, 94, -1,
  292. 150, -1, -1, 153, -1, 156, -1, 154, 155, -1,
  293. 155, -1, 24, 8, -1, 158, 8, -1, 8, -1,
  294. 158, -1, 154, 24, -1, 24, -1, 3, -1, 99,
  295. -1, 31, -1, 99, 158, -1, 31, 158, -1, 159,
  296. -1, 33, -1, 34, -1, 35, -1, 36, -1, 37,
  297. -1, 38, -1, 39, -1, 40, -1, 41, -1, 42,
  298. -1, 43, -1, 44, -1, 45, -1, 46, -1, 47,
  299. -1, 48, -1, 49, -1, 50, -1, 51, -1, 52,
  300. -1, 53, -1, 158, -1, 100, -1, 4, -1, -1
  301. };
  302. /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  303. static const unsigned short int yyrline[] =
  304. {
  305. 0, 220, 220, 224, 225, 226, 230, 231, 232, 236,
  306. 237, 238, 242, 243, 244, 248, 249, 252, 253, 254,
  307. 255, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  308. 268, 269, 270, 274, 275, 279, 283, 287, 291, 295,
  309. 296, 300, 301, 304, 305, 308, 309, 310, 311, 312,
  310. 316, 319, 320, 323, 324, 327, 330, 331, 335, 336,
  311. 337, 338, 342, 343, 347, 348, 352, 353, 357, 358,
  312. 359, 363, 364, 365, 366, 367, 371, 372, 373, 377,
  313. 378, 379, 380, 384, 385, 389, 392, 393, 394, 395,
  314. 399, 403, 407, 408, 409, 413, 414, 415, 416, 420,
  315. 424, 425, 429, 433, 437, 441, 445, 446, 450, 451,
  316. 455, 456, 460, 461, 465, 466, 467, 468, 472, 473,
  317. 474, 475, 476, 477, 478, 479, 480, 481, 482, 483,
  318. 484, 485, 486, 487, 488, 489, 490, 491, 492, 493,
  319. 494, 495, 496, 497, 498, 499, 500, 501, 502, 503,
  320. 504, 505, 506, 507, 508, 509, 510, 511, 512, 513,
  321. 514, 515, 516, 517, 518, 519, 520, 524, 525, 529,
  322. 530, 534, 535, 539, 540, 541, 545, 549, 550, 554,
  323. 558, 559, 560, 561, 562, 566, 567, 568, 569, 570,
  324. 571, 572, 573, 574, 575, 576, 577, 578, 579, 580,
  325. 581, 582, 583, 584, 585, 586, 590, 591, 595, 596
  326. };
  327. #endif
  328. #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
  329. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  330. First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  331. static const char *const yytname[] =
  332. {
  333. "$end", "error", "$undefined", "NUMBER", "S", "AT", "LPAREN", "RPAREN",
  334. "PIPE", "LT", "SLASH", "DBLSLASH", "BANG", "COLON", "DBLCOLON", "QUERY",
  335. "HASH", "COMMA", "DOT", "DBLDOT", "GT", "LBRA", "RBRA", "TILDE", "SPLAT",
  336. "PLUS", "DASH", "EQ", "LTE", "GTE", "DOLLAR", "BSLASHLIT", "OTHER",
  337. "XANCESTOR", "XANCESTORSELF", "XATTR", "XCHILD", "XDESC", "XDESCSELF",
  338. "XFOLLOW", "XFOLLOWSIB", "XNS", "XPARENT", "XPRE", "XPRESIB", "XSELF",
  339. "XOR", "XAND", "XDIV", "XMOD", "XCOMMENT", "XTEXT", "XPI", "XNODE",
  340. "CXEQUATION", "CXOPHE", "CXOPNE", "CXOPSTARTEQ", "CXOPENDEQ",
  341. "CXOPCONTAINS", "CXOPCONTAINS2", "CXFIRST", "CXLAST", "CXNOT", "CXEVEN",
  342. "CXODD", "CXEQ", "CXGT", "CXLT", "CXCONTENT", "CXHEADER", "CXCONTAINS",
  343. "CXEMPTY", "CXHAS", "CXPARENT", "CXNTHCH", "CXNTHLASTCH", "CXNTHTYPE",
  344. "CXNTHLASTTYPE", "CXFIRSTCH", "CXLASTCH", "CXFIRSTTYPE", "CXLASTTYPE",
  345. "CXONLYCH", "CXONLYTYPE", "CXINPUT", "CXTEXT", "CXPASSWORD", "CXRADIO",
  346. "CXCHECKBOX", "CXSUBMIT", "CXIMAGE", "CXRESET", "CXBUTTON", "CXFILE",
  347. "CXENABLED", "CXDISABLED", "CXCHECKED", "CXSELECTED", "NAME", "STRING",
  348. "$accept", "Root", "LocationPath", "AbsoluteLocationPath",
  349. "RelativeLocationPath", "Step", "AxisSpecifier", "AxisName", "NodeTest",
  350. "Predicates", "Predicate", "PredicateExpr",
  351. "AbbreviatedAbsoluteLocationPath", "AbbreviatedRelativeLocationPath",
  352. "AbbreviatedStep", "AbbreviatedAxisSpecifier", "Expr", "PrimaryExpr",
  353. "FunctionCall", "Arguments", "ArgumentSet", "Argument", "UnionExpr",
  354. "PathExpr", "FilterExpr", "OrExpr", "AndExpr", "EqualityExpr",
  355. "RelationalExpr", "AdditiveExpr", "MultiplicativeExpr", "UnaryExpr",
  356. "Literal", "Number", "MultiplyOperator", "VariableReference", "NameTest",
  357. "NodeType", "FunctionName", "QName", "PrefixedName", "UnprefixedName",
  358. "Prefix", "LocalPart", "NCName", "selectors_group",
  359. "attribute_extended_selector", "selector", "combinator",
  360. "simple_selector_sequence", "possibly_empty_sequence",
  361. "simple_selector_anchor", "type_selector", "namespace_prefix",
  362. "element_name", "universal", "NumberLike", "Ident", "keyword",
  363. "StringLike", "OptS", 0
  364. };
  365. #endif
  366. /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  367. static const unsigned char yyr1[] =
  368. {
  369. 0, 101, 102, 103, 103, 103, 104, 104, 104, 105,
  370. 105, 105, 106, 106, 106, 107, 107, 108, 108, 108,
  371. 108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
  372. 109, 109, 109, 110, 110, 111, 112, 113, 114, 115,
  373. 115, 116, 116, 117, 117, 118, 118, 118, 118, 118,
  374. 119, 120, 120, 121, 121, 122, 123, 123, 124, 124,
  375. 124, 124, 125, 125, 126, 126, 127, 127, 128, 128,
  376. 128, 129, 129, 129, 129, 129, 130, 130, 130, 131,
  377. 131, 131, 131, 132, 132, 133, 134, 134, 134, 134,
  378. 135, 136, 137, 137, 137, 138, 138, 138, 138, 139,
  379. 140, 140, 141, 142, 143, 144, 145, 145, 146, 146,
  380. 147, 147, 148, 148, 149, 149, 149, 149, 150, 150,
  381. 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
  382. 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
  383. 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
  384. 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
  385. 150, 150, 150, 150, 150, 150, 150, 151, 151, 152,
  386. 152, 153, 153, 154, 154, 154, 155, 156, 156, 157,
  387. 158, 158, 158, 158, 158, 159, 159, 159, 159, 159,
  388. 159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
  389. 159, 159, 159, 159, 159, 159, 160, 160, 161, 161
  390. };
  391. /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  392. static const unsigned char yyr2[] =
  393. {
  394. 0, 2, 2, 1, 1, 1, 2, 1, 1, 1,
  395. 3, 1, 2, 3, 1, 2, 1, 1, 1, 1,
  396. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  397. 1, 3, 4, 2, 1, 3, 1, 2, 3, 1,
  398. 1, 1, 0, 3, 1, 1, 3, 1, 1, 1,
  399. 4, 1, 0, 3, 1, 3, 1, 3, 1, 1,
  400. 3, 3, 1, 2, 1, 3, 1, 3, 1, 3,
  401. 3, 1, 5, 5, 5, 5, 1, 5, 5, 1,
  402. 5, 5, 5, 1, 2, 1, 1, 2, 3, 2,
  403. 1, 2, 1, 3, 1, 1, 1, 1, 1, 1,
  404. 1, 1, 3, 1, 1, 1, 1, 1, 4, 1,
  405. 1, 4, 3, 1, 3, 3, 3, 1, 1, 9,
  406. 5, 3, 3, 4, 5, 5, 5, 5, 5, 5,
  407. 5, 9, 9, 9, 9, 9, 9, 5, 5, 2,
  408. 2, 2, 2, 5, 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, 1, 0, 1,
  411. 1, 2, 1, 2, 2, 1, 1, 2, 1, 1,
  412. 1, 1, 2, 2, 1, 1, 1, 1, 1, 1,
  413. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  414. 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
  415. };
  416. /* YYDPREC[RULE-NUM] -- Dynamic precedence of rule #RULE-NUM (0 if none). */
  417. static const unsigned char yydprec[] =
  418. {
  419. 0, 0, 0, 1, 2, 3, 0, 0, 0, 0,
  420. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  421. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  422. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  423. 0, 0, 0, 2, 1, 0, 0, 0, 0, 0,
  424. 0, 0, 0, 2, 1, 0, 0, 0, 0, 0,
  425. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  426. 0, 2, 3, 1, 3, 3, 3, 1, 2, 2,
  427. 2, 1, 2, 0, 0, 0, 0, 0, 0, 0,
  428. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  429. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  430. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  431. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  432. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  433. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  434. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  435. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  436. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  437. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  438. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  439. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  440. };
  441. /* YYMERGER[RULE-NUM] -- Index of merging function for rule #RULE-NUM. */
  442. static const unsigned char yymerger[] =
  443. {
  444. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  445. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  446. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  447. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  448. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  449. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  450. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  451. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  452. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  453. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  454. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  455. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  456. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  457. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  458. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  459. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  460. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  461. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  462. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  463. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  464. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  465. };
  466. /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
  467. doesn't specify something else to do. Zero means the default is an
  468. error. */
  469. static const unsigned char yydefact[] =
  470. {
  471. 168, 86, 41, 168, 175, 7, 42, 39, 40, 178,
  472. 168, 0, 181, 185, 186, 187, 188, 189, 190, 191,
  473. 192, 193, 194, 195, 196, 197, 198, 199, 200, 201,
  474. 202, 203, 204, 205, 180, 85, 0, 58, 4, 3,
  475. 9, 0, 0, 8, 11, 14, 16, 209, 62, 49,
  476. 83, 56, 59, 44, 64, 66, 68, 71, 76, 79,
  477. 47, 48, 45, 0, 99, 100, 101, 0, 103, 105,
  478. 5, 109, 110, 167, 0, 118, 169, 0, 172, 170,
  479. 176, 184, 87, 208, 0, 0, 168, 39, 17, 18,
  480. 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
  481. 29, 6, 37, 89, 173, 168, 84, 185, 186, 187,
  482. 188, 189, 190, 191, 192, 193, 194, 195, 196, 197,
  483. 106, 91, 107, 180, 183, 184, 182, 1, 42, 42,
  484. 92, 202, 203, 204, 205, 12, 30, 0, 94, 105,
  485. 15, 2, 168, 42, 42, 168, 63, 34, 168, 168,
  486. 168, 168, 0, 0, 0, 209, 0, 209, 0, 117,
  487. 168, 0, 0, 0, 0, 139, 140, 0, 141, 142,
  488. 0, 0, 0, 0, 144, 0, 145, 0, 146, 0,
  489. 0, 0, 0, 155, 156, 147, 148, 157, 149, 150,
  490. 158, 159, 160, 161, 162, 163, 164, 165, 166, 151,
  491. 152, 153, 154, 177, 171, 176, 174, 88, 46, 43,
  492. 209, 10, 38, 0, 13, 0, 0, 57, 60, 61,
  493. 0, 36, 33, 65, 67, 69, 70, 209, 209, 209,
  494. 209, 209, 209, 90, 209, 209, 209, 0, 51, 54,
  495. 102, 105, 168, 0, 112, 209, 209, 209, 121, 122,
  496. 0, 209, 0, 168, 0, 0, 0, 0, 0, 168,
  497. 0, 0, 0, 0, 55, 0, 31, 93, 35, 168,
  498. 168, 168, 168, 168, 168, 168, 168, 168, 50, 209,
  499. 108, 111, 115, 116, 114, 123, 0, 0, 179, 0,
  500. 0, 0, 207, 206, 0, 0, 0, 0, 0, 0,
  501. 0, 32, 72, 73, 74, 75, 77, 78, 81, 82,
  502. 80, 53, 209, 209, 209, 209, 209, 209, 209, 120,
  503. 124, 125, 126, 143, 127, 128, 137, 138, 129, 130,
  504. 0, 0, 0, 0, 0, 0, 0, 209, 209, 209,
  505. 209, 209, 209, 209, 0, 0, 0, 0, 0, 0,
  506. 0, 131, 119, 132, 133, 134, 135, 136
  507. };
  508. /* YYPDEFGOTO[NTERM-NUM]. */
  509. static const short int yydefgoto[] =
  510. {
  511. -1, 36, 37, 38, 39, 40, 41, 42, 135, 146,
  512. 147, 220, 43, 44, 45, 46, 84, 48, 49, 237,
  513. 238, 239, 50, 51, 52, 53, 54, 55, 56, 57,
  514. 58, 59, 60, 61, 236, 62, 136, 137, 63, 64,
  515. 65, 66, 67, 68, 69, 70, 71, 72, 160, 73,
  516. 74, 75, 76, 77, 78, 79, 289, 80, 125, 294,
  517. 153
  518. };
  519. /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  520. STATE-NUM. */
  521. #define YYPACT_NINF -251
  522. static const short int yypact[] =
  523. {
  524. 436, 30, -251, 338, -251, 148, 90, 49, -251, 89,
  525. 507, 2191, 2084, 92, 96, 107, 122, 123, 127, 137,
  526. 159, 161, 164, 165, 166, 188, -251, -251, -251, -251,
  527. -251, -251, -251, -251, 1784, -251, 203, -251, -251, 15,
  528. -251, 2017, 191, -251, -251, -251, -251, 202, -251, -251,
  529. 204, -251, 57, 167, 169, 23, 87, 17, 16, -251,
  530. -251, -251, -251, 211, -251, -251, -251, 205, -251, 207,
  531. -251, 217, 231, 10, 1911, -251, -251, 1987, -251, -251,
  532. 228, 56, 234, -251, 242, 246, 578, -251, -251, -251,
  533. -251, -251, -251, -251, -251, -251, -251, -251, -251, -251,
  534. -251, 15, 15, -251, -251, 649, -251, -251, -251, -251,
  535. -251, -251, -251, -251, -251, -251, -251, -251, -251, -251,
  536. -251, -251, -251, 2124, -251, -251, -251, -251, 1765, 2240,
  537. -251, 235, 248, 249, 251, 237, -251, 253, -251, 247,
  538. -251, -251, 1714, 2281, 2322, 720, 250, -251, 791, 862,
  539. 933, 1004, 241, 35, -2, 8, 2191, 202, 257, 145,
  540. 1851, 151, 2151, 2151, 1918, -251, -251, 266, -251, -251,
  541. 267, 268, 269, 271, -251, 272, -251, 273, -251, 274,
  542. 275, 285, 286, -251, -251, -251, -251, -251, -251, -251,
  543. -251, -251, -251, -251, -251, -251, -251, -251, -251, -251,
  544. -251, -251, -251, -251, -251, -251, -251, -251, -251, -251,
  545. 202, -251, -251, 163, 237, 287, 276, -251, 15, 15,
  546. 277, -251, -251, 169, 23, 210, 236, 202, 202, 202,
  547. 202, 202, 202, -251, 202, 202, 202, 288, -251, 279,
  548. -251, -251, 1851, 194, -251, 202, 202, 202, -251, -251,
  549. 289, 41, 2151, 1851, 295, 295, 295, 2054, 2054, 1851,
  550. 295, 295, 295, 295, -251, 294, -251, -251, -251, 1075,
  551. 1146, 1217, 1288, 1359, 1430, 1501, 1572, 1643, -251, 202,
  552. -251, -251, -251, -251, -251, -251, 45, 298, -251, 299,
  553. 300, 301, -251, -251, 309, 310, 311, 312, 313, 314,
  554. 315, -251, 86, 88, 94, 134, 25, 27, -251, -251,
  555. -251, -251, 202, 202, 202, 202, 202, 202, 202, -251,
  556. -251, -251, -251, -251, -251, -251, -251, -251, -251, -251,
  557. 2054, 2054, 2054, 2054, 2054, 2054, 2054, 202, 202, 202,
  558. 202, 202, 202, 202, 280, 323, 325, 328, 329, 330,
  559. 331, -251, -251, -251, -251, -251, -251, -251
  560. };
  561. /* YYPGOTO[NTERM-NUM]. */
  562. static const short int yypgoto[] =
  563. {
  564. -251, -251, -251, -251, -1, -41, -251, -251, -251, 196,
  565. -137, -251, -251, -251, -251, -251, 3, -251, -251, -251,
  566. 44, 352, -251, 190, -251, -251, 185, 209, -57, -61,
  567. -124, -9, 147, -251, -251, -251, -251, -251, -251, 0,
  568. -251, -251, -251, 214, -34, -38, -251, 201, -251, -251,
  569. -251, -251, 199, 229, -75, -251, -116, -6, 13, -250,
  570. -3
  571. };
  572. /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  573. positive, shift that token. If negative, reduce the rule which
  574. number is the opposite. If zero, do what YYDEFACT says.
  575. If YYTABLE_NINF, syntax error. */
  576. #define YYTABLE_NINF -210
  577. static const short int yytable[] =
  578. {
  579. 86, 106, 204, 47, 101, 102, 124, 139, 295, 222,
  580. -113, 121, 83, 81, 159, -52, 81, -113, -113, -113,
  581. 83, 83, 233, 81, 122, 128, 129, -113, 126, 83,
  582. -113, 83, -113, -209, -113, -113, -113, -113, -113, -113,
  583. -209, 138, -209, -209, 141, 83, 234, 235, 82, -209,
  584. 150, -209, 103, 152, 122, 154, -113, -113, -113, -113,
  585. 231, 232, -107, 285, -209, -209, -113, 143, 144, -107,
  586. 161, 205, 312, -209, -209, -209, -209, 222, 145, 151,
  587. 337, 338, 339, 340, 341, 342, 343, 211, 212, 210,
  588. 83, 83, 83, 225, 226, 2, -209, 104, 83, 81,
  589. 313, 314, 315, 316, 317, 318, -17, -209, 87, 8,
  590. -18, -209, -209, -209, -209, -209, -209, 126, 81, -209,
  591. -209, -19, 241, 88, 89, 90, 91, 92, 93, 94,
  592. 95, 96, 97, 98, 99, 100, -20, -21, 83, 290,
  593. 291, -22, 218, 219, 297, 298, 299, 300, 221, 306,
  594. 307, -23, 86, 2, 242, 81, 248, 249, 81, -209,
  595. -209, 81, 81, 81, 81, -208, 87, 8, -208, 122,
  596. -208, 245, -7, -24, 246, -25, 247, 204, -26, -27,
  597. -28, 88, 89, 90, 91, 92, 93, 94, 95, 96,
  598. 97, 98, 99, 100, -7, -7, -7, -7, -42, -42,
  599. -42, -42, -29, 127, 280, 140, 83, 264, 302, 303,
  600. 304, 305, 142, 148, 83, 287, 149, 155, 156, -209,
  601. -104, 296, 152, 152, 269, 270, 271, 272, 273, 274,
  602. -209, 275, 276, 277, 157, 158, 206, 207, -209, -209,
  603. 83, -95, 282, 283, 284, -209, 205, -42, 286, 208,
  604. 227, 293, 293, 209, -96, 213, -209, -98, 145, 215,
  605. 216, 228, 243, 35, -209, -209, 308, 309, 310, 229,
  606. 230, 145, 253, 254, 255, 256, 86, 257, 258, 259,
  607. 260, 261, 81, 81, 81, 81, 81, 81, 81, 81,
  608. 81, 262, 263, 281, 266, 278, 279, 104, 288, 268,
  609. 267, 301, 351, 154, 154, 319, 320, 321, 322, 330,
  610. 331, 332, 333, 334, 335, 336, 323, 324, 325, 326,
  611. 327, 328, 329, 311, 293, 293, 293, 293, 293, 293,
  612. 293, 214, 217, 223, 344, 345, 346, 347, 348, 349,
  613. 350, 1, 83, 2, 3, 352, 4, 353, 5, 6,
  614. 354, 355, 356, 357, -168, 85, 7, 8, 224, -168,
  615. 265, 244, 9, 251, 10, 0, 0, 0, 11, 12,
  616. 240, 13, 14, 15, 16, 17, 18, 19, 20, 21,
  617. 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
  618. 32, 33, 0, 252, 0, 0, 0, 0, 0, -168,
  619. -168, -168, -168, -168, -168, -168, -168, -168, -168, -168,
  620. -168, -168, -168, -168, -168, -168, -168, -168, -168, -168,
  621. -168, -168, -168, -168, -168, -168, -168, -168, -168, -168,
  622. -168, -168, -168, -168, -168, -168, -168, 34, 35, 1,
  623. 0, 2, 3, 0, 4, 0, 5, 6, 0, 0,
  624. 0, 0, 0, 0, 7, 8, 0, 0, 0, 0,
  625. 9, 0, 10, 0, 0, 0, 11, 12, 0, 13,
  626. 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
  627. 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
  628. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  629. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  630. 1, 0, 2, 105, 0, 4, 0, 5, 6, 0,
  631. 0, 0, 0, 0, 0, 7, 8, 0, 0, 0,
  632. 0, 9, 0, 10, 0, 34, 35, 11, 12, 0,
  633. 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
  634. 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
  635. 33, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  636. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  637. 0, 1, 0, 2, 3, 0, 4, 0, 5, 6,
  638. 0, 0, 0, 0, 0, 0, 7, 8, 0, 0,
  639. 0, 0, 9, 0, 10, 0, 34, 35, 11, 12,
  640. 0, 13, 14, 15, 16, 17, 18, 19, 20, 21,
  641. 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
  642. 32, 33, 0, 0, 0, 0, 0, 0, 0, 0,
  643. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  644. 0, 0, 1, 0, 2, 3, 0, 4, 0, 5,
  645. 6, 0, 0, 0, 0, 0, 0, 7, 8, 0,
  646. 0, 0, 0, 9, 0, 10, 0, 34, 35, 11,
  647. 12, 0, 13, 14, 15, 16, 17, 18, 19, 20,
  648. 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
  649. 31, 32, 33, 0, 0, 0, 0, 0, 0, 0,
  650. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  651. 0, 0, 0, 1, 0, 2, 3, 0, 4, 0,
  652. 5, 6, 0, 0, 0, 0, 0, 0, 7, 8,
  653. 0, 0, 0, 0, 9, 0, 10, 0, 34, 35,
  654. 11, 12, 0, 13, 14, 15, 16, 17, 18, 19,
  655. 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
  656. 30, 31, 32, 33, 0, 0, 0, 0, 0, 0,
  657. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  658. 0, 0, 0, 0, 1, 0, 2, 105, 0, 4,
  659. 0, 5, 6, 0, 0, 0, 0, 0, 0, 7,
  660. 8, 0, 0, 0, 0, 9, 0, 10, 0, 34,
  661. 35, 11, 12, 0, 13, 14, 15, 16, 17, 18,
  662. 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
  663. 29, 30, 31, 32, 33, 0, 0, 0, 0, 0,
  664. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  665. 0, 0, 0, 0, 0, 1, 0, 2, 105, 0,
  666. 4, 0, 5, 6, 0, 0, 0, 0, 0, 0,
  667. 7, 8, 0, 0, 0, 0, 9, 0, 10, 0,
  668. 34, 35, 11, 12, 0, 13, 14, 15, 16, 17,
  669. 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
  670. 28, 29, 30, 31, 32, 33, 0, 0, 0, 0,
  671. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  672. 0, 0, 0, 0, 0, 0, 1, 0, 2, 105,
  673. 0, 4, 0, 5, 6, 0, 0, 0, 0, 0,
  674. 0, 7, 8, 0, 0, 0, 0, 9, 0, 10,
  675. 0, 34, 35, 11, 12, 0, 13, 14, 15, 16,
  676. 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
  677. 27, 28, 29, 30, 31, 32, 33, 0, 0, 0,
  678. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  679. 0, 0, 0, 0, 0, 0, 0, 1, 0, 2,
  680. 105, 0, 4, 0, 5, 6, 0, 0, 0, 0,
  681. 0, 0, 7, 8, 0, 0, 0, 0, 9, 0,
  682. 10, 0, 34, 35, 11, 12, 0, 13, 14, 15,
  683. 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
  684. 26, 27, 28, 29, 30, 31, 32, 33, 0, 0,
  685. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  686. 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,
  687. 2, 105, 0, 4, 0, 5, 6, 0, 0, 0,
  688. 0, 0, 0, 7, 8, 0, 0, 0, 0, 9,
  689. 0, 10, 0, 34, 35, 11, 12, 0, 13, 14,
  690. 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  691. 25, 26, 27, 28, 29, 30, 31, 32, 33, 0,
  692. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  693. 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
  694. 0, 2, 105, 0, 4, 0, 5, 6, 0, 0,
  695. 0, 0, 0, 0, 7, 8, 0, 0, 0, 0,
  696. 9, 0, 10, 0, 34, 35, 11, 12, 0, 13,
  697. 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
  698. 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
  699. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  700. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  701. 1, 0, 2, 105, 0, 4, 0, 5, 6, 0,
  702. 0, 0, 0, 0, 0, 7, 8, 0, 0, 0,
  703. 0, 9, 0, 10, 0, 34, 35, 11, 12, 0,
  704. 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
  705. 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
  706. 33, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  707. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  708. 0, 1, 0, 2, 105, 0, 4, 0, 5, 6,
  709. 0, 0, 0, 0, 0, 0, 7, 8, 0, 0,
  710. 0, 0, 9, 0, 10, 0, 34, 35, 11, 12,
  711. 0, 13, 14, 15, 16, 17, 18, 19, 20, 21,
  712. 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
  713. 32, 33, 0, 0, 0, 0, 0, 0, 0, 0,
  714. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  715. 0, 0, 1, 0, 2, 105, 0, 4, 0, 5,
  716. 6, 0, 0, 0, 0, 0, 0, 7, 8, 0,
  717. 0, 0, 0, 9, 0, 10, 0, 34, 35, 11,
  718. 12, 0, 13, 14, 15, 16, 17, 18, 19, 20,
  719. 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
  720. 31, 32, 33, 0, 0, 0, 0, 0, 0, 0,
  721. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  722. 0, 0, 0, 1, 0, 2, 105, 0, 4, 0,
  723. 5, 6, 0, 0, 0, 0, 0, 0, 7, 8,
  724. 0, 0, 0, 0, 9, 0, 10, 0, 34, 35,
  725. 11, 12, 0, 13, 14, 15, 16, 17, 18, 19,
  726. 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
  727. 30, 31, 32, 33, 0, 0, 0, 0, 0, 0,
  728. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  729. 0, 0, 0, 0, 1, 0, 2, 105, 0, 4,
  730. 0, 5, 6, 0, 0, 0, 0, 0, 0, 7,
  731. 8, 0, 0, 0, 0, 9, 0, 10, 0, 34,
  732. 35, 11, 12, 0, 13, 14, 15, 16, 17, 18,
  733. 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
  734. 29, 30, 31, 32, 33, 0, 0, 0, 0, 0,
  735. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  736. 0, 0, 0, 0, 0, 1, 0, 2, 105, 0,
  737. 4, 0, 5, 6, 0, 0, 0, 0, 0, 0,
  738. 7, 8, 0, 0, 0, 0, 9, 0, 10, 0,
  739. 34, 35, 11, 12, 0, 13, 14, 15, 16, 17,
  740. 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
  741. 28, 29, 30, 31, 32, 33, 0, 0, 0, 0,
  742. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  743. 0, 0, 0, 0, 0, 0, 1, 0, 2, 105,
  744. 0, 4, 0, 5, 6, 0, 0, 0, 0, 0,
  745. 0, 7, 8, 0, 0, 0, 0, 9, 0, 10,
  746. 0, 34, 35, 11, 12, 0, 13, 14, 15, 16,
  747. 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
  748. 27, 28, 29, 30, 31, 32, 33, 0, 0, 0,
  749. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  750. 0, 0, 0, 0, 0, 0, 0, 1, 0, 2,
  751. 105, 0, 4, 0, 5, 6, 0, 0, 0, 0,
  752. 0, 0, 7, 8, 0, 0, 0, 0, 9, 0,
  753. 0, 0, 34, 35, 11, 12, 0, 13, 14, 15,
  754. 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
  755. 26, 27, 28, 29, 30, 31, 32, 33, 0, 0,
  756. 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  757. 0, 0, 0, 87, 8, 0, 0, 0, 0, 0,
  758. -106, 0, 0, 0, 0, 0, 0, -106, 88, 89,
  759. 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
  760. 100, 0, 0, 34, 35, 12, 0, 107, 108, 109,
  761. 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
  762. 26, 27, 28, 29, 30, 31, 32, 33, 0, 0,
  763. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  764. 0, 0, 0, 0, 0, 0, 0, 0, 0, 4,
  765. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  766. 0, 0, 0, 0, 0, 9, 0, 0, 0, 0,
  767. 0, 0, 12, 123, 107, 108, 109, 110, 111, 112,
  768. 113, 114, 115, 116, 117, 118, 119, 26, 27, 28,
  769. 29, 30, 31, 32, 33, 0, 0, 0, 0, 0,
  770. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  771. 0, 0, 0, 0, 0, 0, 4, 162, 0, 163,
  772. 0, 0, 164, 0, 0, 0, 0, 0, 0, 0,
  773. 0, 0, 250, 0, 0, 0, 0, 0, 0, 12,
  774. 123, 107, 108, 109, 110, 111, 112, 113, 114, 115,
  775. 116, 117, 118, 119, 26, 27, 28, 29, 30, 31,
  776. 32, 33, 165, 166, 167, 168, 169, 170, 171, 172,
  777. 173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
  778. 183, 184, 185, 186, 187, 188, 189, 190, 191, 192,
  779. 193, 194, 195, 196, 197, 198, 199, 200, 201, 202,
  780. 0, 203, 0, 0, 0, 0, 0, 123, 12, 0,
  781. 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
  782. 117, 118, 119, 26, 27, 28, 29, 30, 31, 32,
  783. 33, 130, 0, 0, 0, 0, 0, 0, 0, 0,
  784. 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
  785. 117, 118, 119, 26, 27, 28, 29, 131, 132, 133,
  786. 134, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  787. 0, 0, 0, 0, 0, 12, 123, 107, 108, 109,
  788. 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
  789. 26, 27, 28, 29, 30, 31, 32, 33, 0, 0,
  790. 0, 0, 0, 0, 0, 12, 120, 107, 108, 109,
  791. 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
  792. 26, 27, 28, 29, 30, 31, 32, 33, 0, 0,
  793. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  794. 0, 0, 0, 123, 292, 12, 0, 107, 108, 109,
  795. 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
  796. 26, 27, 28, 29, 30, 31, 32, 33, 0, 0,
  797. 0, 0, 12, 123, 107, 108, 109, 110, 111, 112,
  798. 113, 114, 115, 116, 117, 118, 119, 26, 27, 28,
  799. 29, 30, 31, 32, 33, 0, 0, 0, 0, 0,
  800. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  801. 0, 0, 0, 123, 107, 108, 109, 110, 111, 112,
  802. 113, 114, 115, 116, 117, 118, 119, 26, 27, 28,
  803. 29, 30, 31, 32, 33, 2, 0, 0, 0, 0,
  804. 123, 0, 0, 0, 0, 0, 0, 0, 87, 8,
  805. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  806. 0, 0, 0, 88, 89, 90, 91, 92, 93, 94,
  807. 95, 96, 97, 98, 99, 100, 2, 0, 0, 0,
  808. 120, 0, 0, 0, 0, 0, 0, 0, 0, 87,
  809. 8, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  810. 0, 0, 0, 0, 88, 89, 90, 91, 92, 93,
  811. 94, 95, 96, 97, 98, 99, 100, 2, 0, 0,
  812. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  813. 87, 8, 0, 0, 0, 0, 0, 0, 0, 0,
  814. 0, 0, 0, 0, 0, 88, 89, 90, 91, 92,
  815. 93, 94, 95, 96, 97, 98, 99, 100
  816. };
  817. /* YYCONFLP[YYPACT[STATE-NUM]] -- Pointer into YYCONFL of start of
  818. list of conflicting reductions corresponding to action entry for
  819. state STATE-NUM in yytable. 0 means no conflicts. The list in
  820. yyconfl is terminated by a rule number of 0. */
  821. static const unsigned short int yyconflp[] =
  822. {
  823. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  824. 0, 0, 0, 0, 361, 0, 0, 0, 0, 0,
  825. 355, 353, 0, 0, 0, 0, 0, 0, 0, 1315,
  826. 363, 1317, 0, 0, 0, 365, 0, 0, 0, 0,
  827. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  828. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  829. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  830. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  831. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  832. 1307, 351, 1309, 0, 0, 0, 0, 285, 1311, 0,
  833. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  834. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  835. 0, 0, 0, 259, 261, 263, 265, 267, 269, 271,
  836. 273, 275, 277, 279, 281, 283, 0, 0, 1313, 0,
  837. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  838. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  839. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  840. 0, 0, 223, 0, 0, 0, 0, 0, 0, 0,
  841. 0, 225, 227, 229, 231, 233, 235, 237, 239, 241,
  842. 243, 245, 247, 249, 251, 253, 255, 257, 0, 0,
  843. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  844. 0, 0, 0, 0, 871, 0, 0, 0, 0, 0,
  845. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  846. 0, 0, 0, 0, 357, 359, 367, 0, 0, 0,
  847. 873, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  848. 0, 0, 0, 0, 0, 525, 0, 0, 0, 0,
  849. 527, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  850. 0, 677, 0, 0, 0, 0, 0, 0, 0, 0,
  851. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  852. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  853. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  854. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  855. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  856. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  857. 0, 49, 0, 51, 53, 0, 55, 0, 57, 59,
  858. 0, 0, 0, 0, 61, 0, 63, 66, 0, 68,
  859. 0, 0, 70, 0, 73, 0, 0, 0, 75, 77,
  860. 0, 79, 82, 85, 88, 91, 94, 97, 100, 103,
  861. 106, 109, 112, 115, 118, 121, 124, 127, 130, 133,
  862. 136, 139, 0, 0, 0, 0, 0, 0, 0, 142,
  863. 144, 146, 148, 150, 152, 154, 156, 158, 160, 162,
  864. 164, 166, 168, 170, 172, 174, 176, 178, 180, 182,
  865. 184, 186, 188, 190, 192, 194, 196, 198, 200, 202,
  866. 204, 206, 208, 210, 212, 214, 216, 218, 221, 0,
  867. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  868. 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
  869. 3, 0, 0, 0, 0, 0, 0, 0, 0, 5,
  870. 7, 9, 11, 13, 15, 17, 19, 21, 23, 25,
  871. 27, 29, 31, 33, 35, 37, 39, 41, 43, 45,
  872. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  873. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  874. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  875. 0, 0, 0, 0, 0, 287, 0, 0, 0, 0,
  876. 0, 289, 0, 0, 0, 47, 0, 0, 0, 0,
  877. 291, 293, 295, 297, 299, 301, 303, 305, 307, 309,
  878. 311, 313, 315, 317, 319, 321, 323, 325, 327, 329,
  879. 331, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  880. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  881. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  882. 0, 0, 0, 0, 0, 0, 369, 0, 0, 0,
  883. 0, 0, 371, 0, 0, 0, 333, 0, 0, 0,
  884. 0, 373, 375, 377, 379, 381, 383, 385, 387, 389,
  885. 391, 393, 395, 397, 399, 401, 403, 405, 407, 409,
  886. 411, 413, 0, 0, 0, 0, 0, 0, 0, 0,
  887. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  888. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  889. 0, 0, 0, 0, 0, 0, 0, 417, 0, 0,
  890. 0, 0, 0, 419, 0, 0, 0, 415, 0, 0,
  891. 0, 0, 421, 423, 425, 427, 429, 431, 433, 435,
  892. 437, 439, 441, 443, 445, 447, 449, 451, 453, 455,
  893. 457, 459, 461, 0, 0, 0, 0, 0, 0, 0,
  894. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  895. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  896. 0, 0, 0, 0, 0, 0, 0, 0, 629, 0,
  897. 0, 0, 0, 0, 631, 0, 0, 0, 463, 0,
  898. 0, 0, 0, 633, 635, 637, 639, 641, 643, 645,
  899. 647, 649, 651, 653, 655, 657, 659, 661, 663, 665,
  900. 667, 669, 671, 673, 0, 0, 0, 0, 0, 0,
  901. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  902. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  903. 0, 0, 0, 0, 0, 0, 0, 0, 0, 679,
  904. 0, 0, 0, 0, 0, 681, 0, 0, 0, 675,
  905. 0, 0, 0, 0, 683, 685, 687, 689, 691, 693,
  906. 695, 697, 699, 701, 703, 705, 707, 709, 711, 713,
  907. 715, 717, 719, 721, 723, 0, 0, 0, 0, 0,
  908. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  909. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  910. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  911. 727, 0, 0, 0, 0, 0, 729, 0, 0, 0,
  912. 725, 0, 0, 0, 0, 731, 733, 735, 737, 739,
  913. 741, 743, 745, 747, 749, 751, 753, 755, 757, 759,
  914. 761, 763, 765, 767, 769, 771, 0, 0, 0, 0,
  915. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  916. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  917. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  918. 0, 775, 0, 0, 0, 0, 0, 777, 0, 0,
  919. 0, 773, 0, 0, 0, 0, 779, 781, 783, 785,
  920. 787, 789, 791, 793, 795, 797, 799, 801, 803, 805,
  921. 807, 809, 811, 813, 815, 817, 819, 0, 0, 0,
  922. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  923. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  924. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  925. 0, 0, 823, 0, 0, 0, 0, 0, 825, 0,
  926. 0, 0, 821, 0, 0, 0, 0, 827, 829, 831,
  927. 833, 835, 837, 839, 841, 843, 845, 847, 849, 851,
  928. 853, 855, 857, 859, 861, 863, 865, 867, 0, 0,
  929. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  930. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  931. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  932. 0, 0, 0, 875, 0, 0, 0, 0, 0, 877,
  933. 0, 0, 0, 869, 0, 0, 0, 0, 879, 881,
  934. 883, 885, 887, 889, 891, 893, 895, 897, 899, 901,
  935. 903, 905, 907, 909, 911, 913, 915, 917, 919, 0,
  936. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  937. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  938. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  939. 0, 0, 0, 0, 923, 0, 0, 0, 0, 0,
  940. 925, 0, 0, 0, 921, 0, 0, 0, 0, 927,
  941. 929, 931, 933, 935, 937, 939, 941, 943, 945, 947,
  942. 949, 951, 953, 955, 957, 959, 961, 963, 965, 967,
  943. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  944. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  945. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  946. 0, 0, 0, 0, 0, 971, 0, 0, 0, 0,
  947. 0, 973, 0, 0, 0, 969, 0, 0, 0, 0,
  948. 975, 977, 979, 981, 983, 985, 987, 989, 991, 993,
  949. 995, 997, 999, 1001, 1003, 1005, 1007, 1009, 1011, 1013,
  950. 1015, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  951. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  952. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  953. 0, 0, 0, 0, 0, 0, 1019, 0, 0, 0,
  954. 0, 0, 1021, 0, 0, 0, 1017, 0, 0, 0,
  955. 0, 1023, 1025, 1027, 1029, 1031, 1033, 1035, 1037, 1039,
  956. 1041, 1043, 1045, 1047, 1049, 1051, 1053, 1055, 1057, 1059,
  957. 1061, 1063, 0, 0, 0, 0, 0, 0, 0, 0,
  958. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  959. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  960. 0, 0, 0, 0, 0, 0, 0, 1067, 0, 0,
  961. 0, 0, 0, 1069, 0, 0, 0, 1065, 0, 0,
  962. 0, 0, 1071, 1073, 1075, 1077, 1079, 1081, 1083, 1085,
  963. 1087, 1089, 1091, 1093, 1095, 1097, 1099, 1101, 1103, 1105,
  964. 1107, 1109, 1111, 0, 0, 0, 0, 0, 0, 0,
  965. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  966. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  967. 0, 0, 0, 0, 0, 0, 0, 0, 1115, 0,
  968. 0, 0, 0, 0, 1117, 0, 0, 0, 1113, 0,
  969. 0, 0, 0, 1119, 1121, 1123, 1125, 1127, 1129, 1131,
  970. 1133, 1135, 1137, 1139, 1141, 1143, 1145, 1147, 1149, 1151,
  971. 1153, 1155, 1157, 1159, 0, 0, 0, 0, 0, 0,
  972. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  973. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  974. 0, 0, 0, 0, 0, 0, 0, 0, 0, 1163,
  975. 0, 0, 0, 0, 0, 1165, 0, 0, 0, 1161,
  976. 0, 0, 0, 0, 1167, 1169, 1171, 1173, 1175, 1177,
  977. 1179, 1181, 1183, 1185, 1187, 1189, 1191, 1193, 1195, 1197,
  978. 1199, 1201, 1203, 1205, 1207, 0, 0, 0, 0, 0,
  979. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  980. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  981. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  982. 1211, 0, 0, 0, 0, 0, 1213, 0, 0, 0,
  983. 1209, 0, 0, 0, 0, 1215, 1217, 1219, 1221, 1223,
  984. 1225, 1227, 1229, 1231, 1233, 1235, 1237, 1239, 1241, 1243,
  985. 1245, 1247, 1249, 1251, 1253, 1255, 0, 0, 0, 0,
  986. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  987. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  988. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  989. 0, 1259, 0, 0, 0, 0, 0, 1261, 0, 0,
  990. 0, 1257, 0, 0, 0, 0, 1263, 1265, 1267, 1269,
  991. 1271, 1273, 1275, 1277, 1279, 1281, 1283, 1285, 1287, 1289,
  992. 1291, 1293, 1295, 1297, 1299, 1301, 1303, 0, 0, 0,
  993. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  994. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  995. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  996. 0, 0, 529, 0, 0, 0, 0, 0, 531, 0,
  997. 0, 0, 1305, 0, 0, 0, 0, 533, 535, 537,
  998. 539, 541, 543, 545, 547, 549, 551, 553, 555, 557,
  999. 559, 561, 563, 565, 567, 569, 571, 573, 0, 0,
  1000. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1001. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1002. 0, 0, 0, 0, 0, 0, 0, 0, 473, 475,
  1003. 477, 479, 481, 483, 485, 487, 489, 491, 493, 495,
  1004. 497, 0, 0, 575, 0, 0, 0, 0, 0, 0,
  1005. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1006. 343, 345, 347, 349, 0, 0, 0, 0, 0, 0,
  1007. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1008. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1009. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1010. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1011. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1012. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1013. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1014. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1015. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1016. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1017. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1018. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1019. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1020. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1021. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1022. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1023. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1024. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1025. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1026. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1027. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1028. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1029. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1030. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1031. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1032. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1033. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1034. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1035. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1036. 335, 337, 339, 341, 0, 0, 0, 0, 0, 0,
  1037. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1038. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1039. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1040. 465, 467, 469, 471, 0, 0, 0, 0, 0, 0,
  1041. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1042. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1043. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1044. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1045. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1046. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1047. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1048. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1049. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1050. 0, 0, 0, 499, 501, 503, 505, 507, 509, 511,
  1051. 513, 515, 517, 519, 521, 523, 0, 0, 0, 0,
  1052. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1053. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1054. 0, 0, 0, 0, 577, 579, 581, 583, 585, 587,
  1055. 589, 591, 593, 595, 597, 599, 601, 0, 0, 0,
  1056. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1057. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1058. 0, 0, 0, 0, 0, 603, 605, 607, 609, 611,
  1059. 613, 615, 617, 619, 621, 623, 625, 627
  1060. };
  1061. /* YYCONFL[I] -- lists of conflicting rule numbers, each terminated by
  1062. 0, pointed into by YYCONFLP. */
  1063. static const short int yyconfl[] =
  1064. {
  1065. 0, 168, 0, 42, 0, 42, 0, 42, 0, 42,
  1066. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1067. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1068. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1069. 0, 42, 0, 42, 0, 42, 0, 42, 0, 209,
  1070. 0, 209, 0, 209, 0, 209, 0, 209, 0, 209,
  1071. 0, 209, 0, 168, 209, 0, 209, 0, 209, 0,
  1072. 42, 209, 0, 209, 0, 209, 0, 209, 0, 42,
  1073. 209, 0, 42, 209, 0, 42, 209, 0, 42, 209,
  1074. 0, 42, 209, 0, 42, 209, 0, 42, 209, 0,
  1075. 42, 209, 0, 42, 209, 0, 42, 209, 0, 42,
  1076. 209, 0, 42, 209, 0, 42, 209, 0, 42, 209,
  1077. 0, 42, 209, 0, 42, 209, 0, 42, 209, 0,
  1078. 42, 209, 0, 42, 209, 0, 42, 209, 0, 42,
  1079. 209, 0, 209, 0, 209, 0, 209, 0, 209, 0,
  1080. 209, 0, 209, 0, 209, 0, 209, 0, 209, 0,
  1081. 209, 0, 209, 0, 209, 0, 209, 0, 209, 0,
  1082. 209, 0, 209, 0, 209, 0, 209, 0, 209, 0,
  1083. 209, 0, 209, 0, 209, 0, 209, 0, 209, 0,
  1084. 209, 0, 209, 0, 209, 0, 209, 0, 209, 0,
  1085. 209, 0, 209, 0, 209, 0, 209, 0, 209, 0,
  1086. 209, 0, 209, 0, 209, 0, 209, 0, 42, 209,
  1087. 0, 209, 0, 42, 0, 42, 0, 42, 0, 42,
  1088. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1089. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1090. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1091. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1092. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1093. 0, 42, 0, 42, 0, 178, 0, 168, 0, 42,
  1094. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1095. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1096. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1097. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1098. 0, 42, 0, 42, 0, 181, 0, 181, 0, 181,
  1099. 0, 181, 0, 180, 0, 180, 0, 180, 0, 180,
  1100. 0, 68, 0, 71, 0, 76, 0, 109, 0, 110,
  1101. 0, 113, 0, 209, 0, 209, 0, 176, 0, 168,
  1102. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1103. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1104. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1105. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1106. 0, 42, 0, 42, 0, 42, 0, 168, 0, 42,
  1107. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1108. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1109. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1110. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1111. 0, 42, 0, 42, 0, 180, 0, 180, 0, 180,
  1112. 0, 180, 0, 42, 0, 42, 0, 42, 0, 42,
  1113. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1114. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1115. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1116. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1117. 0, 42, 0, 42, 0, 97, 0, 104, 0, 168,
  1118. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1119. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1120. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1121. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1122. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1123. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1124. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1125. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1126. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1127. 0, 42, 0, 42, 0, 42, 0, 42, 0, 168,
  1128. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1129. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1130. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1131. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1132. 0, 42, 0, 42, 0, 42, 0, 63, 0, 168,
  1133. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1134. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1135. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1136. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1137. 0, 42, 0, 42, 0, 42, 0, 168, 0, 42,
  1138. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1139. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1140. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1141. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1142. 0, 42, 0, 42, 0, 168, 0, 42, 0, 42,
  1143. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1144. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1145. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1146. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1147. 0, 42, 0, 168, 0, 42, 0, 42, 0, 42,
  1148. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1149. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1150. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1151. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1152. 0, 69, 0, 70, 0, 168, 0, 42, 0, 42,
  1153. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1154. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1155. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1156. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1157. 0, 42, 0, 168, 0, 42, 0, 42, 0, 42,
  1158. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1159. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1160. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1161. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1162. 0, 168, 0, 42, 0, 42, 0, 42, 0, 42,
  1163. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1164. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1165. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1166. 0, 42, 0, 42, 0, 42, 0, 42, 0, 168,
  1167. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1168. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1169. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1170. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1171. 0, 42, 0, 42, 0, 42, 0, 168, 0, 42,
  1172. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1173. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1174. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1175. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1176. 0, 42, 0, 42, 0, 168, 0, 42, 0, 42,
  1177. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1178. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1179. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1180. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1181. 0, 42, 0, 168, 0, 42, 0, 42, 0, 42,
  1182. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1183. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1184. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1185. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1186. 0, 168, 0, 42, 0, 42, 0, 42, 0, 42,
  1187. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1188. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1189. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1190. 0, 42, 0, 42, 0, 42, 0, 42, 0, 168,
  1191. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1192. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1193. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1194. 0, 42, 0, 42, 0, 42, 0, 42, 0, 42,
  1195. 0, 42, 0, 42, 0, 42, 0, 72, 0, 73,
  1196. 0, 74, 0, 75, 0, 77, 0, 78, 0
  1197. };
  1198. static const short int yycheck[] =
  1199. {
  1200. 3, 10, 77, 0, 5, 6, 12, 41, 258, 146,
  1201. 0, 11, 4, 0, 4, 7, 3, 7, 8, 9,
  1202. 4, 4, 24, 10, 11, 10, 11, 17, 34, 4,
  1203. 20, 4, 22, 23, 24, 25, 26, 27, 28, 29,
  1204. 24, 41, 25, 26, 47, 4, 48, 49, 18, 24,
  1205. 27, 24, 3, 56, 41, 58, 46, 47, 48, 49,
  1206. 25, 26, 6, 22, 48, 49, 56, 10, 11, 13,
  1207. 73, 77, 27, 48, 49, 48, 49, 214, 21, 56,
  1208. 330, 331, 332, 333, 334, 335, 336, 128, 129, 86,
  1209. 4, 4, 4, 150, 151, 5, 9, 8, 4, 86,
  1210. 55, 56, 57, 58, 59, 60, 14, 20, 18, 19,
  1211. 14, 25, 26, 25, 26, 28, 29, 123, 105, 25,
  1212. 26, 14, 156, 33, 34, 35, 36, 37, 38, 39,
  1213. 40, 41, 42, 43, 44, 45, 14, 14, 4, 255,
  1214. 256, 14, 143, 144, 260, 261, 262, 263, 145, 273,
  1215. 274, 14, 155, 5, 157, 142, 162, 163, 145, 25,
  1216. 26, 148, 149, 150, 151, 20, 18, 19, 23, 156,
  1217. 25, 20, 24, 14, 23, 14, 25, 252, 14, 14,
  1218. 14, 33, 34, 35, 36, 37, 38, 39, 40, 41,
  1219. 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
  1220. 52, 53, 14, 0, 242, 14, 4, 210, 269, 270,
  1221. 271, 272, 8, 46, 4, 253, 47, 6, 13, 9,
  1222. 13, 259, 225, 226, 227, 228, 229, 230, 231, 232,
  1223. 20, 234, 235, 236, 17, 4, 8, 3, 28, 29,
  1224. 4, 6, 245, 246, 247, 9, 252, 99, 251, 7,
  1225. 9, 257, 258, 7, 6, 6, 20, 6, 21, 6,
  1226. 13, 20, 5, 100, 28, 29, 275, 276, 277, 28,
  1227. 29, 21, 6, 6, 6, 6, 279, 6, 6, 6,
  1228. 6, 6, 269, 270, 271, 272, 273, 274, 275, 276,
  1229. 277, 6, 6, 99, 7, 7, 17, 8, 3, 22,
  1230. 24, 7, 22, 306, 307, 7, 7, 7, 7, 312,
  1231. 313, 314, 315, 316, 317, 318, 7, 7, 7, 7,
  1232. 7, 7, 7, 279, 330, 331, 332, 333, 334, 335,
  1233. 336, 135, 142, 148, 337, 338, 339, 340, 341, 342,
  1234. 343, 3, 4, 5, 6, 22, 8, 22, 10, 11,
  1235. 22, 22, 22, 22, 16, 3, 18, 19, 149, 21,
  1236. 213, 160, 24, 164, 26, -1, -1, -1, 30, 31,
  1237. 156, 33, 34, 35, 36, 37, 38, 39, 40, 41,
  1238. 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
  1239. 52, 53, -1, 164, -1, -1, -1, -1, -1, 61,
  1240. 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
  1241. 72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
  1242. 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
  1243. 92, 93, 94, 95, 96, 97, 98, 99, 100, 3,
  1244. -1, 5, 6, -1, 8, -1, 10, 11, -1, -1,
  1245. -1, -1, -1, -1, 18, 19, -1, -1, -1, -1,
  1246. 24, -1, 26, -1, -1, -1, 30, 31, -1, 33,
  1247. 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
  1248. 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
  1249. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1250. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1251. 3, -1, 5, 6, -1, 8, -1, 10, 11, -1,
  1252. -1, -1, -1, -1, -1, 18, 19, -1, -1, -1,
  1253. -1, 24, -1, 26, -1, 99, 100, 30, 31, -1,
  1254. 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
  1255. 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
  1256. 53, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1257. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1258. -1, 3, -1, 5, 6, -1, 8, -1, 10, 11,
  1259. -1, -1, -1, -1, -1, -1, 18, 19, -1, -1,
  1260. -1, -1, 24, -1, 26, -1, 99, 100, 30, 31,
  1261. -1, 33, 34, 35, 36, 37, 38, 39, 40, 41,
  1262. 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
  1263. 52, 53, -1, -1, -1, -1, -1, -1, -1, -1,
  1264. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1265. -1, -1, 3, -1, 5, 6, -1, 8, -1, 10,
  1266. 11, -1, -1, -1, -1, -1, -1, 18, 19, -1,
  1267. -1, -1, -1, 24, -1, 26, -1, 99, 100, 30,
  1268. 31, -1, 33, 34, 35, 36, 37, 38, 39, 40,
  1269. 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
  1270. 51, 52, 53, -1, -1, -1, -1, -1, -1, -1,
  1271. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1272. -1, -1, -1, 3, -1, 5, 6, -1, 8, -1,
  1273. 10, 11, -1, -1, -1, -1, -1, -1, 18, 19,
  1274. -1, -1, -1, -1, 24, -1, 26, -1, 99, 100,
  1275. 30, 31, -1, 33, 34, 35, 36, 37, 38, 39,
  1276. 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
  1277. 50, 51, 52, 53, -1, -1, -1, -1, -1, -1,
  1278. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1279. -1, -1, -1, -1, 3, -1, 5, 6, -1, 8,
  1280. -1, 10, 11, -1, -1, -1, -1, -1, -1, 18,
  1281. 19, -1, -1, -1, -1, 24, -1, 26, -1, 99,
  1282. 100, 30, 31, -1, 33, 34, 35, 36, 37, 38,
  1283. 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
  1284. 49, 50, 51, 52, 53, -1, -1, -1, -1, -1,
  1285. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1286. -1, -1, -1, -1, -1, 3, -1, 5, 6, -1,
  1287. 8, -1, 10, 11, -1, -1, -1, -1, -1, -1,
  1288. 18, 19, -1, -1, -1, -1, 24, -1, 26, -1,
  1289. 99, 100, 30, 31, -1, 33, 34, 35, 36, 37,
  1290. 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
  1291. 48, 49, 50, 51, 52, 53, -1, -1, -1, -1,
  1292. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1293. -1, -1, -1, -1, -1, -1, 3, -1, 5, 6,
  1294. -1, 8, -1, 10, 11, -1, -1, -1, -1, -1,
  1295. -1, 18, 19, -1, -1, -1, -1, 24, -1, 26,
  1296. -1, 99, 100, 30, 31, -1, 33, 34, 35, 36,
  1297. 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
  1298. 47, 48, 49, 50, 51, 52, 53, -1, -1, -1,
  1299. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1300. -1, -1, -1, -1, -1, -1, -1, 3, -1, 5,
  1301. 6, -1, 8, -1, 10, 11, -1, -1, -1, -1,
  1302. -1, -1, 18, 19, -1, -1, -1, -1, 24, -1,
  1303. 26, -1, 99, 100, 30, 31, -1, 33, 34, 35,
  1304. 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  1305. 46, 47, 48, 49, 50, 51, 52, 53, -1, -1,
  1306. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1307. -1, -1, -1, -1, -1, -1, -1, -1, 3, -1,
  1308. 5, 6, -1, 8, -1, 10, 11, -1, -1, -1,
  1309. -1, -1, -1, 18, 19, -1, -1, -1, -1, 24,
  1310. -1, 26, -1, 99, 100, 30, 31, -1, 33, 34,
  1311. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  1312. 45, 46, 47, 48, 49, 50, 51, 52, 53, -1,
  1313. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1314. -1, -1, -1, -1, -1, -1, -1, -1, -1, 3,
  1315. -1, 5, 6, -1, 8, -1, 10, 11, -1, -1,
  1316. -1, -1, -1, -1, 18, 19, -1, -1, -1, -1,
  1317. 24, -1, 26, -1, 99, 100, 30, 31, -1, 33,
  1318. 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
  1319. 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
  1320. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1321. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1322. 3, -1, 5, 6, -1, 8, -1, 10, 11, -1,
  1323. -1, -1, -1, -1, -1, 18, 19, -1, -1, -1,
  1324. -1, 24, -1, 26, -1, 99, 100, 30, 31, -1,
  1325. 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
  1326. 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
  1327. 53, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1328. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1329. -1, 3, -1, 5, 6, -1, 8, -1, 10, 11,
  1330. -1, -1, -1, -1, -1, -1, 18, 19, -1, -1,
  1331. -1, -1, 24, -1, 26, -1, 99, 100, 30, 31,
  1332. -1, 33, 34, 35, 36, 37, 38, 39, 40, 41,
  1333. 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
  1334. 52, 53, -1, -1, -1, -1, -1, -1, -1, -1,
  1335. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1336. -1, -1, 3, -1, 5, 6, -1, 8, -1, 10,
  1337. 11, -1, -1, -1, -1, -1, -1, 18, 19, -1,
  1338. -1, -1, -1, 24, -1, 26, -1, 99, 100, 30,
  1339. 31, -1, 33, 34, 35, 36, 37, 38, 39, 40,
  1340. 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
  1341. 51, 52, 53, -1, -1, -1, -1, -1, -1, -1,
  1342. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1343. -1, -1, -1, 3, -1, 5, 6, -1, 8, -1,
  1344. 10, 11, -1, -1, -1, -1, -1, -1, 18, 19,
  1345. -1, -1, -1, -1, 24, -1, 26, -1, 99, 100,
  1346. 30, 31, -1, 33, 34, 35, 36, 37, 38, 39,
  1347. 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
  1348. 50, 51, 52, 53, -1, -1, -1, -1, -1, -1,
  1349. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1350. -1, -1, -1, -1, 3, -1, 5, 6, -1, 8,
  1351. -1, 10, 11, -1, -1, -1, -1, -1, -1, 18,
  1352. 19, -1, -1, -1, -1, 24, -1, 26, -1, 99,
  1353. 100, 30, 31, -1, 33, 34, 35, 36, 37, 38,
  1354. 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
  1355. 49, 50, 51, 52, 53, -1, -1, -1, -1, -1,
  1356. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1357. -1, -1, -1, -1, -1, 3, -1, 5, 6, -1,
  1358. 8, -1, 10, 11, -1, -1, -1, -1, -1, -1,
  1359. 18, 19, -1, -1, -1, -1, 24, -1, 26, -1,
  1360. 99, 100, 30, 31, -1, 33, 34, 35, 36, 37,
  1361. 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
  1362. 48, 49, 50, 51, 52, 53, -1, -1, -1, -1,
  1363. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1364. -1, -1, -1, -1, -1, -1, 3, -1, 5, 6,
  1365. -1, 8, -1, 10, 11, -1, -1, -1, -1, -1,
  1366. -1, 18, 19, -1, -1, -1, -1, 24, -1, 26,
  1367. -1, 99, 100, 30, 31, -1, 33, 34, 35, 36,
  1368. 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
  1369. 47, 48, 49, 50, 51, 52, 53, -1, -1, -1,
  1370. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1371. -1, -1, -1, -1, -1, -1, -1, 3, -1, 5,
  1372. 6, -1, 8, -1, 10, 11, -1, -1, -1, -1,
  1373. -1, -1, 18, 19, -1, -1, -1, -1, 24, -1,
  1374. -1, -1, 99, 100, 30, 31, -1, 33, 34, 35,
  1375. 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  1376. 46, 47, 48, 49, 50, 51, 52, 53, -1, -1,
  1377. 5, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1378. -1, -1, -1, 18, 19, -1, -1, -1, -1, -1,
  1379. 6, -1, -1, -1, -1, -1, -1, 13, 33, 34,
  1380. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  1381. 45, -1, -1, 99, 100, 31, -1, 33, 34, 35,
  1382. 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  1383. 46, 47, 48, 49, 50, 51, 52, 53, -1, -1,
  1384. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1385. -1, -1, -1, -1, -1, -1, -1, -1, -1, 8,
  1386. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1387. -1, -1, -1, -1, -1, 24, -1, -1, -1, -1,
  1388. -1, -1, 31, 99, 33, 34, 35, 36, 37, 38,
  1389. 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
  1390. 49, 50, 51, 52, 53, -1, -1, -1, -1, -1,
  1391. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1392. -1, -1, -1, -1, -1, -1, 8, 16, -1, 18,
  1393. -1, -1, 21, -1, -1, -1, -1, -1, -1, -1,
  1394. -1, -1, 24, -1, -1, -1, -1, -1, -1, 31,
  1395. 99, 33, 34, 35, 36, 37, 38, 39, 40, 41,
  1396. 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
  1397. 52, 53, 61, 62, 63, 64, 65, 66, 67, 68,
  1398. 69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
  1399. 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
  1400. 89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
  1401. -1, 24, -1, -1, -1, -1, -1, 99, 31, -1,
  1402. 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
  1403. 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
  1404. 53, 24, -1, -1, -1, -1, -1, -1, -1, -1,
  1405. 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
  1406. 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
  1407. 53, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1408. -1, -1, -1, -1, -1, 31, 99, 33, 34, 35,
  1409. 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  1410. 46, 47, 48, 49, 50, 51, 52, 53, -1, -1,
  1411. -1, -1, -1, -1, -1, 31, 99, 33, 34, 35,
  1412. 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  1413. 46, 47, 48, 49, 50, 51, 52, 53, -1, -1,
  1414. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1415. -1, -1, -1, 99, 100, 31, -1, 33, 34, 35,
  1416. 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  1417. 46, 47, 48, 49, 50, 51, 52, 53, -1, -1,
  1418. -1, -1, 31, 99, 33, 34, 35, 36, 37, 38,
  1419. 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
  1420. 49, 50, 51, 52, 53, -1, -1, -1, -1, -1,
  1421. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1422. -1, -1, -1, 99, 33, 34, 35, 36, 37, 38,
  1423. 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
  1424. 49, 50, 51, 52, 53, 5, -1, -1, -1, -1,
  1425. 99, -1, -1, -1, -1, -1, -1, -1, 18, 19,
  1426. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1427. -1, -1, -1, 33, 34, 35, 36, 37, 38, 39,
  1428. 40, 41, 42, 43, 44, 45, 5, -1, -1, -1,
  1429. 99, -1, -1, -1, -1, -1, -1, -1, -1, 18,
  1430. 19, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1431. -1, -1, -1, -1, 33, 34, 35, 36, 37, 38,
  1432. 39, 40, 41, 42, 43, 44, 45, 5, -1, -1,
  1433. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1434. 18, 19, -1, -1, -1, -1, -1, -1, -1, -1,
  1435. -1, -1, -1, -1, -1, 33, 34, 35, 36, 37,
  1436. 38, 39, 40, 41, 42, 43, 44, 45
  1437. };
  1438. /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  1439. symbol of state STATE-NUM. */
  1440. static const unsigned char yystos[] =
  1441. {
  1442. 0, 3, 5, 6, 8, 10, 11, 18, 19, 24,
  1443. 26, 30, 31, 33, 34, 35, 36, 37, 38, 39,
  1444. 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
  1445. 50, 51, 52, 53, 99, 100, 102, 103, 104, 105,
  1446. 106, 107, 108, 113, 114, 115, 116, 117, 118, 119,
  1447. 123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
  1448. 133, 134, 136, 139, 140, 141, 142, 143, 144, 145,
  1449. 146, 147, 148, 150, 151, 152, 153, 154, 155, 156,
  1450. 158, 159, 18, 4, 117, 122, 161, 18, 33, 34,
  1451. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  1452. 45, 105, 105, 3, 8, 6, 132, 33, 34, 35,
  1453. 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  1454. 99, 140, 159, 99, 158, 159, 158, 0, 10, 11,
  1455. 24, 50, 51, 52, 53, 109, 137, 138, 140, 145,
  1456. 14, 161, 8, 10, 11, 21, 110, 111, 46, 47,
  1457. 27, 56, 161, 161, 161, 6, 13, 17, 4, 4,
  1458. 149, 161, 16, 18, 21, 61, 62, 63, 64, 65,
  1459. 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
  1460. 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
  1461. 86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
  1462. 96, 97, 98, 24, 155, 158, 8, 3, 7, 7,
  1463. 117, 106, 106, 6, 110, 6, 13, 124, 105, 105,
  1464. 112, 117, 111, 127, 128, 129, 129, 9, 20, 28,
  1465. 29, 25, 26, 24, 48, 49, 135, 120, 121, 122,
  1466. 144, 145, 161, 5, 148, 20, 23, 25, 158, 158,
  1467. 24, 153, 154, 6, 6, 6, 6, 6, 6, 6,
  1468. 6, 6, 6, 6, 161, 133, 7, 24, 22, 161,
  1469. 161, 161, 161, 161, 161, 161, 161, 161, 7, 17,
  1470. 146, 99, 161, 161, 161, 22, 161, 146, 3, 157,
  1471. 157, 157, 100, 158, 160, 160, 146, 157, 157, 157,
  1472. 157, 7, 130, 130, 130, 130, 131, 131, 132, 132,
  1473. 132, 121, 27, 55, 56, 57, 58, 59, 60, 7,
  1474. 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
  1475. 161, 161, 161, 161, 161, 161, 161, 160, 160, 160,
  1476. 160, 160, 160, 160, 161, 161, 161, 161, 161, 161,
  1477. 161, 22, 22, 22, 22, 22, 22, 22
  1478. };
  1479. /* Prevent warning if -Wmissing-prototypes. */
  1480. int yyparse (void);
  1481. /* Error token number */
  1482. #define YYTERROR 1
  1483. /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
  1484. If N is 0, then set CURRENT to the empty location which ends
  1485. the previous symbol: RHS[0] (always defined). */
  1486. #ifndef YYLLOC_DEFAULT
  1487. # define YYLLOC_DEFAULT(Current, Rhs, N) ((void) 0)
  1488. #endif
  1489. #ifndef YY_LOCATION_PRINT
  1490. # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
  1491. #endif
  1492. /* YYLEX -- calling `yylex' with the right arguments. */
  1493. #define YYLEX yylex ()
  1494. YYSTYPE yylval;
  1495. YYLTYPE yylloc;
  1496. int yynerrs;
  1497. int yychar;
  1498. static const int YYEOF = 0;
  1499. static const int YYEMPTY = -2;
  1500. typedef enum { yyok, yyaccept, yyabort, yyerr } YYRESULTTAG;
  1501. #define YYCHK(YYE) \
  1502. do { YYRESULTTAG yyflag = YYE; if (yyflag != yyok) return yyflag; } \
  1503. while (YYID (0))
  1504. #if YYDEBUG
  1505. # ifndef YYFPRINTF
  1506. # define YYFPRINTF fprintf
  1507. # endif
  1508. # define YYDPRINTF(Args) \
  1509. do { \
  1510. if (yydebug) \
  1511. YYFPRINTF Args; \
  1512. } while (YYID (0))
  1513. /*--------------------------------.
  1514. | Print this symbol on YYOUTPUT. |
  1515. `--------------------------------*/
  1516. /*ARGSUSED*/
  1517. static void
  1518. yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
  1519. {
  1520. if (!yyvaluep)
  1521. return;
  1522. # ifdef YYPRINT
  1523. if (yytype < YYNTOKENS)
  1524. YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  1525. # else
  1526. YYUSE (yyoutput);
  1527. # endif
  1528. switch (yytype)
  1529. {
  1530. default:
  1531. break;
  1532. }
  1533. }
  1534. /*--------------------------------.
  1535. | Print this symbol on YYOUTPUT. |
  1536. `--------------------------------*/
  1537. static void
  1538. yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
  1539. {
  1540. if (yytype < YYNTOKENS)
  1541. YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  1542. else
  1543. YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  1544. yy_symbol_value_print (yyoutput, yytype, yyvaluep);
  1545. YYFPRINTF (yyoutput, ")");
  1546. }
  1547. # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
  1548. do { \
  1549. if (yydebug) \
  1550. { \
  1551. YYFPRINTF (stderr, "%s ", Title); \
  1552. yy_symbol_print (stderr, Type, \
  1553. Value); \
  1554. YYFPRINTF (stderr, "\n"); \
  1555. } \
  1556. } while (YYID (0))
  1557. /* Nonzero means print parse trace. It is left uninitialized so that
  1558. multiple parsers can coexist. */
  1559. int yydebug;
  1560. #else /* !YYDEBUG */
  1561. # define YYDPRINTF(Args)
  1562. # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
  1563. #endif /* !YYDEBUG */
  1564. /* YYINITDEPTH -- initial size of the parser's stacks. */
  1565. #ifndef YYINITDEPTH
  1566. # define YYINITDEPTH 200
  1567. #endif
  1568. /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  1569. if the built-in stack extension method is used).
  1570. Do not make this value too large; the results are undefined if
  1571. SIZE_MAX < YYMAXDEPTH * sizeof (GLRStackItem)
  1572. evaluated with infinite-precision integer arithmetic. */
  1573. #ifndef YYMAXDEPTH
  1574. # define YYMAXDEPTH 10000
  1575. #endif
  1576. /* Minimum number of free items on the stack allowed after an
  1577. allocation. This is to allow allocation and initialization
  1578. to be completed by functions that call yyexpandGLRStack before the
  1579. stack is expanded, thus insuring that all necessary pointers get
  1580. properly redirected to new data. */
  1581. #define YYHEADROOM 2
  1582. #ifndef YYSTACKEXPANDABLE
  1583. # if (! defined __cplusplus \
  1584. || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))
  1585. # define YYSTACKEXPANDABLE 1
  1586. # else
  1587. # define YYSTACKEXPANDABLE 0
  1588. # endif
  1589. #endif
  1590. #if YYSTACKEXPANDABLE
  1591. # define YY_RESERVE_GLRSTACK(Yystack) \
  1592. do { \
  1593. if (Yystack->yyspaceLeft < YYHEADROOM) \
  1594. yyexpandGLRStack (Yystack); \
  1595. } while (YYID (0))
  1596. #else
  1597. # define YY_RESERVE_GLRSTACK(Yystack) \
  1598. do { \
  1599. if (Yystack->yyspaceLeft < YYHEADROOM) \
  1600. yyMemoryExhausted (Yystack); \
  1601. } while (YYID (0))
  1602. #endif
  1603. #if YYERROR_VERBOSE
  1604. # ifndef yystpcpy
  1605. # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
  1606. # define yystpcpy stpcpy
  1607. # else
  1608. /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  1609. YYDEST. */
  1610. static char *
  1611. yystpcpy (char *yydest, const char *yysrc)
  1612. {
  1613. char *yyd = yydest;
  1614. const char *yys = yysrc;
  1615. while ((*yyd++ = *yys++) != '\0')
  1616. continue;
  1617. return yyd - 1;
  1618. }
  1619. # endif
  1620. # endif
  1621. # ifndef yytnamerr
  1622. /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
  1623. quotes and backslashes, so that it's suitable for yyerror. The
  1624. heuristic is that double-quoting is unnecessary unless the string
  1625. contains an apostrophe, a comma, or backslash (other than
  1626. backslash-backslash). YYSTR is taken from yytname. If YYRES is
  1627. null, do not copy; instead, return the length of what the result
  1628. would have been. */
  1629. static size_t
  1630. yytnamerr (char *yyres, const char *yystr)
  1631. {
  1632. if (*yystr == '"')
  1633. {
  1634. size_t yyn = 0;
  1635. char const *yyp = yystr;
  1636. for (;;)
  1637. switch (*++yyp)
  1638. {
  1639. case '\'':
  1640. case ',':
  1641. goto do_not_strip_quotes;
  1642. case '\\':
  1643. if (*++yyp != '\\')
  1644. goto do_not_strip_quotes;
  1645. /* Fall through. */
  1646. default:
  1647. if (yyres)
  1648. yyres[yyn] = *yyp;
  1649. yyn++;
  1650. break;
  1651. case '"':
  1652. if (yyres)
  1653. yyres[yyn] = '\0';
  1654. return yyn;
  1655. }
  1656. do_not_strip_quotes: ;
  1657. }
  1658. if (! yyres)
  1659. return strlen (yystr);
  1660. return yystpcpy (yyres, yystr) - yyres;
  1661. }
  1662. # endif
  1663. #endif /* !YYERROR_VERBOSE */
  1664. /** State numbers, as in LALR(1) machine */
  1665. typedef int yyStateNum;
  1666. /** Rule numbers, as in LALR(1) machine */
  1667. typedef int yyRuleNum;
  1668. /** Grammar symbol */
  1669. typedef short int yySymbol;
  1670. /** Item references, as in LALR(1) machine */
  1671. typedef short int yyItemNum;
  1672. typedef struct yyGLRState yyGLRState;
  1673. typedef struct yyGLRStateSet yyGLRStateSet;
  1674. typedef struct yySemanticOption yySemanticOption;
  1675. typedef union yyGLRStackItem yyGLRStackItem;
  1676. typedef struct yyGLRStack yyGLRStack;
  1677. struct yyGLRState {
  1678. /** Type tag: always true. */
  1679. yybool yyisState;
  1680. /** Type tag for yysemantics. If true, yysval applies, otherwise
  1681. * yyfirstVal applies. */
  1682. yybool yyresolved;
  1683. /** Number of corresponding LALR(1) machine state. */
  1684. yyStateNum yylrState;
  1685. /** Preceding state in this stack */
  1686. yyGLRState* yypred;
  1687. /** Source position of the first token produced by my symbol */
  1688. size_t yyposn;
  1689. union {
  1690. /** First in a chain of alternative reductions producing the
  1691. * non-terminal corresponding to this state, threaded through
  1692. * yynext. */
  1693. yySemanticOption* yyfirstVal;
  1694. /** Semantic value for this state. */
  1695. YYSTYPE yysval;
  1696. } yysemantics;
  1697. /** Source location for this state. */
  1698. YYLTYPE yyloc;
  1699. };
  1700. struct yyGLRStateSet {
  1701. yyGLRState** yystates;
  1702. /** During nondeterministic operation, yylookaheadNeeds tracks which
  1703. * stacks have actually needed the current lookahead. During deterministic
  1704. * operation, yylookaheadNeeds[0] is not maintained since it would merely
  1705. * duplicate yychar != YYEMPTY. */
  1706. yybool* yylookaheadNeeds;
  1707. size_t yysize, yycapacity;
  1708. };
  1709. struct yySemanticOption {
  1710. /** Type tag: always false. */
  1711. yybool yyisState;
  1712. /** Rule number for this reduction */
  1713. yyRuleNum yyrule;
  1714. /** The last RHS state in the list of states to be reduced. */
  1715. yyGLRState* yystate;
  1716. /** The lookahead for this reduction. */
  1717. int yyrawchar;
  1718. YYSTYPE yyval;
  1719. YYLTYPE yyloc;
  1720. /** Next sibling in chain of options. To facilitate merging,
  1721. * options are chained in decreasing order by address. */
  1722. yySemanticOption* yynext;
  1723. };
  1724. /** Type of the items in the GLR stack. The yyisState field
  1725. * indicates which item of the union is valid. */
  1726. union yyGLRStackItem {
  1727. yyGLRState yystate;
  1728. yySemanticOption yyoption;
  1729. };
  1730. struct yyGLRStack {
  1731. int yyerrState;
  1732. YYJMP_BUF yyexception_buffer;
  1733. yyGLRStackItem* yyitems;
  1734. yyGLRStackItem* yynextFree;
  1735. size_t yyspaceLeft;
  1736. yyGLRState* yysplitPoint;
  1737. yyGLRState* yylastDeleted;
  1738. yyGLRStateSet yytops;
  1739. };
  1740. #if YYSTACKEXPANDABLE
  1741. static void yyexpandGLRStack (yyGLRStack* yystackp);
  1742. #endif
  1743. static void yyFail (yyGLRStack* yystackp, const char* yymsg)
  1744. __attribute__ ((__noreturn__));
  1745. static void
  1746. yyFail (yyGLRStack* yystackp, const char* yymsg)
  1747. {
  1748. if (yymsg != NULL)
  1749. yyerror (yymsg);
  1750. YYLONGJMP (yystackp->yyexception_buffer, 1);
  1751. }
  1752. static void yyMemoryExhausted (yyGLRStack* yystackp)
  1753. __attribute__ ((__noreturn__));
  1754. static void
  1755. yyMemoryExhausted (yyGLRStack* yystackp)
  1756. {
  1757. YYLONGJMP (yystackp->yyexception_buffer, 2);
  1758. }
  1759. #if YYDEBUG || YYERROR_VERBOSE
  1760. /** A printable representation of TOKEN. */
  1761. static inline const char*
  1762. yytokenName (yySymbol yytoken)
  1763. {
  1764. if (yytoken == YYEMPTY)
  1765. return "";
  1766. return yytname[yytoken];
  1767. }
  1768. #endif
  1769. /** Fill in YYVSP[YYLOW1 .. YYLOW0-1] from the chain of states starting
  1770. * at YYVSP[YYLOW0].yystate.yypred. Leaves YYVSP[YYLOW1].yystate.yypred
  1771. * containing the pointer to the next state in the chain. */
  1772. static void yyfillin (yyGLRStackItem *, int, int) __attribute__ ((__unused__));
  1773. static void
  1774. yyfillin (yyGLRStackItem *yyvsp, int yylow0, int yylow1)
  1775. {
  1776. yyGLRState* s;
  1777. int i;
  1778. s = yyvsp[yylow0].yystate.yypred;
  1779. for (i = yylow0-1; i >= yylow1; i -= 1)
  1780. {
  1781. YYASSERT (s->yyresolved);
  1782. yyvsp[i].yystate.yyresolved = yytrue;
  1783. yyvsp[i].yystate.yysemantics.yysval = s->yysemantics.yysval;
  1784. yyvsp[i].yystate.yyloc = s->yyloc;
  1785. s = yyvsp[i].yystate.yypred = s->yypred;
  1786. }
  1787. }
  1788. /* Do nothing if YYNORMAL or if *YYLOW <= YYLOW1. Otherwise, fill in
  1789. * YYVSP[YYLOW1 .. *YYLOW-1] as in yyfillin and set *YYLOW = YYLOW1.
  1790. * For convenience, always return YYLOW1. */
  1791. static inline int yyfill (yyGLRStackItem *, int *, int, yybool)
  1792. __attribute__ ((__unused__));
  1793. static inline int
  1794. yyfill (yyGLRStackItem *yyvsp, int *yylow, int yylow1, yybool yynormal)
  1795. {
  1796. if (!yynormal && yylow1 < *yylow)
  1797. {
  1798. yyfillin (yyvsp, *yylow, yylow1);
  1799. *yylow = yylow1;
  1800. }
  1801. return yylow1;
  1802. }
  1803. /** Perform user action for rule number YYN, with RHS length YYRHSLEN,
  1804. * and top stack item YYVSP. YYLVALP points to place to put semantic
  1805. * value ($$), and yylocp points to place for location information
  1806. * (@$). Returns yyok for normal return, yyaccept for YYACCEPT,
  1807. * yyerr for YYERROR, yyabort for YYABORT. */
  1808. /*ARGSUSED*/ static YYRESULTTAG
  1809. yyuserAction (yyRuleNum yyn, int yyrhslen, yyGLRStackItem* yyvsp,
  1810. YYSTYPE* yyvalp,
  1811. YYLTYPE* YYOPTIONAL_LOC (yylocp),
  1812. yyGLRStack* yystackp
  1813. )
  1814. {
  1815. yybool yynormal __attribute__ ((__unused__)) =
  1816. (yystackp->yysplitPoint == NULL);
  1817. int yylow;
  1818. # undef yyerrok
  1819. # define yyerrok (yystackp->yyerrState = 0)
  1820. # undef YYACCEPT
  1821. # define YYACCEPT return yyaccept
  1822. # undef YYABORT
  1823. # define YYABORT return yyabort
  1824. # undef YYERROR
  1825. # define YYERROR return yyerrok, yyerr
  1826. # undef YYRECOVERING
  1827. # define YYRECOVERING() (yystackp->yyerrState != 0)
  1828. # undef yyclearin
  1829. # define yyclearin (yychar = YYEMPTY)
  1830. # undef YYFILL
  1831. # define YYFILL(N) yyfill (yyvsp, &yylow, N, yynormal)
  1832. # undef YYBACKUP
  1833. # define YYBACKUP(Token, Value) \
  1834. return yyerror (YY_("syntax error: cannot back up")), \
  1835. yyerrok, yyerr
  1836. yylow = 1;
  1837. if (yyrhslen == 0)
  1838. *yyvalp = yyval_default;
  1839. else
  1840. *yyvalp = yyvsp[YYFILL (1-yyrhslen)].yystate.yysemantics.yysval;
  1841. YYLLOC_DEFAULT ((*yylocp), (yyvsp - yyrhslen), yyrhslen);
  1842. switch (yyn)
  1843. {
  1844. case 2:
  1845. #line 220 "parser.y"
  1846. { answer((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node)); }
  1847. break;
  1848. case 6:
  1849. #line 230 "parser.y"
  1850. { ((*yyvalp).node) = PREP_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node)); }
  1851. break;
  1852. case 7:
  1853. #line 231 "parser.y"
  1854. { ((*yyvalp).node) = PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  1855. break;
  1856. case 10:
  1857. #line 237 "parser.y"
  1858. { ((*yyvalp).node) = BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  1859. break;
  1860. case 12:
  1861. #line 242 "parser.y"
  1862. { ((*yyvalp).node) = pxpath_cat_paths(2, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node)); }
  1863. break;
  1864. case 13:
  1865. #line 243 "parser.y"
  1866. { ((*yyvalp).node) = pxpath_cat_paths(3, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  1867. break;
  1868. case 14:
  1869. #line 244 "parser.y"
  1870. { ((*yyvalp).node) = PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  1871. break;
  1872. case 15:
  1873. #line 248 "parser.y"
  1874. { ((*yyvalp).node) = pxpath_new_path(2, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.string)); }
  1875. break;
  1876. case 16:
  1877. #line 249 "parser.y"
  1878. { ((*yyvalp).node) = PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  1879. break;
  1880. case 31:
  1881. #line 269 "parser.y"
  1882. { ((*yyvalp).node) = pxpath_new_path(3, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.string)); }
  1883. break;
  1884. case 32:
  1885. #line 270 "parser.y"
  1886. { ((*yyvalp).node) = pxpath_new_path(4, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (4))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (4))].yystate.yysemantics.yysval.string)); }
  1887. break;
  1888. case 33:
  1889. #line 274 "parser.y"
  1890. { ((*yyvalp).node) = pxpath_cat_paths(2, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node)); }
  1891. break;
  1892. case 35:
  1893. #line 279 "parser.y"
  1894. { ((*yyvalp).node) = PXPWRAP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.string)); }
  1895. break;
  1896. case 37:
  1897. #line 287 "parser.y"
  1898. { ((*yyvalp).node) = PREP_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node)); }
  1899. break;
  1900. case 38:
  1901. #line 291 "parser.y"
  1902. { ((*yyvalp).node) = BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  1903. break;
  1904. case 42:
  1905. #line 301 "parser.y"
  1906. { ((*yyvalp).string) = ""; }
  1907. break;
  1908. case 43:
  1909. #line 304 "parser.y"
  1910. { ((*yyvalp).node) = PXPWRAP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.string)); }
  1911. break;
  1912. case 46:
  1913. #line 309 "parser.y"
  1914. { ((*yyvalp).node) = PXPWRAP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.string)); }
  1915. break;
  1916. case 47:
  1917. #line 310 "parser.y"
  1918. { ((*yyvalp).node) = LIT((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  1919. break;
  1920. case 50:
  1921. #line 316 "parser.y"
  1922. { ((*yyvalp).node) = pxpath_new_func(xpath_alias(pxpath_to_string((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.node))), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.node)); }
  1923. break;
  1924. case 52:
  1925. #line 320 "parser.y"
  1926. { ((*yyvalp).node) = NULL; }
  1927. break;
  1928. case 53:
  1929. #line 323 "parser.y"
  1930. { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node); (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node)->next = (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node); }
  1931. break;
  1932. case 55:
  1933. #line 327 "parser.y"
  1934. { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.node); }
  1935. break;
  1936. case 57:
  1937. #line 331 "parser.y"
  1938. { ((*yyvalp).node) = BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  1939. break;
  1940. case 60:
  1941. #line 337 "parser.y"
  1942. { ((*yyvalp).node) = BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  1943. break;
  1944. case 61:
  1945. #line 338 "parser.y"
  1946. { ((*yyvalp).node) = BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  1947. break;
  1948. case 63:
  1949. #line 343 "parser.y"
  1950. { ((*yyvalp).node) = pxpath_cat_paths(2, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node)); }
  1951. break;
  1952. case 65:
  1953. #line 348 "parser.y"
  1954. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  1955. break;
  1956. case 67:
  1957. #line 353 "parser.y"
  1958. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  1959. break;
  1960. case 69:
  1961. #line 358 "parser.y"
  1962. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  1963. break;
  1964. case 70:
  1965. #line 359 "parser.y"
  1966. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  1967. break;
  1968. case 72:
  1969. #line 364 "parser.y"
  1970. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node)); }
  1971. break;
  1972. case 73:
  1973. #line 365 "parser.y"
  1974. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node)); }
  1975. break;
  1976. case 74:
  1977. #line 366 "parser.y"
  1978. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node)); }
  1979. break;
  1980. case 75:
  1981. #line 367 "parser.y"
  1982. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node)); }
  1983. break;
  1984. case 77:
  1985. #line 372 "parser.y"
  1986. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node)); }
  1987. break;
  1988. case 78:
  1989. #line 373 "parser.y"
  1990. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node)); }
  1991. break;
  1992. case 80:
  1993. #line 378 "parser.y"
  1994. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node)); }
  1995. break;
  1996. case 81:
  1997. #line 379 "parser.y"
  1998. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node)); }
  1999. break;
  2000. case 82:
  2001. #line 380 "parser.y"
  2002. { ((*yyvalp).node) = LIT_BIN_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((5) - (5))].yystate.yysemantics.yysval.node)); }
  2003. break;
  2004. case 84:
  2005. #line 385 "parser.y"
  2006. { ((*yyvalp).node) = PREP_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node)); }
  2007. break;
  2008. case 86:
  2009. #line 392 "parser.y"
  2010. { ((*yyvalp).node) = LIT((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  2011. break;
  2012. case 87:
  2013. #line 393 "parser.y"
  2014. { ((*yyvalp).node) = pxpath_new_literal(2, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.string)); }
  2015. break;
  2016. case 88:
  2017. #line 394 "parser.y"
  2018. { ((*yyvalp).node) = pxpath_new_literal(3, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.string)); }
  2019. break;
  2020. case 89:
  2021. #line 395 "parser.y"
  2022. { ((*yyvalp).node) = pxpath_new_literal(2, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.string)); }
  2023. break;
  2024. case 91:
  2025. #line 403 "parser.y"
  2026. { ((*yyvalp).node) = PREP_OP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node)); }
  2027. break;
  2028. case 92:
  2029. #line 407 "parser.y"
  2030. { ((*yyvalp).node) = PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  2031. break;
  2032. case 93:
  2033. #line 408 "parser.y"
  2034. { ((*yyvalp).node) = pxpath_new_path(3, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.string)); }
  2035. break;
  2036. case 101:
  2037. #line 425 "parser.y"
  2038. { ((*yyvalp).node) = PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  2039. break;
  2040. case 102:
  2041. #line 429 "parser.y"
  2042. { ((*yyvalp).node) = pxpath_new_path(3, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.string)); }
  2043. break;
  2044. case 108:
  2045. #line 450 "parser.y"
  2046. { ((*yyvalp).node) = pxpath_cat_paths(4, pxpath_new_literal(1, ".//"), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.node), pxpath_new_literal(1, "|"), (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (4))].yystate.yysemantics.yysval.node)); }
  2047. break;
  2048. case 109:
  2049. #line 451 "parser.y"
  2050. { ((*yyvalp).node) = pxpath_cat_paths(2, pxpath_new_literal(1, ".//"), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node)); }
  2051. break;
  2052. case 111:
  2053. #line 456 "parser.y"
  2054. { ((*yyvalp).node) = pxpath_cat_paths(3, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.node), PXP("/@"), PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (4))].yystate.yysemantics.yysval.string))); }
  2055. break;
  2056. case 112:
  2057. #line 460 "parser.y"
  2058. { ((*yyvalp).node) = pxpath_cat_paths(3, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (3))].yystate.yysemantics.yysval.string)), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node)); }
  2059. break;
  2060. case 114:
  2061. #line 465 "parser.y"
  2062. { ((*yyvalp).string) = "/following-sibling::*[1]/self::"; }
  2063. break;
  2064. case 115:
  2065. #line 466 "parser.y"
  2066. { ((*yyvalp).string) = "/"; }
  2067. break;
  2068. case 116:
  2069. #line 467 "parser.y"
  2070. { ((*yyvalp).string) = "/following-sibling::*/self::"; }
  2071. break;
  2072. case 117:
  2073. #line 468 "parser.y"
  2074. { ((*yyvalp).string) = "//"; }
  2075. break;
  2076. case 119:
  2077. #line 473 "parser.y"
  2078. { ((*yyvalp).node) = pxpath_cat_paths(10, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (9))].yystate.yysemantics.yysval.node), PXP("[@"), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (9))].yystate.yysemantics.yysval.node), PXP(" = "), (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (9))].yystate.yysemantics.yysval.node), PXP(" or starts-with(@"), (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (9))].yystate.yysemantics.yysval.node), PXP(", concat("), (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (9))].yystate.yysemantics.yysval.node), PXP(", '-' ))]")); }
  2079. break;
  2080. case 120:
  2081. #line 474 "parser.y"
  2082. { ((*yyvalp).node) = pxpath_cat_paths(5, PXP("set-difference("), (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), PXP(", "), (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.node), PXP(")")); }
  2083. break;
  2084. case 121:
  2085. #line 475 "parser.y"
  2086. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), "[@id='", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), "']"); }
  2087. break;
  2088. case 122:
  2089. #line 476 "parser.y"
  2090. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (3))].yystate.yysemantics.yysval.node), "[contains(concat( ' ', @class, ' ' ), concat( ' ', '", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (3))].yystate.yysemantics.yysval.node), "', ' ' ))]"); }
  2091. break;
  2092. case 123:
  2093. #line 477 "parser.y"
  2094. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (4))].yystate.yysemantics.yysval.node), "[@", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (4))].yystate.yysemantics.yysval.node), "]"); }
  2095. break;
  2096. case 124:
  2097. #line 478 "parser.y"
  2098. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), "[position() = ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), "]"); }
  2099. break;
  2100. case 125:
  2101. #line 479 "parser.y"
  2102. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), "[position() > ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), "]"); }
  2103. break;
  2104. case 126:
  2105. #line 480 "parser.y"
  2106. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), "[position() < ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), "]"); }
  2107. break;
  2108. case 127:
  2109. #line 481 "parser.y"
  2110. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), "[contains(., ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.node), ")]"); }
  2111. break;
  2112. case 128:
  2113. #line 482 "parser.y"
  2114. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), "[", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), "]"); }
  2115. break;
  2116. case 129:
  2117. #line 483 "parser.y"
  2118. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), "[position() = ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), "]"); }
  2119. break;
  2120. case 130:
  2121. #line 484 "parser.y"
  2122. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), "[position() = last() - ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (5))].yystate.yysemantics.yysval.string), "]"); }
  2123. break;
  2124. case 131:
  2125. #line 485 "parser.y"
  2126. { ((*yyvalp).node) = P6E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (9))].yystate.yysemantics.yysval.node), "[@", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (9))].yystate.yysemantics.yysval.node), " = ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (9))].yystate.yysemantics.yysval.node), "]"); }
  2127. break;
  2128. case 132:
  2129. #line 486 "parser.y"
  2130. { ((*yyvalp).node) = P6E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (9))].yystate.yysemantics.yysval.node), "[@", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (9))].yystate.yysemantics.yysval.node), " != ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (9))].yystate.yysemantics.yysval.node), "]"); }
  2131. break;
  2132. case 133:
  2133. #line 487 "parser.y"
  2134. { ((*yyvalp).node) = P6E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (9))].yystate.yysemantics.yysval.node), "[starts-with(@", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (9))].yystate.yysemantics.yysval.node), ", ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (9))].yystate.yysemantics.yysval.node), ")]"); }
  2135. break;
  2136. case 134:
  2137. #line 488 "parser.y"
  2138. { ((*yyvalp).node) = P6E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (9))].yystate.yysemantics.yysval.node), "[ends-with(@", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (9))].yystate.yysemantics.yysval.node), ", ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (9))].yystate.yysemantics.yysval.node), ")]"); }
  2139. break;
  2140. case 135:
  2141. #line 489 "parser.y"
  2142. { ((*yyvalp).node) = P6E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (9))].yystate.yysemantics.yysval.node), "[contains(@", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (9))].yystate.yysemantics.yysval.node), ", ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (9))].yystate.yysemantics.yysval.node), ")]"); }
  2143. break;
  2144. case 136:
  2145. #line 490 "parser.y"
  2146. { ((*yyvalp).node) = P6E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (9))].yystate.yysemantics.yysval.node), "[contains(@", (((yyGLRStackItem const *)yyvsp)[YYFILL ((3) - (9))].yystate.yysemantics.yysval.node), ", ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((7) - (9))].yystate.yysemantics.yysval.node), ")]"); }
  2147. break;
  2148. case 137:
  2149. #line 491 "parser.y"
  2150. { ((*yyvalp).node) = P4O("*[", (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.node), "]/self::", (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node)); }
  2151. break;
  2152. case 138:
  2153. #line 492 "parser.y"
  2154. { ((*yyvalp).node) = P4O("*[last() - ", (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.node), "]/self::", (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node)); }
  2155. break;
  2156. case 139:
  2157. #line 493 "parser.y"
  2158. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[1]"); }
  2159. break;
  2160. case 140:
  2161. #line 494 "parser.y"
  2162. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[last()]"); }
  2163. break;
  2164. case 141:
  2165. #line 495 "parser.y"
  2166. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[position() % 2 = 0]"); }
  2167. break;
  2168. case 142:
  2169. #line 496 "parser.y"
  2170. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[position() % 2 = 1]"); }
  2171. break;
  2172. case 143:
  2173. #line 497 "parser.y"
  2174. { ((*yyvalp).node) = P4E((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (5))].yystate.yysemantics.yysval.node), "[translate(normalize-space(.), $nbsp, ' ')=", (((yyGLRStackItem const *)yyvsp)[YYFILL ((4) - (5))].yystate.yysemantics.yysval.node), "]"); }
  2175. break;
  2176. case 144:
  2177. #line 498 "parser.y"
  2178. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[contains('h1 h2 h3 h4 h5 h6', lower-case(local-name()))]"); }
  2179. break;
  2180. case 145:
  2181. #line 499 "parser.y"
  2182. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[not(node())]"); }
  2183. break;
  2184. case 146:
  2185. #line 500 "parser.y"
  2186. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[node()]"); }
  2187. break;
  2188. case 147:
  2189. #line 501 "parser.y"
  2190. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[1]"); }
  2191. break;
  2192. case 148:
  2193. #line 502 "parser.y"
  2194. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[last()]"); }
  2195. break;
  2196. case 149:
  2197. #line 503 "parser.y"
  2198. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[count()=1]"); }
  2199. break;
  2200. case 150:
  2201. #line 504 "parser.y"
  2202. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[lower-case(name())='input']"); }
  2203. break;
  2204. case 151:
  2205. #line 505 "parser.y"
  2206. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[lower-case(name())='input' and not(@disabled)]"); }
  2207. break;
  2208. case 152:
  2209. #line 506 "parser.y"
  2210. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[lower-case(name())='input' and @disabled]"); }
  2211. break;
  2212. case 153:
  2213. #line 507 "parser.y"
  2214. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[@checked]"); }
  2215. break;
  2216. case 154:
  2217. #line 508 "parser.y"
  2218. { ((*yyvalp).node) = APPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "[@selected]"); }
  2219. break;
  2220. case 155:
  2221. #line 509 "parser.y"
  2222. { ((*yyvalp).node) = PREPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "*[1]/self::"); }
  2223. break;
  2224. case 156:
  2225. #line 510 "parser.y"
  2226. { ((*yyvalp).node) = PREPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "*[last()]/self::"); }
  2227. break;
  2228. case 157:
  2229. #line 511 "parser.y"
  2230. { ((*yyvalp).node) = PREPEND((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), "*[count()=1]/self::"); }
  2231. break;
  2232. case 158:
  2233. #line 512 "parser.y"
  2234. { ((*yyvalp).node) = INPUT_TYPE((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), text); }
  2235. break;
  2236. case 159:
  2237. #line 513 "parser.y"
  2238. { ((*yyvalp).node) = INPUT_TYPE((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), password); }
  2239. break;
  2240. case 160:
  2241. #line 514 "parser.y"
  2242. { ((*yyvalp).node) = INPUT_TYPE((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), radio); }
  2243. break;
  2244. case 161:
  2245. #line 515 "parser.y"
  2246. { ((*yyvalp).node) = INPUT_TYPE((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), checkbox); }
  2247. break;
  2248. case 162:
  2249. #line 516 "parser.y"
  2250. { ((*yyvalp).node) = INPUT_TYPE((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), submit); }
  2251. break;
  2252. case 163:
  2253. #line 517 "parser.y"
  2254. { ((*yyvalp).node) = INPUT_TYPE((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), image); }
  2255. break;
  2256. case 164:
  2257. #line 518 "parser.y"
  2258. { ((*yyvalp).node) = INPUT_TYPE((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), reset); }
  2259. break;
  2260. case 165:
  2261. #line 519 "parser.y"
  2262. { ((*yyvalp).node) = INPUT_TYPE((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), button); }
  2263. break;
  2264. case 166:
  2265. #line 520 "parser.y"
  2266. { ((*yyvalp).node) = INPUT_TYPE((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), file); }
  2267. break;
  2268. case 168:
  2269. #line 525 "parser.y"
  2270. { ((*yyvalp).node) = PXP("*"); }
  2271. break;
  2272. case 171:
  2273. #line 534 "parser.y"
  2274. { ((*yyvalp).node) = pxpath_cat_paths(3, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), PXP(":"), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node)); }
  2275. break;
  2276. case 173:
  2277. #line 539 "parser.y"
  2278. { ((*yyvalp).node) = PXP("*"); }
  2279. break;
  2280. case 174:
  2281. #line 540 "parser.y"
  2282. { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node); }
  2283. break;
  2284. case 175:
  2285. #line 541 "parser.y"
  2286. { ((*yyvalp).node) = PXP("*"); }
  2287. break;
  2288. case 176:
  2289. #line 545 "parser.y"
  2290. { ((*yyvalp).node) = (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.node); }
  2291. break;
  2292. case 177:
  2293. #line 549 "parser.y"
  2294. { ((*yyvalp).node) = pxpath_cat_paths(3, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.node), PXP(":"), PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.string))); }
  2295. break;
  2296. case 178:
  2297. #line 550 "parser.y"
  2298. { ((*yyvalp).node) = PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  2299. break;
  2300. case 179:
  2301. #line 554 "parser.y"
  2302. { ((*yyvalp).node) = PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  2303. break;
  2304. case 180:
  2305. #line 558 "parser.y"
  2306. { ((*yyvalp).node) = PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  2307. break;
  2308. case 181:
  2309. #line 559 "parser.y"
  2310. { ((*yyvalp).node) = PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string) + 1); }
  2311. break;
  2312. case 182:
  2313. #line 560 "parser.y"
  2314. { ((*yyvalp).node) = pxpath_cat_paths(2, PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.string)), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node)); }
  2315. break;
  2316. case 183:
  2317. #line 561 "parser.y"
  2318. { ((*yyvalp).node) = pxpath_cat_paths(2, PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (2))].yystate.yysemantics.yysval.string) + 1), (((yyGLRStackItem const *)yyvsp)[YYFILL ((2) - (2))].yystate.yysemantics.yysval.node)); }
  2319. break;
  2320. case 184:
  2321. #line 562 "parser.y"
  2322. { ((*yyvalp).node) = PXP((((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  2323. break;
  2324. case 207:
  2325. #line 591 "parser.y"
  2326. { ((*yyvalp).node) = pxpath_new_literal(1, (((yyGLRStackItem const *)yyvsp)[YYFILL ((1) - (1))].yystate.yysemantics.yysval.string)); }
  2327. break;
  2328. case 208:
  2329. #line 595 "parser.y"
  2330. { ((*yyvalp).empty) = 0; }
  2331. break;
  2332. case 209:
  2333. #line 596 "parser.y"
  2334. { ((*yyvalp).empty) = 0; }
  2335. break;
  2336. /* Line 930 of glr.c. */
  2337. #line 2595 "parser.c"
  2338. default: break;
  2339. }
  2340. return yyok;
  2341. # undef yyerrok
  2342. # undef YYABORT
  2343. # undef YYACCEPT
  2344. # undef YYERROR
  2345. # undef YYBACKUP
  2346. # undef yyclearin
  2347. # undef YYRECOVERING
  2348. }
  2349. /*ARGSUSED*/ static void
  2350. yyuserMerge (int yyn, YYSTYPE* yy0, YYSTYPE* yy1)
  2351. {
  2352. YYUSE (yy0);
  2353. YYUSE (yy1);
  2354. switch (yyn)
  2355. {
  2356. default: break;
  2357. }
  2358. }
  2359. /* Bison grammar-table manipulation. */
  2360. /*-----------------------------------------------.
  2361. | Release the memory associated to this symbol. |
  2362. `-----------------------------------------------*/
  2363. /*ARGSUSED*/
  2364. static void
  2365. yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
  2366. {
  2367. YYUSE (yyvaluep);
  2368. if (!yymsg)
  2369. yymsg = "Deleting";
  2370. YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
  2371. switch (yytype)
  2372. {
  2373. default:
  2374. break;
  2375. }
  2376. }
  2377. /** Number of symbols composing the right hand side of rule #RULE. */
  2378. static inline int
  2379. yyrhsLength (yyRuleNum yyrule)
  2380. {
  2381. return yyr2[yyrule];
  2382. }
  2383. static void
  2384. yydestroyGLRState (char const *yymsg, yyGLRState *yys)
  2385. {
  2386. if (yys->yyresolved)
  2387. yydestruct (yymsg, yystos[yys->yylrState],
  2388. &yys->yysemantics.yysval);
  2389. else
  2390. {
  2391. #if YYDEBUG
  2392. if (yydebug)
  2393. {
  2394. if (yys->yysemantics.yyfirstVal)
  2395. YYFPRINTF (stderr, "%s unresolved ", yymsg);
  2396. else
  2397. YYFPRINTF (stderr, "%s incomplete ", yymsg);
  2398. yy_symbol_print (stderr, yystos[yys->yylrState],
  2399. NULL);
  2400. YYFPRINTF (stderr, "\n");
  2401. }
  2402. #endif
  2403. if (yys->yysemantics.yyfirstVal)
  2404. {
  2405. yySemanticOption *yyoption = yys->yysemantics.yyfirstVal;
  2406. yyGLRState *yyrh;
  2407. int yyn;
  2408. for (yyrh = yyoption->yystate, yyn = yyrhsLength (yyoption->yyrule);
  2409. yyn > 0;
  2410. yyrh = yyrh->yypred, yyn -= 1)
  2411. yydestroyGLRState (yymsg, yyrh);
  2412. }
  2413. }
  2414. }
  2415. /** Left-hand-side symbol for rule #RULE. */
  2416. static inline yySymbol
  2417. yylhsNonterm (yyRuleNum yyrule)
  2418. {
  2419. return yyr1[yyrule];
  2420. }
  2421. #define yyis_pact_ninf(yystate) \
  2422. ((yystate) == YYPACT_NINF)
  2423. /** True iff LR state STATE has only a default reduction (regardless
  2424. * of token). */
  2425. static inline yybool
  2426. yyisDefaultedState (yyStateNum yystate)
  2427. {
  2428. return yyis_pact_ninf (yypact[yystate]);
  2429. }
  2430. /** The default reduction for STATE, assuming it has one. */
  2431. static inline yyRuleNum
  2432. yydefaultAction (yyStateNum yystate)
  2433. {
  2434. return yydefact[yystate];
  2435. }
  2436. #define yyis_table_ninf(yytable_value) \
  2437. YYID (0)
  2438. /** Set *YYACTION to the action to take in YYSTATE on seeing YYTOKEN.
  2439. * Result R means
  2440. * R < 0: Reduce on rule -R.
  2441. * R = 0: Error.
  2442. * R > 0: Shift to state R.
  2443. * Set *CONFLICTS to a pointer into yyconfl to 0-terminated list of
  2444. * conflicting reductions.
  2445. */
  2446. static inline void
  2447. yygetLRActions (yyStateNum yystate, int yytoken,
  2448. int* yyaction, const short int** yyconflicts)
  2449. {
  2450. int yyindex = yypact[yystate] + yytoken;
  2451. if (yyindex < 0 || YYLAST < yyindex || yycheck[yyindex] != yytoken)
  2452. {
  2453. *yyaction = -yydefact[yystate];
  2454. *yyconflicts = yyconfl;
  2455. }
  2456. else if (! yyis_table_ninf (yytable[yyindex]))
  2457. {
  2458. *yyaction = yytable[yyindex];
  2459. *yyconflicts = yyconfl + yyconflp[yyindex];
  2460. }
  2461. else
  2462. {
  2463. *yyaction = 0;
  2464. *yyconflicts = yyconfl + yyconflp[yyindex];
  2465. }
  2466. }
  2467. static inline yyStateNum
  2468. yyLRgotoState (yyStateNum yystate, yySymbol yylhs)
  2469. {
  2470. int yyr;
  2471. yyr = yypgoto[yylhs - YYNTOKENS] + yystate;
  2472. if (0 <= yyr && yyr <= YYLAST && yycheck[yyr] == yystate)
  2473. return yytable[yyr];
  2474. else
  2475. return yydefgoto[yylhs - YYNTOKENS];
  2476. }
  2477. static inline yybool
  2478. yyisShiftAction (int yyaction)
  2479. {
  2480. return 0 < yyaction;
  2481. }
  2482. static inline yybool
  2483. yyisErrorAction (int yyaction)
  2484. {
  2485. return yyaction == 0;
  2486. }
  2487. /* GLRStates */
  2488. /** Return a fresh GLRStackItem. Callers should call
  2489. * YY_RESERVE_GLRSTACK afterwards to make sure there is sufficient
  2490. * headroom. */
  2491. static inline yyGLRStackItem*
  2492. yynewGLRStackItem (yyGLRStack* yystackp, yybool yyisState)
  2493. {
  2494. yyGLRStackItem* yynewItem = yystackp->yynextFree;
  2495. yystackp->yyspaceLeft -= 1;
  2496. yystackp->yynextFree += 1;
  2497. yynewItem->yystate.yyisState = yyisState;
  2498. return yynewItem;
  2499. }
  2500. /** Add a new semantic action that will execute the action for rule
  2501. * RULENUM on the semantic values in RHS to the list of
  2502. * alternative actions for STATE. Assumes that RHS comes from
  2503. * stack #K of *STACKP. */
  2504. static void
  2505. yyaddDeferredAction (yyGLRStack* yystackp, size_t yyk, yyGLRState* yystate,
  2506. yyGLRState* rhs, yyRuleNum yyrule)
  2507. {
  2508. yySemanticOption* yynewOption =
  2509. &yynewGLRStackItem (yystackp, yyfalse)->yyoption;
  2510. yynewOption->yystate = rhs;
  2511. yynewOption->yyrule = yyrule;
  2512. if (yystackp->yytops.yylookaheadNeeds[yyk])
  2513. {
  2514. yynewOption->yyrawchar = yychar;
  2515. yynewOption->yyval = yylval;
  2516. yynewOption->yyloc = yylloc;
  2517. }
  2518. else
  2519. yynewOption->yyrawchar = YYEMPTY;
  2520. yynewOption->yynext = yystate->yysemantics.yyfirstVal;
  2521. yystate->yysemantics.yyfirstVal = yynewOption;
  2522. YY_RESERVE_GLRSTACK (yystackp);
  2523. }
  2524. /* GLRStacks */
  2525. /** Initialize SET to a singleton set containing an empty stack. */
  2526. static yybool
  2527. yyinitStateSet (yyGLRStateSet* yyset)
  2528. {
  2529. yyset->yysize = 1;
  2530. yyset->yycapacity = 16;
  2531. yyset->yystates = (yyGLRState**) YYMALLOC (16 * sizeof yyset->yystates[0]);
  2532. if (! yyset->yystates)
  2533. return yyfalse;
  2534. yyset->yystates[0] = NULL;
  2535. yyset->yylookaheadNeeds =
  2536. (yybool*) YYMALLOC (16 * sizeof yyset->yylookaheadNeeds[0]);
  2537. if (! yyset->yylookaheadNeeds)
  2538. {
  2539. YYFREE (yyset->yystates);
  2540. return yyfalse;
  2541. }
  2542. return yytrue;
  2543. }
  2544. static void yyfreeStateSet (yyGLRStateSet* yyset)
  2545. {
  2546. YYFREE (yyset->yystates);
  2547. YYFREE (yyset->yylookaheadNeeds);
  2548. }
  2549. /** Initialize STACK to a single empty stack, with total maximum
  2550. * capacity for all stacks of SIZE. */
  2551. static yybool
  2552. yyinitGLRStack (yyGLRStack* yystackp, size_t yysize)
  2553. {
  2554. yystackp->yyerrState = 0;
  2555. yynerrs = 0;
  2556. yystackp->yyspaceLeft = yysize;
  2557. yystackp->yyitems =
  2558. (yyGLRStackItem*) YYMALLOC (yysize * sizeof yystackp->yynextFree[0]);
  2559. if (!yystackp->yyitems)
  2560. return yyfalse;
  2561. yystackp->yynextFree = yystackp->yyitems;
  2562. yystackp->yysplitPoint = NULL;
  2563. yystackp->yylastDeleted = NULL;
  2564. return yyinitStateSet (&yystackp->yytops);
  2565. }
  2566. #if YYSTACKEXPANDABLE
  2567. # define YYRELOC(YYFROMITEMS,YYTOITEMS,YYX,YYTYPE) \
  2568. &((YYTOITEMS) - ((YYFROMITEMS) - (yyGLRStackItem*) (YYX)))->YYTYPE
  2569. /** If STACK is expandable, extend it. WARNING: Pointers into the
  2570. stack from outside should be considered invalid after this call.
  2571. We always expand when there are 1 or fewer items left AFTER an
  2572. allocation, so that we can avoid having external pointers exist
  2573. across an allocation. */
  2574. static void
  2575. yyexpandGLRStack (yyGLRStack* yystackp)
  2576. {
  2577. yyGLRStackItem* yynewItems;
  2578. yyGLRStackItem* yyp0, *yyp1;
  2579. size_t yysize, yynewSize;
  2580. size_t yyn;
  2581. yysize = yystackp->yynextFree - yystackp->yyitems;
  2582. if (YYMAXDEPTH - YYHEADROOM < yysize)
  2583. yyMemoryExhausted (yystackp);
  2584. yynewSize = 2*yysize;
  2585. if (YYMAXDEPTH < yynewSize)
  2586. yynewSize = YYMAXDEPTH;
  2587. yynewItems = (yyGLRStackItem*) YYMALLOC (yynewSize * sizeof yynewItems[0]);
  2588. if (! yynewItems)
  2589. yyMemoryExhausted (yystackp);
  2590. for (yyp0 = yystackp->yyitems, yyp1 = yynewItems, yyn = yysize;
  2591. 0 < yyn;
  2592. yyn -= 1, yyp0 += 1, yyp1 += 1)
  2593. {
  2594. *yyp1 = *yyp0;
  2595. if (*(yybool *) yyp0)
  2596. {
  2597. yyGLRState* yys0 = &yyp0->yystate;
  2598. yyGLRState* yys1 = &yyp1->yystate;
  2599. if (yys0->yypred != NULL)
  2600. yys1->yypred =
  2601. YYRELOC (yyp0, yyp1, yys0->yypred, yystate);
  2602. if (! yys0->yyresolved && yys0->yysemantics.yyfirstVal != NULL)
  2603. yys1->yysemantics.yyfirstVal =
  2604. YYRELOC(yyp0, yyp1, yys0->yysemantics.yyfirstVal, yyoption);
  2605. }
  2606. else
  2607. {
  2608. yySemanticOption* yyv0 = &yyp0->yyoption;
  2609. yySemanticOption* yyv1 = &yyp1->yyoption;
  2610. if (yyv0->yystate != NULL)
  2611. yyv1->yystate = YYRELOC (yyp0, yyp1, yyv0->yystate, yystate);
  2612. if (yyv0->yynext != NULL)
  2613. yyv1->yynext = YYRELOC (yyp0, yyp1, yyv0->yynext, yyoption);
  2614. }
  2615. }
  2616. if (yystackp->yysplitPoint != NULL)
  2617. yystackp->yysplitPoint = YYRELOC (yystackp->yyitems, yynewItems,
  2618. yystackp->yysplitPoint, yystate);
  2619. for (yyn = 0; yyn < yystackp->yytops.yysize; yyn += 1)
  2620. if (yystackp->yytops.yystates[yyn] != NULL)
  2621. yystackp->yytops.yystates[yyn] =
  2622. YYRELOC (yystackp->yyitems, yynewItems,
  2623. yystackp->yytops.yystates[yyn], yystate);
  2624. YYFREE (yystackp->yyitems);
  2625. yystackp->yyitems = yynewItems;
  2626. yystackp->yynextFree = yynewItems + yysize;
  2627. yystackp->yyspaceLeft = yynewSize - yysize;
  2628. }
  2629. #endif
  2630. static void
  2631. yyfreeGLRStack (yyGLRStack* yystackp)
  2632. {
  2633. YYFREE (yystackp->yyitems);
  2634. yyfreeStateSet (&yystackp->yytops);
  2635. }
  2636. /** Assuming that S is a GLRState somewhere on STACK, update the
  2637. * splitpoint of STACK, if needed, so that it is at least as deep as
  2638. * S. */
  2639. static inline void
  2640. yyupdateSplit (yyGLRStack* yystackp, yyGLRState* yys)
  2641. {
  2642. if (yystackp->yysplitPoint != NULL && yystackp->yysplitPoint > yys)
  2643. yystackp->yysplitPoint = yys;
  2644. }
  2645. /** Invalidate stack #K in STACK. */
  2646. static inline void
  2647. yymarkStackDeleted (yyGLRStack* yystackp, size_t yyk)
  2648. {
  2649. if (yystackp->yytops.yystates[yyk] != NULL)
  2650. yystackp->yylastDeleted = yystackp->yytops.yystates[yyk];
  2651. yystackp->yytops.yystates[yyk] = NULL;
  2652. }
  2653. /** Undelete the last stack that was marked as deleted. Can only be
  2654. done once after a deletion, and only when all other stacks have
  2655. been deleted. */
  2656. static void
  2657. yyundeleteLastStack (yyGLRStack* yystackp)
  2658. {
  2659. if (yystackp->yylastDeleted == NULL || yystackp->yytops.yysize != 0)
  2660. return;
  2661. yystackp->yytops.yystates[0] = yystackp->yylastDeleted;
  2662. yystackp->yytops.yysize = 1;
  2663. YYDPRINTF ((stderr, "Restoring last deleted stack as stack #0.\n"));
  2664. yystackp->yylastDeleted = NULL;
  2665. }
  2666. static inline void
  2667. yyremoveDeletes (yyGLRStack* yystackp)
  2668. {
  2669. size_t yyi, yyj;
  2670. yyi = yyj = 0;
  2671. while (yyj < yystackp->yytops.yysize)
  2672. {
  2673. if (yystackp->yytops.yystates[yyi] == NULL)
  2674. {
  2675. if (yyi == yyj)
  2676. {
  2677. YYDPRINTF ((stderr, "Removing dead stacks.\n"));
  2678. }
  2679. yystackp->yytops.yysize -= 1;
  2680. }
  2681. else
  2682. {
  2683. yystackp->yytops.yystates[yyj] = yystackp->yytops.yystates[yyi];
  2684. /* In the current implementation, it's unnecessary to copy
  2685. yystackp->yytops.yylookaheadNeeds[yyi] since, after
  2686. yyremoveDeletes returns, the parser immediately either enters
  2687. deterministic operation or shifts a token. However, it doesn't
  2688. hurt, and the code might evolve to need it. */
  2689. yystackp->yytops.yylookaheadNeeds[yyj] =
  2690. yystackp->yytops.yylookaheadNeeds[yyi];
  2691. if (yyj != yyi)
  2692. {
  2693. YYDPRINTF ((stderr, "Rename stack %lu -> %lu.\n",
  2694. (unsigned long int) yyi, (unsigned long int) yyj));
  2695. }
  2696. yyj += 1;
  2697. }
  2698. yyi += 1;
  2699. }
  2700. }
  2701. /** Shift to a new state on stack #K of STACK, corresponding to LR state
  2702. * LRSTATE, at input position POSN, with (resolved) semantic value SVAL. */
  2703. static inline void
  2704. yyglrShift (yyGLRStack* yystackp, size_t yyk, yyStateNum yylrState,
  2705. size_t yyposn,
  2706. YYSTYPE* yyvalp, YYLTYPE* yylocp)
  2707. {
  2708. yyGLRState* yynewState = &yynewGLRStackItem (yystackp, yytrue)->yystate;
  2709. yynewState->yylrState = yylrState;
  2710. yynewState->yyposn = yyposn;
  2711. yynewState->yyresolved = yytrue;
  2712. yynewState->yypred = yystackp->yytops.yystates[yyk];
  2713. yynewState->yysemantics.yysval = *yyvalp;
  2714. yynewState->yyloc = *yylocp;
  2715. yystackp->yytops.yystates[yyk] = yynewState;
  2716. YY_RESERVE_GLRSTACK (yystackp);
  2717. }
  2718. /** Shift stack #K of YYSTACK, to a new state corresponding to LR
  2719. * state YYLRSTATE, at input position YYPOSN, with the (unresolved)
  2720. * semantic value of YYRHS under the action for YYRULE. */
  2721. static inline void
  2722. yyglrShiftDefer (yyGLRStack* yystackp, size_t yyk, yyStateNum yylrState,
  2723. size_t yyposn, yyGLRState* rhs, yyRuleNum yyrule)
  2724. {
  2725. yyGLRState* yynewState = &yynewGLRStackItem (yystackp, yytrue)->yystate;
  2726. yynewState->yylrState = yylrState;
  2727. yynewState->yyposn = yyposn;
  2728. yynewState->yyresolved = yyfalse;
  2729. yynewState->yypred = yystackp->yytops.yystates[yyk];
  2730. yynewState->yysemantics.yyfirstVal = NULL;
  2731. yystackp->yytops.yystates[yyk] = yynewState;
  2732. /* Invokes YY_RESERVE_GLRSTACK. */
  2733. yyaddDeferredAction (yystackp, yyk, yynewState, rhs, yyrule);
  2734. }
  2735. /** Pop the symbols consumed by reduction #RULE from the top of stack
  2736. * #K of STACK, and perform the appropriate semantic action on their
  2737. * semantic values. Assumes that all ambiguities in semantic values
  2738. * have been previously resolved. Set *VALP to the resulting value,
  2739. * and *LOCP to the computed location (if any). Return value is as
  2740. * for userAction. */
  2741. static inline YYRESULTTAG
  2742. yydoAction (yyGLRStack* yystackp, size_t yyk, yyRuleNum yyrule,
  2743. YYSTYPE* yyvalp, YYLTYPE* yylocp)
  2744. {
  2745. int yynrhs = yyrhsLength (yyrule);
  2746. if (yystackp->yysplitPoint == NULL)
  2747. {
  2748. /* Standard special case: single stack. */
  2749. yyGLRStackItem* rhs = (yyGLRStackItem*) yystackp->yytops.yystates[yyk];
  2750. YYASSERT (yyk == 0);
  2751. yystackp->yynextFree -= yynrhs;
  2752. yystackp->yyspaceLeft += yynrhs;
  2753. yystackp->yytops.yystates[0] = & yystackp->yynextFree[-1].yystate;
  2754. return yyuserAction (yyrule, yynrhs, rhs,
  2755. yyvalp, yylocp, yystackp);
  2756. }
  2757. else
  2758. {
  2759. /* At present, doAction is never called in nondeterministic
  2760. * mode, so this branch is never taken. It is here in
  2761. * anticipation of a future feature that will allow immediate
  2762. * evaluation of selected actions in nondeterministic mode. */
  2763. int yyi;
  2764. yyGLRState* yys;
  2765. yyGLRStackItem yyrhsVals[YYMAXRHS + YYMAXLEFT + 1];
  2766. yys = yyrhsVals[YYMAXRHS + YYMAXLEFT].yystate.yypred
  2767. = yystackp->yytops.yystates[yyk];
  2768. for (yyi = 0; yyi < yynrhs; yyi += 1)
  2769. {
  2770. yys = yys->yypred;
  2771. YYASSERT (yys);
  2772. }
  2773. yyupdateSplit (yystackp, yys);
  2774. yystackp->yytops.yystates[yyk] = yys;
  2775. return yyuserAction (yyrule, yynrhs, yyrhsVals + YYMAXRHS + YYMAXLEFT - 1,
  2776. yyvalp, yylocp, yystackp);
  2777. }
  2778. }
  2779. #if !YYDEBUG
  2780. # define YY_REDUCE_PRINT(Args)
  2781. #else
  2782. # define YY_REDUCE_PRINT(Args) \
  2783. do { \
  2784. if (yydebug) \
  2785. yy_reduce_print Args; \
  2786. } while (YYID (0))
  2787. /*----------------------------------------------------------.
  2788. | Report that the RULE is going to be reduced on stack #K. |
  2789. `----------------------------------------------------------*/
  2790. /*ARGSUSED*/ static inline void
  2791. yy_reduce_print (yyGLRStack* yystackp, size_t yyk, yyRuleNum yyrule,
  2792. YYSTYPE* yyvalp, YYLTYPE* yylocp)
  2793. {
  2794. int yynrhs = yyrhsLength (yyrule);
  2795. yybool yynormal __attribute__ ((__unused__)) =
  2796. (yystackp->yysplitPoint == NULL);
  2797. yyGLRStackItem* yyvsp = (yyGLRStackItem*) yystackp->yytops.yystates[yyk];
  2798. int yylow = 1;
  2799. int yyi;
  2800. YYUSE (yyvalp);
  2801. YYUSE (yylocp);
  2802. YYFPRINTF (stderr, "Reducing stack %lu by rule %d (line %lu):\n",
  2803. (unsigned long int) yyk, yyrule - 1,
  2804. (unsigned long int) yyrline[yyrule]);
  2805. /* The symbols being reduced. */
  2806. for (yyi = 0; yyi < yynrhs; yyi++)
  2807. {
  2808. fprintf (stderr, " $%d = ", yyi + 1);
  2809. yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
  2810. &(((yyGLRStackItem const *)yyvsp)[YYFILL ((yyi + 1) - (yynrhs))].yystate.yysemantics.yysval)
  2811. );
  2812. fprintf (stderr, "\n");
  2813. }
  2814. }
  2815. #endif
  2816. /** Pop items off stack #K of STACK according to grammar rule RULE,
  2817. * and push back on the resulting nonterminal symbol. Perform the
  2818. * semantic action associated with RULE and store its value with the
  2819. * newly pushed state, if FORCEEVAL or if STACK is currently
  2820. * unambiguous. Otherwise, store the deferred semantic action with
  2821. * the new state. If the new state would have an identical input
  2822. * position, LR state, and predecessor to an existing state on the stack,
  2823. * it is identified with that existing state, eliminating stack #K from
  2824. * the STACK. In this case, the (necessarily deferred) semantic value is
  2825. * added to the options for the existing state's semantic value.
  2826. */
  2827. static inline YYRESULTTAG
  2828. yyglrReduce (yyGLRStack* yystackp, size_t yyk, yyRuleNum yyrule,
  2829. yybool yyforceEval)
  2830. {
  2831. size_t yyposn = yystackp->yytops.yystates[yyk]->yyposn;
  2832. if (yyforceEval || yystackp->yysplitPoint == NULL)
  2833. {
  2834. YYSTYPE yysval;
  2835. YYLTYPE yyloc;
  2836. YY_REDUCE_PRINT ((yystackp, yyk, yyrule, &yysval, &yyloc));
  2837. YYCHK (yydoAction (yystackp, yyk, yyrule, &yysval,
  2838. &yyloc));
  2839. YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyrule], &yysval, &yyloc);
  2840. yyglrShift (yystackp, yyk,
  2841. yyLRgotoState (yystackp->yytops.yystates[yyk]->yylrState,
  2842. yylhsNonterm (yyrule)),
  2843. yyposn, &yysval, &yyloc);
  2844. }
  2845. else
  2846. {
  2847. size_t yyi;
  2848. int yyn;
  2849. yyGLRState* yys, *yys0 = yystackp->yytops.yystates[yyk];
  2850. yyStateNum yynewLRState;
  2851. for (yys = yystackp->yytops.yystates[yyk], yyn = yyrhsLength (yyrule);
  2852. 0 < yyn; yyn -= 1)
  2853. {
  2854. yys = yys->yypred;
  2855. YYASSERT (yys);
  2856. }
  2857. yyupdateSplit (yystackp, yys);
  2858. yynewLRState = yyLRgotoState (yys->yylrState, yylhsNonterm (yyrule));
  2859. YYDPRINTF ((stderr,
  2860. "Reduced stack %lu by rule #%d; action deferred. Now in state %d.\n",
  2861. (unsigned long int) yyk, yyrule - 1, yynewLRState));
  2862. for (yyi = 0; yyi < yystackp->yytops.yysize; yyi += 1)
  2863. if (yyi != yyk && yystackp->yytops.yystates[yyi] != NULL)
  2864. {
  2865. yyGLRState* yyp, *yysplit = yystackp->yysplitPoint;
  2866. yyp = yystackp->yytops.yystates[yyi];
  2867. while (yyp != yys && yyp != yysplit && yyp->yyposn >= yyposn)
  2868. {
  2869. if (yyp->yylrState == yynewLRState && yyp->yypred == yys)
  2870. {
  2871. yyaddDeferredAction (yystackp, yyk, yyp, yys0, yyrule);
  2872. yymarkStackDeleted (yystackp, yyk);
  2873. YYDPRINTF ((stderr, "Merging stack %lu into stack %lu.\n",
  2874. (unsigned long int) yyk,
  2875. (unsigned long int) yyi));
  2876. return yyok;
  2877. }
  2878. yyp = yyp->yypred;
  2879. }
  2880. }
  2881. yystackp->yytops.yystates[yyk] = yys;
  2882. yyglrShiftDefer (yystackp, yyk, yynewLRState, yyposn, yys0, yyrule);
  2883. }
  2884. return yyok;
  2885. }
  2886. static size_t
  2887. yysplitStack (yyGLRStack* yystackp, size_t yyk)
  2888. {
  2889. if (yystackp->yysplitPoint == NULL)
  2890. {
  2891. YYASSERT (yyk == 0);
  2892. yystackp->yysplitPoint = yystackp->yytops.yystates[yyk];
  2893. }
  2894. if (yystackp->yytops.yysize >= yystackp->yytops.yycapacity)
  2895. {
  2896. yyGLRState** yynewStates;
  2897. yybool* yynewLookaheadNeeds;
  2898. yynewStates = NULL;
  2899. if (yystackp->yytops.yycapacity
  2900. > (YYSIZEMAX / (2 * sizeof yynewStates[0])))
  2901. yyMemoryExhausted (yystackp);
  2902. yystackp->yytops.yycapacity *= 2;
  2903. yynewStates =
  2904. (yyGLRState**) YYREALLOC (yystackp->yytops.yystates,
  2905. (yystackp->yytops.yycapacity
  2906. * sizeof yynewStates[0]));
  2907. if (yynewStates == NULL)
  2908. yyMemoryExhausted (yystackp);
  2909. yystackp->yytops.yystates = yynewStates;
  2910. yynewLookaheadNeeds =
  2911. (yybool*) YYREALLOC (yystackp->yytops.yylookaheadNeeds,
  2912. (yystackp->yytops.yycapacity
  2913. * sizeof yynewLookaheadNeeds[0]));
  2914. if (yynewLookaheadNeeds == NULL)
  2915. yyMemoryExhausted (yystackp);
  2916. yystackp->yytops.yylookaheadNeeds = yynewLookaheadNeeds;
  2917. }
  2918. yystackp->yytops.yystates[yystackp->yytops.yysize]
  2919. = yystackp->yytops.yystates[yyk];
  2920. yystackp->yytops.yylookaheadNeeds[yystackp->yytops.yysize]
  2921. = yystackp->yytops.yylookaheadNeeds[yyk];
  2922. yystackp->yytops.yysize += 1;
  2923. return yystackp->yytops.yysize-1;
  2924. }
  2925. /** True iff Y0 and Y1 represent identical options at the top level.
  2926. * That is, they represent the same rule applied to RHS symbols
  2927. * that produce the same terminal symbols. */
  2928. static yybool
  2929. yyidenticalOptions (yySemanticOption* yyy0, yySemanticOption* yyy1)
  2930. {
  2931. if (yyy0->yyrule == yyy1->yyrule)
  2932. {
  2933. yyGLRState *yys0, *yys1;
  2934. int yyn;
  2935. for (yys0 = yyy0->yystate, yys1 = yyy1->yystate,
  2936. yyn = yyrhsLength (yyy0->yyrule);
  2937. yyn > 0;
  2938. yys0 = yys0->yypred, yys1 = yys1->yypred, yyn -= 1)
  2939. if (yys0->yyposn != yys1->yyposn)
  2940. return yyfalse;
  2941. return yytrue;
  2942. }
  2943. else
  2944. return yyfalse;
  2945. }
  2946. /** Assuming identicalOptions (Y0,Y1), destructively merge the
  2947. * alternative semantic values for the RHS-symbols of Y1 and Y0. */
  2948. static void
  2949. yymergeOptionSets (yySemanticOption* yyy0, yySemanticOption* yyy1)
  2950. {
  2951. yyGLRState *yys0, *yys1;
  2952. int yyn;
  2953. for (yys0 = yyy0->yystate, yys1 = yyy1->yystate,
  2954. yyn = yyrhsLength (yyy0->yyrule);
  2955. yyn > 0;
  2956. yys0 = yys0->yypred, yys1 = yys1->yypred, yyn -= 1)
  2957. {
  2958. if (yys0 == yys1)
  2959. break;
  2960. else if (yys0->yyresolved)
  2961. {
  2962. yys1->yyresolved = yytrue;
  2963. yys1->yysemantics.yysval = yys0->yysemantics.yysval;
  2964. }
  2965. else if (yys1->yyresolved)
  2966. {
  2967. yys0->yyresolved = yytrue;
  2968. yys0->yysemantics.yysval = yys1->yysemantics.yysval;
  2969. }
  2970. else
  2971. {
  2972. yySemanticOption** yyz0p;
  2973. yySemanticOption* yyz1;
  2974. yyz0p = &yys0->yysemantics.yyfirstVal;
  2975. yyz1 = yys1->yysemantics.yyfirstVal;
  2976. while (YYID (yytrue))
  2977. {
  2978. if (yyz1 == *yyz0p || yyz1 == NULL)
  2979. break;
  2980. else if (*yyz0p == NULL)
  2981. {
  2982. *yyz0p = yyz1;
  2983. break;
  2984. }
  2985. else if (*yyz0p < yyz1)
  2986. {
  2987. yySemanticOption* yyz = *yyz0p;
  2988. *yyz0p = yyz1;
  2989. yyz1 = yyz1->yynext;
  2990. (*yyz0p)->yynext = yyz;
  2991. }
  2992. yyz0p = &(*yyz0p)->yynext;
  2993. }
  2994. yys1->yysemantics.yyfirstVal = yys0->yysemantics.yyfirstVal;
  2995. }
  2996. }
  2997. }
  2998. /** Y0 and Y1 represent two possible actions to take in a given
  2999. * parsing state; return 0 if no combination is possible,
  3000. * 1 if user-mergeable, 2 if Y0 is preferred, 3 if Y1 is preferred. */
  3001. static int
  3002. yypreference (yySemanticOption* y0, yySemanticOption* y1)
  3003. {
  3004. yyRuleNum r0 = y0->yyrule, r1 = y1->yyrule;
  3005. int p0 = yydprec[r0], p1 = yydprec[r1];
  3006. if (p0 == p1)
  3007. {
  3008. if (yymerger[r0] == 0 || yymerger[r0] != yymerger[r1])
  3009. return 0;
  3010. else
  3011. return 1;
  3012. }
  3013. if (p0 == 0 || p1 == 0)
  3014. return 0;
  3015. if (p0 < p1)
  3016. return 3;
  3017. if (p1 < p0)
  3018. return 2;
  3019. return 0;
  3020. }
  3021. static YYRESULTTAG yyresolveValue (yyGLRState* yys,
  3022. yyGLRStack* yystackp);
  3023. /** Resolve the previous N states starting at and including state S. If result
  3024. * != yyok, some states may have been left unresolved possibly with empty
  3025. * semantic option chains. Regardless of whether result = yyok, each state
  3026. * has been left with consistent data so that yydestroyGLRState can be invoked
  3027. * if necessary. */
  3028. static YYRESULTTAG
  3029. yyresolveStates (yyGLRState* yys, int yyn,
  3030. yyGLRStack* yystackp)
  3031. {
  3032. if (0 < yyn)
  3033. {
  3034. YYASSERT (yys->yypred);
  3035. YYCHK (yyresolveStates (yys->yypred, yyn-1, yystackp));
  3036. if (! yys->yyresolved)
  3037. YYCHK (yyresolveValue (yys, yystackp));
  3038. }
  3039. return yyok;
  3040. }
  3041. /** Resolve the states for the RHS of OPT, perform its user action, and return
  3042. * the semantic value and location. Regardless of whether result = yyok, all
  3043. * RHS states have been destroyed (assuming the user action destroys all RHS
  3044. * semantic values if invoked). */
  3045. static YYRESULTTAG
  3046. yyresolveAction (yySemanticOption* yyopt, yyGLRStack* yystackp,
  3047. YYSTYPE* yyvalp, YYLTYPE* yylocp)
  3048. {
  3049. yyGLRStackItem yyrhsVals[YYMAXRHS + YYMAXLEFT + 1];
  3050. int yynrhs;
  3051. int yychar_current;
  3052. YYSTYPE yylval_current;
  3053. YYLTYPE yylloc_current;
  3054. YYRESULTTAG yyflag;
  3055. yynrhs = yyrhsLength (yyopt->yyrule);
  3056. yyflag = yyresolveStates (yyopt->yystate, yynrhs, yystackp);
  3057. if (yyflag != yyok)
  3058. {
  3059. yyGLRState *yys;
  3060. for (yys = yyopt->yystate; yynrhs > 0; yys = yys->yypred, yynrhs -= 1)
  3061. yydestroyGLRState ("Cleanup: popping", yys);
  3062. return yyflag;
  3063. }
  3064. yyrhsVals[YYMAXRHS + YYMAXLEFT].yystate.yypred = yyopt->yystate;
  3065. yychar_current = yychar;
  3066. yylval_current = yylval;
  3067. yylloc_current = yylloc;
  3068. yychar = yyopt->yyrawchar;
  3069. yylval = yyopt->yyval;
  3070. yylloc = yyopt->yyloc;
  3071. yyflag = yyuserAction (yyopt->yyrule, yynrhs,
  3072. yyrhsVals + YYMAXRHS + YYMAXLEFT - 1,
  3073. yyvalp, yylocp, yystackp);
  3074. yychar = yychar_current;
  3075. yylval = yylval_current;
  3076. yylloc = yylloc_current;
  3077. return yyflag;
  3078. }
  3079. #if YYDEBUG
  3080. static void
  3081. yyreportTree (yySemanticOption* yyx, int yyindent)
  3082. {
  3083. int yynrhs = yyrhsLength (yyx->yyrule);
  3084. int yyi;
  3085. yyGLRState* yys;
  3086. yyGLRState* yystates[1 + YYMAXRHS];
  3087. yyGLRState yyleftmost_state;
  3088. for (yyi = yynrhs, yys = yyx->yystate; 0 < yyi; yyi -= 1, yys = yys->yypred)
  3089. yystates[yyi] = yys;
  3090. if (yys == NULL)
  3091. {
  3092. yyleftmost_state.yyposn = 0;
  3093. yystates[0] = &yyleftmost_state;
  3094. }
  3095. else
  3096. yystates[0] = yys;
  3097. if (yyx->yystate->yyposn < yys->yyposn + 1)
  3098. YYFPRINTF (stderr, "%*s%s -> <Rule %d, empty>\n",
  3099. yyindent, "", yytokenName (yylhsNonterm (yyx->yyrule)),
  3100. yyx->yyrule - 1);
  3101. else
  3102. YYFPRINTF (stderr, "%*s%s -> <Rule %d, tokens %lu .. %lu>\n",
  3103. yyindent, "", yytokenName (yylhsNonterm (yyx->yyrule)),
  3104. yyx->yyrule - 1, (unsigned long int) (yys->yyposn + 1),
  3105. (unsigned long int) yyx->yystate->yyposn);
  3106. for (yyi = 1; yyi <= yynrhs; yyi += 1)
  3107. {
  3108. if (yystates[yyi]->yyresolved)
  3109. {
  3110. if (yystates[yyi-1]->yyposn+1 > yystates[yyi]->yyposn)
  3111. YYFPRINTF (stderr, "%*s%s <empty>\n", yyindent+2, "",
  3112. yytokenName (yyrhs[yyprhs[yyx->yyrule]+yyi-1]));
  3113. else
  3114. YYFPRINTF (stderr, "%*s%s <tokens %lu .. %lu>\n", yyindent+2, "",
  3115. yytokenName (yyrhs[yyprhs[yyx->yyrule]+yyi-1]),
  3116. (unsigned long int) (yystates[yyi - 1]->yyposn + 1),
  3117. (unsigned long int) yystates[yyi]->yyposn);
  3118. }
  3119. else
  3120. yyreportTree (yystates[yyi]->yysemantics.yyfirstVal, yyindent+2);
  3121. }
  3122. }
  3123. #endif
  3124. /*ARGSUSED*/ static YYRESULTTAG
  3125. yyreportAmbiguity (yySemanticOption* yyx0,
  3126. yySemanticOption* yyx1)
  3127. {
  3128. YYUSE (yyx0);
  3129. YYUSE (yyx1);
  3130. #if YYDEBUG
  3131. YYFPRINTF (stderr, "Ambiguity detected.\n");
  3132. YYFPRINTF (stderr, "Option 1,\n");
  3133. yyreportTree (yyx0, 2);
  3134. YYFPRINTF (stderr, "\nOption 2,\n");
  3135. yyreportTree (yyx1, 2);
  3136. YYFPRINTF (stderr, "\n");
  3137. #endif
  3138. yyerror (YY_("syntax is ambiguous"));
  3139. return yyabort;
  3140. }
  3141. /** Starting at and including state S1, resolve the location for each of the
  3142. * previous N1 states that is unresolved. The first semantic option of a state
  3143. * is always chosen. */
  3144. static void
  3145. yyresolveLocations (yyGLRState* yys1, int yyn1,
  3146. yyGLRStack *yystackp)
  3147. {
  3148. if (0 < yyn1)
  3149. {
  3150. yyresolveLocations (yys1->yypred, yyn1 - 1, yystackp);
  3151. if (!yys1->yyresolved)
  3152. {
  3153. yySemanticOption *yyoption;
  3154. yyGLRStackItem yyrhsloc[1 + YYMAXRHS];
  3155. int yynrhs;
  3156. int yychar_current;
  3157. YYSTYPE yylval_current;
  3158. YYLTYPE yylloc_current;
  3159. yyoption = yys1->yysemantics.yyfirstVal;
  3160. YYASSERT (yyoption != NULL);
  3161. yynrhs = yyrhsLength (yyoption->yyrule);
  3162. if (yynrhs > 0)
  3163. {
  3164. yyGLRState *yys;
  3165. int yyn;
  3166. yyresolveLocations (yyoption->yystate, yynrhs,
  3167. yystackp);
  3168. for (yys = yyoption->yystate, yyn = yynrhs;
  3169. yyn > 0;
  3170. yys = yys->yypred, yyn -= 1)
  3171. yyrhsloc[yyn].yystate.yyloc = yys->yyloc;
  3172. }
  3173. else
  3174. {
  3175. /* Both yyresolveAction and yyresolveLocations traverse the GSS
  3176. in reverse rightmost order. It is only necessary to invoke
  3177. yyresolveLocations on a subforest for which yyresolveAction
  3178. would have been invoked next had an ambiguity not been
  3179. detected. Thus the location of the previous state (but not
  3180. necessarily the previous state itself) is guaranteed to be
  3181. resolved already. */
  3182. yyGLRState *yyprevious = yyoption->yystate;
  3183. yyrhsloc[0].yystate.yyloc = yyprevious->yyloc;
  3184. }
  3185. yychar_current = yychar;
  3186. yylval_current = yylval;
  3187. yylloc_current = yylloc;
  3188. yychar = yyoption->yyrawchar;
  3189. yylval = yyoption->yyval;
  3190. yylloc = yyoption->yyloc;
  3191. YYLLOC_DEFAULT ((yys1->yyloc), yyrhsloc, yynrhs);
  3192. yychar = yychar_current;
  3193. yylval = yylval_current;
  3194. yylloc = yylloc_current;
  3195. }
  3196. }
  3197. }
  3198. /** Resolve the ambiguity represented in state S, perform the indicated
  3199. * actions, and set the semantic value of S. If result != yyok, the chain of
  3200. * semantic options in S has been cleared instead or it has been left
  3201. * unmodified except that redundant options may have been removed. Regardless
  3202. * of whether result = yyok, S has been left with consistent data so that
  3203. * yydestroyGLRState can be invoked if necessary. */
  3204. static YYRESULTTAG
  3205. yyresolveValue (yyGLRState* yys, yyGLRStack* yystackp)
  3206. {
  3207. yySemanticOption* yyoptionList = yys->yysemantics.yyfirstVal;
  3208. yySemanticOption* yybest;
  3209. yySemanticOption** yypp;
  3210. yybool yymerge;
  3211. YYSTYPE yysval;
  3212. YYRESULTTAG yyflag;
  3213. YYLTYPE *yylocp = &yys->yyloc;
  3214. yybest = yyoptionList;
  3215. yymerge = yyfalse;
  3216. for (yypp = &yyoptionList->yynext; *yypp != NULL; )
  3217. {
  3218. yySemanticOption* yyp = *yypp;
  3219. if (yyidenticalOptions (yybest, yyp))
  3220. {
  3221. yymergeOptionSets (yybest, yyp);
  3222. *yypp = yyp->yynext;
  3223. }
  3224. else
  3225. {
  3226. switch (yypreference (yybest, yyp))
  3227. {
  3228. case 0:
  3229. yyresolveLocations (yys, 1, yystackp);
  3230. return yyreportAmbiguity (yybest, yyp);
  3231. break;
  3232. case 1:
  3233. yymerge = yytrue;
  3234. break;
  3235. case 2:
  3236. break;
  3237. case 3:
  3238. yybest = yyp;
  3239. yymerge = yyfalse;
  3240. break;
  3241. default:
  3242. /* This cannot happen so it is not worth a YYASSERT (yyfalse),
  3243. but some compilers complain if the default case is
  3244. omitted. */
  3245. break;
  3246. }
  3247. yypp = &yyp->yynext;
  3248. }
  3249. }
  3250. if (yymerge)
  3251. {
  3252. yySemanticOption* yyp;
  3253. int yyprec = yydprec[yybest->yyrule];
  3254. yyflag = yyresolveAction (yybest, yystackp, &yysval,
  3255. yylocp);
  3256. if (yyflag == yyok)
  3257. for (yyp = yybest->yynext; yyp != NULL; yyp = yyp->yynext)
  3258. {
  3259. if (yyprec == yydprec[yyp->yyrule])
  3260. {
  3261. YYSTYPE yysval_other;
  3262. YYLTYPE yydummy;
  3263. yyflag = yyresolveAction (yyp, yystackp, &yysval_other,
  3264. &yydummy);
  3265. if (yyflag != yyok)
  3266. {
  3267. yydestruct ("Cleanup: discarding incompletely merged value for",
  3268. yystos[yys->yylrState],
  3269. &yysval);
  3270. break;
  3271. }
  3272. yyuserMerge (yymerger[yyp->yyrule], &yysval, &yysval_other);
  3273. }
  3274. }
  3275. }
  3276. else
  3277. yyflag = yyresolveAction (yybest, yystackp, &yysval, yylocp);
  3278. if (yyflag == yyok)
  3279. {
  3280. yys->yyresolved = yytrue;
  3281. yys->yysemantics.yysval = yysval;
  3282. }
  3283. else
  3284. yys->yysemantics.yyfirstVal = NULL;
  3285. return yyflag;
  3286. }
  3287. static YYRESULTTAG
  3288. yyresolveStack (yyGLRStack* yystackp)
  3289. {
  3290. if (yystackp->yysplitPoint != NULL)
  3291. {
  3292. yyGLRState* yys;
  3293. int yyn;
  3294. for (yyn = 0, yys = yystackp->yytops.yystates[0];
  3295. yys != yystackp->yysplitPoint;
  3296. yys = yys->yypred, yyn += 1)
  3297. continue;
  3298. YYCHK (yyresolveStates (yystackp->yytops.yystates[0], yyn, yystackp
  3299. ));
  3300. }
  3301. return yyok;
  3302. }
  3303. static void
  3304. yycompressStack (yyGLRStack* yystackp)
  3305. {
  3306. yyGLRState* yyp, *yyq, *yyr;
  3307. if (yystackp->yytops.yysize != 1 || yystackp->yysplitPoint == NULL)
  3308. return;
  3309. for (yyp = yystackp->yytops.yystates[0], yyq = yyp->yypred, yyr = NULL;
  3310. yyp != yystackp->yysplitPoint;
  3311. yyr = yyp, yyp = yyq, yyq = yyp->yypred)
  3312. yyp->yypred = yyr;
  3313. yystackp->yyspaceLeft += yystackp->yynextFree - yystackp->yyitems;
  3314. yystackp->yynextFree = ((yyGLRStackItem*) yystackp->yysplitPoint) + 1;
  3315. yystackp->yyspaceLeft -= yystackp->yynextFree - yystackp->yyitems;
  3316. yystackp->yysplitPoint = NULL;
  3317. yystackp->yylastDeleted = NULL;
  3318. while (yyr != NULL)
  3319. {
  3320. yystackp->yynextFree->yystate = *yyr;
  3321. yyr = yyr->yypred;
  3322. yystackp->yynextFree->yystate.yypred = &yystackp->yynextFree[-1].yystate;
  3323. yystackp->yytops.yystates[0] = &yystackp->yynextFree->yystate;
  3324. yystackp->yynextFree += 1;
  3325. yystackp->yyspaceLeft -= 1;
  3326. }
  3327. }
  3328. static YYRESULTTAG
  3329. yyprocessOneStack (yyGLRStack* yystackp, size_t yyk,
  3330. size_t yyposn)
  3331. {
  3332. int yyaction;
  3333. const short int* yyconflicts;
  3334. yyRuleNum yyrule;
  3335. while (yystackp->yytops.yystates[yyk] != NULL)
  3336. {
  3337. yyStateNum yystate = yystackp->yytops.yystates[yyk]->yylrState;
  3338. YYDPRINTF ((stderr, "Stack %lu Entering state %d\n",
  3339. (unsigned long int) yyk, yystate));
  3340. YYASSERT (yystate != YYFINAL);
  3341. if (yyisDefaultedState (yystate))
  3342. {
  3343. yyrule = yydefaultAction (yystate);
  3344. if (yyrule == 0)
  3345. {
  3346. YYDPRINTF ((stderr, "Stack %lu dies.\n",
  3347. (unsigned long int) yyk));
  3348. yymarkStackDeleted (yystackp, yyk);
  3349. return yyok;
  3350. }
  3351. YYCHK (yyglrReduce (yystackp, yyk, yyrule, yyfalse));
  3352. }
  3353. else
  3354. {
  3355. yySymbol yytoken;
  3356. yystackp->yytops.yylookaheadNeeds[yyk] = yytrue;
  3357. if (yychar == YYEMPTY)
  3358. {
  3359. YYDPRINTF ((stderr, "Reading a token: "));
  3360. yychar = YYLEX;
  3361. yytoken = YYTRANSLATE (yychar);
  3362. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  3363. }
  3364. else
  3365. yytoken = YYTRANSLATE (yychar);
  3366. yygetLRActions (yystate, yytoken, &yyaction, &yyconflicts);
  3367. while (*yyconflicts != 0)
  3368. {
  3369. size_t yynewStack = yysplitStack (yystackp, yyk);
  3370. YYDPRINTF ((stderr, "Splitting off stack %lu from %lu.\n",
  3371. (unsigned long int) yynewStack,
  3372. (unsigned long int) yyk));
  3373. YYCHK (yyglrReduce (yystackp, yynewStack,
  3374. *yyconflicts, yyfalse));
  3375. YYCHK (yyprocessOneStack (yystackp, yynewStack,
  3376. yyposn));
  3377. yyconflicts += 1;
  3378. }
  3379. if (yyisShiftAction (yyaction))
  3380. break;
  3381. else if (yyisErrorAction (yyaction))
  3382. {
  3383. YYDPRINTF ((stderr, "Stack %lu dies.\n",
  3384. (unsigned long int) yyk));
  3385. yymarkStackDeleted (yystackp, yyk);
  3386. break;
  3387. }
  3388. else
  3389. YYCHK (yyglrReduce (yystackp, yyk, -yyaction,
  3390. yyfalse));
  3391. }
  3392. }
  3393. return yyok;
  3394. }
  3395. /*ARGSUSED*/ static void
  3396. yyreportSyntaxError (yyGLRStack* yystackp)
  3397. {
  3398. if (yystackp->yyerrState == 0)
  3399. {
  3400. #if YYERROR_VERBOSE
  3401. int yyn;
  3402. yyn = yypact[yystackp->yytops.yystates[0]->yylrState];
  3403. if (YYPACT_NINF < yyn && yyn <= YYLAST)
  3404. {
  3405. yySymbol yytoken = YYTRANSLATE (yychar);
  3406. size_t yysize0 = yytnamerr (NULL, yytokenName (yytoken));
  3407. size_t yysize = yysize0;
  3408. size_t yysize1;
  3409. yybool yysize_overflow = yyfalse;
  3410. char* yymsg = NULL;
  3411. enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  3412. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  3413. int yyx;
  3414. char *yyfmt;
  3415. char const *yyf;
  3416. static char const yyunexpected[] = "syntax error, unexpected %s";
  3417. static char const yyexpecting[] = ", expecting %s";
  3418. static char const yyor[] = " or %s";
  3419. char yyformat[sizeof yyunexpected
  3420. + sizeof yyexpecting - 1
  3421. + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
  3422. * (sizeof yyor - 1))];
  3423. char const *yyprefix = yyexpecting;
  3424. /* Start YYX at -YYN if negative to avoid negative indexes in
  3425. YYCHECK. */
  3426. int yyxbegin = yyn < 0 ? -yyn : 0;
  3427. /* Stay within bounds of both yycheck and yytname. */
  3428. int yychecklim = YYLAST - yyn + 1;
  3429. int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  3430. int yycount = 1;
  3431. yyarg[0] = yytokenName (yytoken);
  3432. yyfmt = yystpcpy (yyformat, yyunexpected);
  3433. for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  3434. if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  3435. {
  3436. if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
  3437. {
  3438. yycount = 1;
  3439. yysize = yysize0;
  3440. yyformat[sizeof yyunexpected - 1] = '\0';
  3441. break;
  3442. }
  3443. yyarg[yycount++] = yytokenName (yyx);
  3444. yysize1 = yysize + yytnamerr (NULL, yytokenName (yyx));
  3445. yysize_overflow |= yysize1 < yysize;
  3446. yysize = yysize1;
  3447. yyfmt = yystpcpy (yyfmt, yyprefix);
  3448. yyprefix = yyor;
  3449. }
  3450. yyf = YY_(yyformat);
  3451. yysize1 = yysize + strlen (yyf);
  3452. yysize_overflow |= yysize1 < yysize;
  3453. yysize = yysize1;
  3454. if (!yysize_overflow)
  3455. yymsg = (char *) YYMALLOC (yysize);
  3456. if (yymsg)
  3457. {
  3458. char *yyp = yymsg;
  3459. int yyi = 0;
  3460. while ((*yyp = *yyf))
  3461. {
  3462. if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
  3463. {
  3464. yyp += yytnamerr (yyp, yyarg[yyi++]);
  3465. yyf += 2;
  3466. }
  3467. else
  3468. {
  3469. yyp++;
  3470. yyf++;
  3471. }
  3472. }
  3473. yyerror (yymsg);
  3474. YYFREE (yymsg);
  3475. }
  3476. else
  3477. {
  3478. yyerror (YY_("syntax error"));
  3479. yyMemoryExhausted (yystackp);
  3480. }
  3481. }
  3482. else
  3483. #endif /* YYERROR_VERBOSE */
  3484. yyerror (YY_("syntax error"));
  3485. yynerrs += 1;
  3486. }
  3487. }
  3488. /* Recover from a syntax error on *YYSTACKP, assuming that *YYSTACKP->YYTOKENP,
  3489. yylval, and yylloc are the syntactic category, semantic value, and location
  3490. of the look-ahead. */
  3491. /*ARGSUSED*/ static void
  3492. yyrecoverSyntaxError (yyGLRStack* yystackp)
  3493. {
  3494. size_t yyk;
  3495. int yyj;
  3496. if (yystackp->yyerrState == 3)
  3497. /* We just shifted the error token and (perhaps) took some
  3498. reductions. Skip tokens until we can proceed. */
  3499. while (YYID (yytrue))
  3500. {
  3501. yySymbol yytoken;
  3502. if (yychar == YYEOF)
  3503. yyFail (yystackp, NULL);
  3504. if (yychar != YYEMPTY)
  3505. {
  3506. yytoken = YYTRANSLATE (yychar);
  3507. yydestruct ("Error: discarding",
  3508. yytoken, &yylval);
  3509. }
  3510. YYDPRINTF ((stderr, "Reading a token: "));
  3511. yychar = YYLEX;
  3512. yytoken = YYTRANSLATE (yychar);
  3513. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  3514. yyj = yypact[yystackp->yytops.yystates[0]->yylrState];
  3515. if (yyis_pact_ninf (yyj))
  3516. return;
  3517. yyj += yytoken;
  3518. if (yyj < 0 || YYLAST < yyj || yycheck[yyj] != yytoken)
  3519. {
  3520. if (yydefact[yystackp->yytops.yystates[0]->yylrState] != 0)
  3521. return;
  3522. }
  3523. else if (yytable[yyj] != 0 && ! yyis_table_ninf (yytable[yyj]))
  3524. return;
  3525. }
  3526. /* Reduce to one stack. */
  3527. for (yyk = 0; yyk < yystackp->yytops.yysize; yyk += 1)
  3528. if (yystackp->yytops.yystates[yyk] != NULL)
  3529. break;
  3530. if (yyk >= yystackp->yytops.yysize)
  3531. yyFail (yystackp, NULL);
  3532. for (yyk += 1; yyk < yystackp->yytops.yysize; yyk += 1)
  3533. yymarkStackDeleted (yystackp, yyk);
  3534. yyremoveDeletes (yystackp);
  3535. yycompressStack (yystackp);
  3536. /* Now pop stack until we find a state that shifts the error token. */
  3537. yystackp->yyerrState = 3;
  3538. while (yystackp->yytops.yystates[0] != NULL)
  3539. {
  3540. yyGLRState *yys = yystackp->yytops.yystates[0];
  3541. yyj = yypact[yys->yylrState];
  3542. if (! yyis_pact_ninf (yyj))
  3543. {
  3544. yyj += YYTERROR;
  3545. if (0 <= yyj && yyj <= YYLAST && yycheck[yyj] == YYTERROR
  3546. && yyisShiftAction (yytable[yyj]))
  3547. {
  3548. /* Shift the error token having adjusted its location. */
  3549. YYLTYPE yyerrloc;
  3550. YY_SYMBOL_PRINT ("Shifting", yystos[yytable[yyj]],
  3551. &yylval, &yyerrloc);
  3552. yyglrShift (yystackp, 0, yytable[yyj],
  3553. yys->yyposn, &yylval, &yyerrloc);
  3554. yys = yystackp->yytops.yystates[0];
  3555. break;
  3556. }
  3557. }
  3558. yydestroyGLRState ("Error: popping", yys);
  3559. yystackp->yytops.yystates[0] = yys->yypred;
  3560. yystackp->yynextFree -= 1;
  3561. yystackp->yyspaceLeft += 1;
  3562. }
  3563. if (yystackp->yytops.yystates[0] == NULL)
  3564. yyFail (yystackp, NULL);
  3565. }
  3566. #define YYCHK1(YYE) \
  3567. do { \
  3568. switch (YYE) { \
  3569. case yyok: \
  3570. break; \
  3571. case yyabort: \
  3572. goto yyabortlab; \
  3573. case yyaccept: \
  3574. goto yyacceptlab; \
  3575. case yyerr: \
  3576. goto yyuser_error; \
  3577. default: \
  3578. goto yybuglab; \
  3579. } \
  3580. } while (YYID (0))
  3581. /*----------.
  3582. | yyparse. |
  3583. `----------*/
  3584. int
  3585. yyparse (void)
  3586. {
  3587. int yyresult;
  3588. yyGLRStack yystack;
  3589. yyGLRStack* const yystackp = &yystack;
  3590. size_t yyposn;
  3591. YYDPRINTF ((stderr, "Starting parse\n"));
  3592. yychar = YYEMPTY;
  3593. yylval = yyval_default;
  3594. if (! yyinitGLRStack (yystackp, YYINITDEPTH))
  3595. goto yyexhaustedlab;
  3596. switch (YYSETJMP (yystack.yyexception_buffer))
  3597. {
  3598. case 0: break;
  3599. case 1: goto yyabortlab;
  3600. case 2: goto yyexhaustedlab;
  3601. default: goto yybuglab;
  3602. }
  3603. yyglrShift (&yystack, 0, 0, 0, &yylval, &yylloc);
  3604. yyposn = 0;
  3605. while (YYID (yytrue))
  3606. {
  3607. /* For efficiency, we have two loops, the first of which is
  3608. specialized to deterministic operation (single stack, no
  3609. potential ambiguity). */
  3610. /* Standard mode */
  3611. while (YYID (yytrue))
  3612. {
  3613. yyRuleNum yyrule;
  3614. int yyaction;
  3615. const short int* yyconflicts;
  3616. yyStateNum yystate = yystack.yytops.yystates[0]->yylrState;
  3617. YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  3618. if (yystate == YYFINAL)
  3619. goto yyacceptlab;
  3620. if (yyisDefaultedState (yystate))
  3621. {
  3622. yyrule = yydefaultAction (yystate);
  3623. if (yyrule == 0)
  3624. {
  3625. yyreportSyntaxError (&yystack);
  3626. goto yyuser_error;
  3627. }
  3628. YYCHK1 (yyglrReduce (&yystack, 0, yyrule, yytrue));
  3629. }
  3630. else
  3631. {
  3632. yySymbol yytoken;
  3633. if (yychar == YYEMPTY)
  3634. {
  3635. YYDPRINTF ((stderr, "Reading a token: "));
  3636. yychar = YYLEX;
  3637. yytoken = YYTRANSLATE (yychar);
  3638. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  3639. }
  3640. else
  3641. yytoken = YYTRANSLATE (yychar);
  3642. yygetLRActions (yystate, yytoken, &yyaction, &yyconflicts);
  3643. if (*yyconflicts != 0)
  3644. break;
  3645. if (yyisShiftAction (yyaction))
  3646. {
  3647. YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  3648. if (yychar != YYEOF)
  3649. yychar = YYEMPTY;
  3650. yyposn += 1;
  3651. yyglrShift (&yystack, 0, yyaction, yyposn, &yylval, &yylloc);
  3652. if (0 < yystack.yyerrState)
  3653. yystack.yyerrState -= 1;
  3654. }
  3655. else if (yyisErrorAction (yyaction))
  3656. {
  3657. yyreportSyntaxError (&yystack);
  3658. goto yyuser_error;
  3659. }
  3660. else
  3661. YYCHK1 (yyglrReduce (&yystack, 0, -yyaction, yytrue));
  3662. }
  3663. }
  3664. while (YYID (yytrue))
  3665. {
  3666. yySymbol yytoken_to_shift;
  3667. size_t yys;
  3668. for (yys = 0; yys < yystack.yytops.yysize; yys += 1)
  3669. yystackp->yytops.yylookaheadNeeds[yys] = yychar != YYEMPTY;
  3670. /* yyprocessOneStack returns one of three things:
  3671. - An error flag. If the caller is yyprocessOneStack, it
  3672. immediately returns as well. When the caller is finally
  3673. yyparse, it jumps to an error label via YYCHK1.
  3674. - yyok, but yyprocessOneStack has invoked yymarkStackDeleted
  3675. (&yystack, yys), which sets the top state of yys to NULL. Thus,
  3676. yyparse's following invocation of yyremoveDeletes will remove
  3677. the stack.
  3678. - yyok, when ready to shift a token.
  3679. Except in the first case, yyparse will invoke yyremoveDeletes and
  3680. then shift the next token onto all remaining stacks. This
  3681. synchronization of the shift (that is, after all preceding
  3682. reductions on all stacks) helps prevent double destructor calls
  3683. on yylval in the event of memory exhaustion. */
  3684. for (yys = 0; yys < yystack.yytops.yysize; yys += 1)
  3685. YYCHK1 (yyprocessOneStack (&yystack, yys, yyposn));
  3686. yyremoveDeletes (&yystack);
  3687. if (yystack.yytops.yysize == 0)
  3688. {
  3689. yyundeleteLastStack (&yystack);
  3690. if (yystack.yytops.yysize == 0)
  3691. yyFail (&yystack, YY_("syntax error"));
  3692. YYCHK1 (yyresolveStack (&yystack));
  3693. YYDPRINTF ((stderr, "Returning to deterministic operation.\n"));
  3694. yyreportSyntaxError (&yystack);
  3695. goto yyuser_error;
  3696. }
  3697. /* If any yyglrShift call fails, it will fail after shifting. Thus,
  3698. a copy of yylval will already be on stack 0 in the event of a
  3699. failure in the following loop. Thus, yychar is set to YYEMPTY
  3700. before the loop to make sure the user destructor for yylval isn't
  3701. called twice. */
  3702. yytoken_to_shift = YYTRANSLATE (yychar);
  3703. yychar = YYEMPTY;
  3704. yyposn += 1;
  3705. for (yys = 0; yys < yystack.yytops.yysize; yys += 1)
  3706. {
  3707. int yyaction;
  3708. const short int* yyconflicts;
  3709. yyStateNum yystate = yystack.yytops.yystates[yys]->yylrState;
  3710. yygetLRActions (yystate, yytoken_to_shift, &yyaction,
  3711. &yyconflicts);
  3712. /* Note that yyconflicts were handled by yyprocessOneStack. */
  3713. YYDPRINTF ((stderr, "On stack %lu, ", (unsigned long int) yys));
  3714. YY_SYMBOL_PRINT ("shifting", yytoken_to_shift, &yylval, &yylloc);
  3715. yyglrShift (&yystack, yys, yyaction, yyposn,
  3716. &yylval, &yylloc);
  3717. YYDPRINTF ((stderr, "Stack %lu now in state #%d\n",
  3718. (unsigned long int) yys,
  3719. yystack.yytops.yystates[yys]->yylrState));
  3720. }
  3721. if (yystack.yytops.yysize == 1)
  3722. {
  3723. YYCHK1 (yyresolveStack (&yystack));
  3724. YYDPRINTF ((stderr, "Returning to deterministic operation.\n"));
  3725. yycompressStack (&yystack);
  3726. break;
  3727. }
  3728. }
  3729. continue;
  3730. yyuser_error:
  3731. yyrecoverSyntaxError (&yystack);
  3732. yyposn = yystack.yytops.yystates[0]->yyposn;
  3733. }
  3734. yyacceptlab:
  3735. yyresult = 0;
  3736. goto yyreturn;
  3737. yybuglab:
  3738. YYASSERT (yyfalse);
  3739. goto yyabortlab;
  3740. yyabortlab:
  3741. yyresult = 1;
  3742. goto yyreturn;
  3743. yyexhaustedlab:
  3744. yyerror (YY_("memory exhausted"));
  3745. yyresult = 2;
  3746. goto yyreturn;
  3747. yyreturn:
  3748. if (yychar != YYEOF && yychar != YYEMPTY)
  3749. yydestruct ("Cleanup: discarding lookahead",
  3750. YYTRANSLATE (yychar),
  3751. &yylval);
  3752. /* If the stack is well-formed, pop the stack until it is empty,
  3753. destroying its entries as we go. But free the stack regardless
  3754. of whether it is well-formed. */
  3755. if (yystack.yyitems)
  3756. {
  3757. yyGLRState** yystates = yystack.yytops.yystates;
  3758. if (yystates)
  3759. {
  3760. size_t yysize = yystack.yytops.yysize;
  3761. size_t yyk;
  3762. for (yyk = 0; yyk < yysize; yyk += 1)
  3763. if (yystates[yyk])
  3764. {
  3765. while (yystates[yyk])
  3766. {
  3767. yyGLRState *yys = yystates[yyk];
  3768. yydestroyGLRState ("Cleanup: popping", yys);
  3769. yystates[yyk] = yys->yypred;
  3770. yystack.yynextFree -= 1;
  3771. yystack.yyspaceLeft += 1;
  3772. }
  3773. break;
  3774. }
  3775. }
  3776. yyfreeGLRStack (&yystack);
  3777. }
  3778. /* Make sure YYID is used. */
  3779. return YYID (yyresult);
  3780. }
  3781. /* DEBUGGING ONLY */
  3782. #ifdef YYDEBUG
  3783. static void yypstack (yyGLRStack* yystackp, size_t yyk)
  3784. __attribute__ ((__unused__));
  3785. static void yypdumpstack (yyGLRStack* yystackp) __attribute__ ((__unused__));
  3786. static void
  3787. yy_yypstack (yyGLRState* yys)
  3788. {
  3789. if (yys->yypred)
  3790. {
  3791. yy_yypstack (yys->yypred);
  3792. fprintf (stderr, " -> ");
  3793. }
  3794. fprintf (stderr, "%d@%lu", yys->yylrState, (unsigned long int) yys->yyposn);
  3795. }
  3796. static void
  3797. yypstates (yyGLRState* yyst)
  3798. {
  3799. if (yyst == NULL)
  3800. fprintf (stderr, "<null>");
  3801. else
  3802. yy_yypstack (yyst);
  3803. fprintf (stderr, "\n");
  3804. }
  3805. static void
  3806. yypstack (yyGLRStack* yystackp, size_t yyk)
  3807. {
  3808. yypstates (yystackp->yytops.yystates[yyk]);
  3809. }
  3810. #define YYINDEX(YYX) \
  3811. ((YYX) == NULL ? -1 : (yyGLRStackItem*) (YYX) - yystackp->yyitems)
  3812. static void
  3813. yypdumpstack (yyGLRStack* yystackp)
  3814. {
  3815. yyGLRStackItem* yyp;
  3816. size_t yyi;
  3817. for (yyp = yystackp->yyitems; yyp < yystackp->yynextFree; yyp += 1)
  3818. {
  3819. fprintf (stderr, "%3lu. ", (unsigned long int) (yyp - yystackp->yyitems));
  3820. if (*(yybool *) yyp)
  3821. {
  3822. fprintf (stderr, "Res: %d, LR State: %d, posn: %lu, pred: %ld",
  3823. yyp->yystate.yyresolved, yyp->yystate.yylrState,
  3824. (unsigned long int) yyp->yystate.yyposn,
  3825. (long int) YYINDEX (yyp->yystate.yypred));
  3826. if (! yyp->yystate.yyresolved)
  3827. fprintf (stderr, ", firstVal: %ld",
  3828. (long int) YYINDEX (yyp->yystate.yysemantics.yyfirstVal));
  3829. }
  3830. else
  3831. {
  3832. fprintf (stderr, "Option. rule: %d, state: %ld, next: %ld",
  3833. yyp->yyoption.yyrule - 1,
  3834. (long int) YYINDEX (yyp->yyoption.yystate),
  3835. (long int) YYINDEX (yyp->yyoption.yynext));
  3836. }
  3837. fprintf (stderr, "\n");
  3838. }
  3839. fprintf (stderr, "Tops:");
  3840. for (yyi = 0; yyi < yystackp->yytops.yysize; yyi += 1)
  3841. fprintf (stderr, "%lu: %ld; ", (unsigned long int) yyi,
  3842. (long int) YYINDEX (yystackp->yytops.yystates[yyi]));
  3843. fprintf (stderr, "\n");
  3844. }
  3845. #endif
  3846. #line 599 "parser.y"
  3847. char* xpath_alias(char* key) {
  3848. char* value = (char*) xmlHashLookup(alias_hash, key);
  3849. return value == NULL ? key : value;
  3850. }
  3851. void init_xpath_alias() {
  3852. alias_hash = xmlHashCreate(100);
  3853. xmlHashAddEntry(alias_hash, "html", "lib:html-document");
  3854. xmlHashAddEntry(alias_hash, "match", "regexp:match");
  3855. xmlHashAddEntry(alias_hash, "replace", "regexp:replace");
  3856. xmlHashAddEntry(alias_hash, "test", "regexp:test");
  3857. xmlHashAddEntry(alias_hash, "with-newlines", "lib:nl");
  3858. }
  3859. pxpathPtr myparse(char* string){
  3860. // start_debugging();
  3861. parsed_answer = NULL;
  3862. prepare_parse(string);
  3863. yyparse();
  3864. cleanup_parse();
  3865. return parsed_answer;
  3866. }
  3867. void answer(pxpathPtr a){
  3868. parsed_answer = a;
  3869. }
  3870. void start_debugging(){
  3871. yydebug = 1;
  3872. return;
  3873. }