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.

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