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

2929 lines
102 KiB

  1. /* A Bison parser, made by GNU Bison 3.0.4. */
  2. /* Bison implementation for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. /* As a special exception, you may create a larger work that contains
  15. part or all of the Bison parser skeleton and distribute that work
  16. under terms of your choice, so long as that work isn't itself a
  17. parser generator using the skeleton or a modified version thereof
  18. as a parser skeleton. Alternatively, if you modify or redistribute
  19. the parser skeleton itself, you may (at your option) remove this
  20. special exception, which will cause the skeleton and the resulting
  21. Bison output files to be licensed under the GNU General Public
  22. License without this special exception.
  23. This special exception was added by the Free Software Foundation in
  24. version 2.2 of Bison. */
  25. /* C LALR(1) parser skeleton written by Richard Stallman, by
  26. simplifying the original so-called "semantic" parser. */
  27. /* All symbols defined below should begin with yy or YY, to avoid
  28. infringing on user name space. This should be done even for local
  29. variables, as they might otherwise be expanded by user macros.
  30. There are some unavoidable exceptions within include files to
  31. define necessary library symbols; they are noted "INFRINGES ON
  32. USER NAME SPACE" below. */
  33. /* Identify Bison output. */
  34. #define YYBISON 1
  35. /* Bison version. */
  36. #define YYBISON_VERSION "3.0.4"
  37. /* Skeleton name. */
  38. #define YYSKELETON_NAME "yacc.c"
  39. /* Pure parsers. */
  40. #define YYPURE 2
  41. /* Push parsers. */
  42. #define YYPUSH 0
  43. /* Pull parsers. */
  44. #define YYPULL 1
  45. /* Copy the first part of user declarations. */
  46. #line 1 "parser.y" /* yacc.c:339 */
  47. #include "sol.h"
  48. #include "ast.h"
  49. #include <string.h>
  50. #define YYSTYPE void *
  51. #line 76 "parser.tab.c" /* yacc.c:339 */
  52. # ifndef YY_NULLPTR
  53. # if defined __cplusplus && 201103L <= __cplusplus
  54. # define YY_NULLPTR nullptr
  55. # else
  56. # define YY_NULLPTR 0
  57. # endif
  58. # endif
  59. /* Enabling verbose error messages. */
  60. #ifdef YYERROR_VERBOSE
  61. # undef YYERROR_VERBOSE
  62. # define YYERROR_VERBOSE 1
  63. #else
  64. # define YYERROR_VERBOSE 0
  65. #endif
  66. /* In a future release of Bison, this section will be replaced
  67. by #include "parser.tab.h". */
  68. #ifndef YY_YY_PARSER_TAB_H_INCLUDED
  69. # define YY_YY_PARSER_TAB_H_INCLUDED
  70. /* Debug traces. */
  71. #ifndef YYDEBUG
  72. # define YYDEBUG 1
  73. #endif
  74. #if YYDEBUG
  75. extern int yydebug;
  76. #endif
  77. /* Token type. */
  78. #ifndef YYTOKENTYPE
  79. # define YYTOKENTYPE
  80. enum yytokentype
  81. {
  82. IF = 258,
  83. THEN = 259,
  84. ELSE = 260,
  85. WHILE = 261,
  86. FOR = 262,
  87. IN = 263,
  88. DO = 264,
  89. FUNC = 265,
  90. LAMBDA = 266,
  91. RETURN = 267,
  92. BREAK = 268,
  93. CONTINUE = 269,
  94. END = 270,
  95. NONE = 271,
  96. IDENT = 272,
  97. INT = 273,
  98. FLOAT = 274,
  99. STRING = 275,
  100. PLUS = 276,
  101. MINUS = 277,
  102. STAR = 278,
  103. SLASH = 279,
  104. PERCENT = 280,
  105. DSTAR = 281,
  106. BAND = 282,
  107. BOR = 283,
  108. BXOR = 284,
  109. BNOT = 285,
  110. LAND = 286,
  111. LOR = 287,
  112. LNOT = 288,
  113. ASSIGN = 289,
  114. ASSIGNPLUS = 290,
  115. ASSIGNMINUS = 291,
  116. ASSIGNSTAR = 292,
  117. ASSIGNSLASH = 293,
  118. ASSIGNDSTAR = 294,
  119. ASSIGNBAND = 295,
  120. ASSIGNBOR = 296,
  121. ASSIGNBXOR = 297,
  122. EQUAL = 298,
  123. NEQUAL = 299,
  124. LESS = 300,
  125. GREATER = 301,
  126. LESSEQ = 302,
  127. GREATEREQ = 303,
  128. RSHIFT = 304,
  129. LSHIFT = 305,
  130. LBRACE = 306,
  131. RBRACE = 307,
  132. BLPAREN = 308,
  133. LPAREN = 309,
  134. RPAREN = 310,
  135. LBRACKET = 311,
  136. RBRACKET = 312,
  137. DOT = 313,
  138. COLON = 314,
  139. SEMICOLON = 315,
  140. COMMA = 316,
  141. POUND = 317,
  142. TBANG = 318
  143. };
  144. #endif
  145. /* Value type. */
  146. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  147. typedef int YYSTYPE;
  148. # define YYSTYPE_IS_TRIVIAL 1
  149. # define YYSTYPE_IS_DECLARED 1
  150. #endif
  151. /* Location type. */
  152. #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
  153. typedef struct YYLTYPE YYLTYPE;
  154. struct YYLTYPE
  155. {
  156. int first_line;
  157. int first_column;
  158. int last_line;
  159. int last_column;
  160. };
  161. # define YYLTYPE_IS_DECLARED 1
  162. # define YYLTYPE_IS_TRIVIAL 1
  163. #endif
  164. int yyparse (stmt_node **program);
  165. #endif /* !YY_YY_PARSER_TAB_H_INCLUDED */
  166. /* Copy the second part of user declarations. */
  167. #line 204 "parser.tab.c" /* yacc.c:358 */
  168. #ifdef short
  169. # undef short
  170. #endif
  171. #ifdef YYTYPE_UINT8
  172. typedef YYTYPE_UINT8 yytype_uint8;
  173. #else
  174. typedef unsigned char yytype_uint8;
  175. #endif
  176. #ifdef YYTYPE_INT8
  177. typedef YYTYPE_INT8 yytype_int8;
  178. #else
  179. typedef signed char yytype_int8;
  180. #endif
  181. #ifdef YYTYPE_UINT16
  182. typedef YYTYPE_UINT16 yytype_uint16;
  183. #else
  184. typedef unsigned short int yytype_uint16;
  185. #endif
  186. #ifdef YYTYPE_INT16
  187. typedef YYTYPE_INT16 yytype_int16;
  188. #else
  189. typedef short int yytype_int16;
  190. #endif
  191. #ifndef YYSIZE_T
  192. # ifdef __SIZE_TYPE__
  193. # define YYSIZE_T __SIZE_TYPE__
  194. # elif defined size_t
  195. # define YYSIZE_T size_t
  196. # elif ! defined YYSIZE_T
  197. # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  198. # define YYSIZE_T size_t
  199. # else
  200. # define YYSIZE_T unsigned int
  201. # endif
  202. #endif
  203. #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
  204. #ifndef YY_
  205. # if defined YYENABLE_NLS && YYENABLE_NLS
  206. # if ENABLE_NLS
  207. # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
  208. # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
  209. # endif
  210. # endif
  211. # ifndef YY_
  212. # define YY_(Msgid) Msgid
  213. # endif
  214. #endif
  215. #ifndef YY_ATTRIBUTE
  216. # if (defined __GNUC__ \
  217. && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
  218. || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
  219. # define YY_ATTRIBUTE(Spec) __attribute__(Spec)
  220. # else
  221. # define YY_ATTRIBUTE(Spec) /* empty */
  222. # endif
  223. #endif
  224. #ifndef YY_ATTRIBUTE_PURE
  225. # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
  226. #endif
  227. #ifndef YY_ATTRIBUTE_UNUSED
  228. # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
  229. #endif
  230. #if !defined _Noreturn \
  231. && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
  232. # if defined _MSC_VER && 1200 <= _MSC_VER
  233. # define _Noreturn __declspec (noreturn)
  234. # else
  235. # define _Noreturn YY_ATTRIBUTE ((__noreturn__))
  236. # endif
  237. #endif
  238. /* Suppress unused-variable warnings by "using" E. */
  239. #if ! defined lint || defined __GNUC__
  240. # define YYUSE(E) ((void) (E))
  241. #else
  242. # define YYUSE(E) /* empty */
  243. #endif
  244. #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
  245. /* Suppress an incorrect diagnostic about yylval being uninitialized. */
  246. # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
  247. _Pragma ("GCC diagnostic push") \
  248. _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
  249. _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
  250. # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
  251. _Pragma ("GCC diagnostic pop")
  252. #else
  253. # define YY_INITIAL_VALUE(Value) Value
  254. #endif
  255. #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  256. # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  257. # define YY_IGNORE_MAYBE_UNINITIALIZED_END
  258. #endif
  259. #ifndef YY_INITIAL_VALUE
  260. # define YY_INITIAL_VALUE(Value) /* Nothing. */
  261. #endif
  262. #if ! defined yyoverflow || YYERROR_VERBOSE
  263. /* The parser invokes alloca or malloc; define the necessary symbols. */
  264. # ifdef YYSTACK_USE_ALLOCA
  265. # if YYSTACK_USE_ALLOCA
  266. # ifdef __GNUC__
  267. # define YYSTACK_ALLOC __builtin_alloca
  268. # elif defined __BUILTIN_VA_ARG_INCR
  269. # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
  270. # elif defined _AIX
  271. # define YYSTACK_ALLOC __alloca
  272. # elif defined _MSC_VER
  273. # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
  274. # define alloca _alloca
  275. # else
  276. # define YYSTACK_ALLOC alloca
  277. # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
  278. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  279. /* Use EXIT_SUCCESS as a witness for stdlib.h. */
  280. # ifndef EXIT_SUCCESS
  281. # define EXIT_SUCCESS 0
  282. # endif
  283. # endif
  284. # endif
  285. # endif
  286. # endif
  287. # ifdef YYSTACK_ALLOC
  288. /* Pacify GCC's 'empty if-body' warning. */
  289. # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
  290. # ifndef YYSTACK_ALLOC_MAXIMUM
  291. /* The OS might guarantee only one guard page at the bottom of the stack,
  292. and a page size can be as small as 4096 bytes. So we cannot safely
  293. invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
  294. to allow for a few compiler-allocated temporary stack slots. */
  295. # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
  296. # endif
  297. # else
  298. # define YYSTACK_ALLOC YYMALLOC
  299. # define YYSTACK_FREE YYFREE
  300. # ifndef YYSTACK_ALLOC_MAXIMUM
  301. # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
  302. # endif
  303. # if (defined __cplusplus && ! defined EXIT_SUCCESS \
  304. && ! ((defined YYMALLOC || defined malloc) \
  305. && (defined YYFREE || defined free)))
  306. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  307. # ifndef EXIT_SUCCESS
  308. # define EXIT_SUCCESS 0
  309. # endif
  310. # endif
  311. # ifndef YYMALLOC
  312. # define YYMALLOC malloc
  313. # if ! defined malloc && ! defined EXIT_SUCCESS
  314. void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
  315. # endif
  316. # endif
  317. # ifndef YYFREE
  318. # define YYFREE free
  319. # if ! defined free && ! defined EXIT_SUCCESS
  320. void free (void *); /* INFRINGES ON USER NAME SPACE */
  321. # endif
  322. # endif
  323. # endif
  324. #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
  325. #if (! defined yyoverflow \
  326. && (! defined __cplusplus \
  327. || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
  328. && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
  329. /* A type that is properly aligned for any stack member. */
  330. union yyalloc
  331. {
  332. yytype_int16 yyss_alloc;
  333. YYSTYPE yyvs_alloc;
  334. YYLTYPE yyls_alloc;
  335. };
  336. /* The size of the maximum gap between one aligned stack and the next. */
  337. # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  338. /* The size of an array large to enough to hold all stacks, each with
  339. N elements. */
  340. # define YYSTACK_BYTES(N) \
  341. ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
  342. + 2 * YYSTACK_GAP_MAXIMUM)
  343. # define YYCOPY_NEEDED 1
  344. /* Relocate STACK from its old location to the new one. The
  345. local variables YYSIZE and YYSTACKSIZE give the old and new number of
  346. elements in the stack, and YYPTR gives the new location of the
  347. stack. Advance YYPTR to a properly aligned location for the next
  348. stack. */
  349. # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
  350. do \
  351. { \
  352. YYSIZE_T yynewbytes; \
  353. YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
  354. Stack = &yyptr->Stack_alloc; \
  355. yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  356. yyptr += yynewbytes / sizeof (*yyptr); \
  357. } \
  358. while (0)
  359. #endif
  360. #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
  361. /* Copy COUNT objects from SRC to DST. The source and destination do
  362. not overlap. */
  363. # ifndef YYCOPY
  364. # if defined __GNUC__ && 1 < __GNUC__
  365. # define YYCOPY(Dst, Src, Count) \
  366. __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
  367. # else
  368. # define YYCOPY(Dst, Src, Count) \
  369. do \
  370. { \
  371. YYSIZE_T yyi; \
  372. for (yyi = 0; yyi < (Count); yyi++) \
  373. (Dst)[yyi] = (Src)[yyi]; \
  374. } \
  375. while (0)
  376. # endif
  377. # endif
  378. #endif /* !YYCOPY_NEEDED */
  379. /* YYFINAL -- State number of the termination state. */
  380. #define YYFINAL 3
  381. /* YYLAST -- Last index in YYTABLE. */
  382. #define YYLAST 830
  383. /* YYNTOKENS -- Number of terminals. */
  384. #define YYNTOKENS 64
  385. /* YYNNTS -- Number of nonterminals. */
  386. #define YYNNTS 31
  387. /* YYNRULES -- Number of rules. */
  388. #define YYNRULES 113
  389. /* YYNSTATES -- Number of states. */
  390. #define YYNSTATES 211
  391. /* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
  392. by yylex, with out-of-bounds checking. */
  393. #define YYUNDEFTOK 2
  394. #define YYMAXUTOK 318
  395. #define YYTRANSLATE(YYX) \
  396. ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  397. /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
  398. as returned by yylex, without out-of-bounds checking. */
  399. static const yytype_uint8 yytranslate[] =
  400. {
  401. 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  402. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  403. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  404. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  405. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  406. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  407. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  408. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  409. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  410. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  411. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  412. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  413. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  414. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  415. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  416. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  417. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  418. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  419. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  420. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  421. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  422. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  423. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  424. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  425. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  426. 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  427. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  428. 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  429. 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
  430. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  431. 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
  432. 55, 56, 57, 58, 59, 60, 61, 62, 63
  433. };
  434. #if YYDEBUG
  435. /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
  436. static const yytype_uint16 yyrline[] =
  437. {
  438. 0, 34, 34, 38, 49, 59, 60, 61, 62, 63,
  439. 64, 65, 66, 70, 74, 82, 90, 97, 105, 109,
  440. 110, 117, 124, 131, 138, 145, 152, 159, 166, 179,
  441. 192, 205, 218, 231, 244, 257, 270, 283, 287, 288,
  442. 289, 293, 294, 298, 299, 300, 301, 302, 303, 304,
  443. 308, 309, 310, 314, 315, 316, 317, 321, 322, 326,
  444. 327, 332, 333, 334, 335, 336, 337, 341, 342, 346,
  445. 347, 351, 352, 360, 364, 373, 382, 394, 398, 399,
  446. 410, 414, 415, 429, 430, 434, 435, 436, 437, 438,
  447. 439, 443, 444, 445, 449, 453, 454, 459, 460, 491,
  448. 492, 527, 540, 575, 579, 580, 585, 586, 598, 603,
  449. 615, 616, 620, 621
  450. };
  451. #endif
  452. #if YYDEBUG || YYERROR_VERBOSE || 0
  453. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  454. First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  455. static const char *const yytname[] =
  456. {
  457. "$end", "error", "$undefined", "IF", "THEN", "ELSE", "WHILE", "FOR",
  458. "IN", "DO", "FUNC", "LAMBDA", "RETURN", "BREAK", "CONTINUE", "END",
  459. "NONE", "IDENT", "INT", "FLOAT", "STRING", "PLUS", "MINUS", "STAR",
  460. "SLASH", "PERCENT", "DSTAR", "BAND", "BOR", "BXOR", "BNOT", "LAND",
  461. "LOR", "LNOT", "ASSIGN", "ASSIGNPLUS", "ASSIGNMINUS", "ASSIGNSTAR",
  462. "ASSIGNSLASH", "ASSIGNDSTAR", "ASSIGNBAND", "ASSIGNBOR", "ASSIGNBXOR",
  463. "EQUAL", "NEQUAL", "LESS", "GREATER", "LESSEQ", "GREATEREQ", "RSHIFT",
  464. "LSHIFT", "LBRACE", "RBRACE", "BLPAREN", "LPAREN", "RPAREN", "LBRACKET",
  465. "RBRACKET", "DOT", "COLON", "SEMICOLON", "COMMA", "POUND", "TBANG",
  466. "$accept", "program", "stmt_list", "stmt", "expr", "control_expr",
  467. "assign_expr", "logic_expr", "ulogic_expr", "rel_expr", "term_expr",
  468. "factor_expr", "power_expr", "tbang_expr", "binary_expr", "ubinary_expr",
  469. "ulen_expr", "call_expr", "funcdecl_expr", "index_expr", "ex_index_expr",
  470. "ref_expr", "lit_expr", "gen_expr", "paren_expr", "expr_list",
  471. "param_list", "assoc_list", "assoc_item", "any_lparen", "maybe_anno", YY_NULLPTR
  472. };
  473. #endif
  474. # ifdef YYPRINT
  475. /* YYTOKNUM[NUM] -- (External) token number corresponding to the
  476. (internal) symbol number NUM (which must be that of a token). */
  477. static const yytype_uint16 yytoknum[] =
  478. {
  479. 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  480. 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
  481. 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
  482. 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
  483. 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
  484. 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
  485. 315, 316, 317, 318
  486. };
  487. # endif
  488. #define YYPACT_NINF -156
  489. #define yypact_value_is_default(Yystate) \
  490. (!!((Yystate) == (-156)))
  491. #define YYTABLE_NINF -83
  492. #define yytable_value_is_error(Yytable_value) \
  493. 0
  494. /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  495. STATE-NUM. */
  496. static const yytype_int16 yypact[] =
  497. {
  498. -156, 44, 380, -156, 573, 573, 2, 57, -19, 573,
  499. 573, 573, -156, 226, -156, -156, -156, 53, 573, 573,
  500. -3, -156, -156, 573, 573, 5, 58, -156, -156, 15,
  501. -156, -156, 75, 0, -156, 62, -12, -156, -156, -41,
  502. -156, -156, 305, -156, -156, -156, -156, 573, 8, 21,
  503. 83, -19, -156, -156, 58, 58, 58, 573, 573, 573,
  504. 573, 573, 573, 573, 573, 573, -156, 58, 615, 113,
  505. 65, 573, 33, -156, 58, 434, 658, -156, 573, 96,
  506. 573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
  507. 573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
  508. 573, 100, 573, 573, 573, 573, 573, 573, 573, 573,
  509. 573, -27, -156, -156, 573, -156, 26, 31, 58, 58,
  510. 58, 58, 58, 58, 58, 58, 58, 573, 132, -156,
  511. -156, -156, -156, -156, 58, 140, 384, -156, -156, 0,
  512. 0, 126, 126, 126, 126, 126, 126, -156, -156, -156,
  513. 772, 701, 701, 701, 701, 701, 744, 459, 88, 58,
  514. 58, 58, 58, 58, 58, 58, 58, 58, -156, 121,
  515. 197, 24, 92, -23, 129, 89, -156, 89, 58, 115,
  516. 463, -156, 573, -156, -156, -156, -156, 89, 573, 573,
  517. -156, -156, -156, 573, 573, 516, 222, 276, -156, 58,
  518. 58, 301, 37, 58, -156, -156, -156, 355, -156, -156,
  519. -156
  520. };
  521. /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
  522. Performed when YYTABLE does not specify something else to do. Zero
  523. means the default is an error. */
  524. static const yytype_uint8 yydefact[] =
  525. {
  526. 4, 0, 2, 1, 0, 0, 0, 0, 0, 7,
  527. 8, 10, 89, 83, 85, 87, 88, 0, 0, 0,
  528. 104, 111, 110, 95, 0, 3, 5, 13, 18, 37,
  529. 40, 42, 49, 52, 56, 58, 60, 66, 68, 70,
  530. 73, 77, 0, 80, 84, 90, 93, 0, 0, 0,
  531. 0, 0, 99, 99, 6, 9, 11, 0, 0, 0,
  532. 0, 0, 0, 0, 0, 0, 86, 0, 67, 41,
  533. 0, 0, 0, 105, 96, 0, 69, 12, 0, 0,
  534. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  535. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  536. 95, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  537. 0, 0, 4, 4, 0, 99, 0, 0, 19, 20,
  538. 21, 22, 23, 24, 25, 26, 27, 0, 0, 92,
  539. 106, 107, 91, 97, 98, 0, 79, 38, 39, 50,
  540. 51, 43, 44, 45, 46, 47, 48, 53, 54, 55,
  541. 57, 61, 62, 63, 65, 64, 59, 0, 0, 28,
  542. 29, 30, 31, 32, 33, 34, 35, 36, 94, 0,
  543. 0, 0, 0, 113, 0, 113, 103, 113, 109, 0,
  544. 78, 71, 95, 4, 14, 16, 4, 113, 0, 0,
  545. 102, 101, 4, 0, 0, 0, 0, 0, 4, 100,
  546. 112, 0, 0, 108, 72, 15, 17, 0, 75, 76,
  547. 74
  548. };
  549. /* YYPGOTO[NTERM-NUM]. */
  550. static const yytype_int16 yypgoto[] =
  551. {
  552. -156, -156, -108, -156, -2, -156, -156, -156, -13, 76,
  553. -156, 47, -51, 51, 205, 134, 135, -156, -156, -156,
  554. -156, -156, -156, -156, -156, -99, -43, -156, 84, 19,
  555. -155
  556. };
  557. /* YYDEFGOTO[NTERM-NUM]. */
  558. static const yytype_int16 yydefgoto[] =
  559. {
  560. -1, 1, 2, 25, 67, 27, 28, 29, 30, 31,
  561. 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
  562. 42, 43, 44, 45, 46, 75, 116, 72, 73, 47,
  563. 190
  564. };
  565. /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
  566. positive, shift that token. If negative, reduce the rule whose
  567. number is the opposite. If YYTABLE_NINF, syntax error. */
  568. static const yytype_int16 yytable[] =
  569. {
  570. 26, 157, 48, 49, 169, 170, 69, 54, 55, 56,
  571. 117, 188, 112, 100, 70, 94, 95, 96, 101, 50,
  572. 192, 74, 193, 90, 91, 92, 52, 53, 168, 78,
  573. 113, 79, 198, 186, 21, 22, 189, 97, 98, 147,
  574. 148, 149, 150, 173, 3, 111, 80, 81, 173, 174,
  575. 70, 99, 209, 71, 174, 118, 119, 120, 121, 122,
  576. 123, 124, 125, 126, 78, 77, 79, 137, 138, 128,
  577. 115, 66, 172, 134, 51, 196, 135, 78, 197, 79,
  578. 78, 175, 79, 195, 201, 129, 177, 176, 93, 71,
  579. 207, 114, 176, 78, 130, 79, 82, 83, 74, 127,
  580. 159, 160, 161, 162, 163, 164, 165, 166, 167, 173,
  581. 21, 22, 171, 136, 78, 174, 79, 158, 84, 85,
  582. 86, 87, 88, 89, 4, 178, 183, 5, 6, 139,
  583. 140, 7, 8, 9, 10, 11, 184, 12, 13, 14,
  584. 15, 16, 182, 17, -40, -40, 191, 187, 189, 194,
  585. 156, 18, 68, 176, 19, 134, 131, -42, -42, 76,
  586. 141, 142, 143, 144, 145, 146, 0, 26, 26, -40,
  587. 0, -40, 20, 0, 21, 22, 0, 23, 0, 0,
  588. 74, 0, -42, 24, -42, 0, 199, 200, 78, 179,
  589. 79, 202, 203, 134, 26, 26, 78, 180, 79, 26,
  590. 4, 0, 0, 5, 6, 26, 0, 7, 8, 9,
  591. 10, 11, 185, 12, 13, 14, 15, 16, 0, 17,
  592. 0, 0, 0, 0, 0, 4, 0, 18, 5, 6,
  593. 19, 0, 7, 8, 9, 10, 11, 205, 12, 13,
  594. 14, 15, 16, 0, 17, 0, 0, 0, 20, 0,
  595. 21, 22, 18, 23, 0, 19, 0, 0, 0, 24,
  596. 57, 58, 59, 60, 61, 62, 63, 64, 65, 0,
  597. 0, 0, 0, 20, 0, 21, 22, 0, 23, 4,
  598. 0, 0, 5, 6, 24, 0, 7, 8, 9, 10,
  599. 11, 206, 12, 13, 14, 15, 16, 0, 17, 151,
  600. 152, 153, 154, 155, 4, 0, 18, 5, 6, 19,
  601. 0, 7, 8, 9, 10, 11, 208, 12, 13, 14,
  602. 15, 16, 0, 17, 0, 0, 0, 20, 0, 21,
  603. 22, 18, 23, 0, 19, 0, 0, 0, 24, 102,
  604. 103, 104, 105, 106, 107, 108, 109, 110, 0, 0,
  605. 0, 0, 20, 0, 21, 22, 0, 23, 4, 0,
  606. 0, 5, 6, 24, 0, 7, 8, 9, 10, 11,
  607. 210, 12, 13, 14, 15, 16, 0, 17, 0, 0,
  608. 0, 0, 0, 4, 0, 18, 5, 6, 19, 0,
  609. 7, 8, 9, 10, 11, 0, 12, 13, 14, 15,
  610. 16, 0, 17, 0, 0, 0, 20, 0, 21, 22,
  611. 18, 23, 0, 19, 0, 0, 0, 24, -82, -82,
  612. -82, -82, -82, -82, -82, -82, -82, 0, 0, 0,
  613. 0, 20, 0, 21, 22, 0, 23, 4, 0, 0,
  614. 5, 6, 24, 0, 7, 8, 0, 0, 0, 0,
  615. 12, 13, 14, 15, 16, 0, 17, 0, 0, 0,
  616. 0, 0, 4, 0, 18, 5, 6, 19, 0, 7,
  617. 8, 0, 0, 0, 0, 12, 13, 14, 15, 16,
  618. 0, 17, 0, 0, 0, 20, 0, 21, 22, 18,
  619. 23, 132, 19, 0, 0, 133, 24, -81, -81, -81,
  620. -81, -81, -81, -81, -81, -81, 0, 0, 0, 0,
  621. 20, 0, 21, 22, 181, 23, 0, 0, 0, 4,
  622. 133, 24, 5, 6, 0, 0, 7, 8, 0, 0,
  623. 0, 0, 12, 13, 14, 15, 16, 0, 17, 0,
  624. 0, 0, 0, 0, 0, 0, 18, 0, 0, 19,
  625. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  626. 0, 0, 0, 0, 0, 0, 0, 20, 0, 21,
  627. 22, 204, 23, 0, 0, 0, 4, 133, 24, 5,
  628. 6, 0, 0, 7, 8, 0, 0, 0, 0, 12,
  629. 13, 14, 15, 16, 0, 17, 0, 0, 0, 0,
  630. 0, 0, 0, 18, 0, 0, 19, 0, 0, 0,
  631. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  632. 0, 0, 0, 0, 20, 0, 21, 22, 0, 23,
  633. 0, 0, 0, 0, 0, 24, -66, -66, -66, -66,
  634. -66, -66, -66, -66, -66, 0, -66, -66, 0, 0,
  635. 0, 0, 0, 0, 0, 0, 0, 0, -66, -66,
  636. -66, -66, -66, -66, -66, -66, 0, 0, 0, 0,
  637. 0, -66, 0, -66, 0, 0, 0, 0, -66, -68,
  638. -68, -68, -68, -68, -68, -68, -68, -68, 0, -68,
  639. -68, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  640. 0, -68, -68, -68, -68, -68, -68, -68, -68, 0,
  641. 0, 0, 0, 0, -68, 0, -68, 0, 0, 0,
  642. 0, -68, -60, -60, -60, -60, -60, -60, 94, 95,
  643. 96, 0, -60, -60, 0, 0, 0, 0, 0, 0,
  644. 0, 0, 0, 0, -60, -60, -60, -60, -60, -60,
  645. 97, 98, 0, 0, 0, 0, 0, -60, 0, -60,
  646. 0, 0, 0, 0, 99, -58, -58, -58, -58, -58,
  647. 93, 0, 0, 0, 0, -58, -58, 0, 0, 0,
  648. 0, 0, 0, 0, 0, 0, 0, -58, -58, -58,
  649. -58, -58, -58, -56, -56, -56, -56, -56, 0, 0,
  650. -58, 0, -58, -56, -56, 0, 0, 0, 0, 0,
  651. 0, 0, 0, 0, 0, -56, -56, -56, -56, -56,
  652. -56, 0, 0, 0, 0, 0, 0, 0, -56, 0,
  653. -56
  654. };
  655. static const yytype_int16 yycheck[] =
  656. {
  657. 2, 100, 4, 5, 112, 113, 19, 9, 10, 11,
  658. 53, 34, 4, 54, 17, 27, 28, 29, 59, 17,
  659. 175, 23, 177, 23, 24, 25, 7, 8, 55, 56,
  660. 9, 58, 187, 9, 53, 54, 59, 49, 50, 90,
  661. 91, 92, 93, 17, 0, 47, 31, 32, 17, 23,
  662. 17, 63, 15, 56, 23, 57, 58, 59, 60, 61,
  663. 62, 63, 64, 65, 56, 60, 58, 80, 81, 71,
  664. 51, 18, 115, 75, 17, 183, 78, 56, 186, 58,
  665. 56, 55, 58, 182, 192, 52, 55, 61, 26, 56,
  666. 198, 8, 61, 56, 61, 58, 21, 22, 100, 34,
  667. 102, 103, 104, 105, 106, 107, 108, 109, 110, 17,
  668. 53, 54, 114, 17, 56, 23, 58, 17, 43, 44,
  669. 45, 46, 47, 48, 3, 127, 5, 6, 7, 82,
  670. 83, 10, 11, 12, 13, 14, 15, 16, 17, 18,
  671. 19, 20, 54, 22, 31, 32, 17, 55, 59, 34,
  672. 99, 30, 18, 61, 33, 157, 72, 31, 32, 24,
  673. 84, 85, 86, 87, 88, 89, -1, 169, 170, 56,
  674. -1, 58, 51, -1, 53, 54, -1, 56, -1, -1,
  675. 182