Debian Codegraph @

src/core/chuck_yacc.c

raw symbols SCIP
1 /* A Bison parser, made by GNU Bison 2.3. */
2
3 /* Skeleton implementation for Bison's Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
22
23 /* As a special exception, you may create a larger work that contains
24 part or all of the Bison parser skeleton and distribute that work
25 under terms of your choice, so long as that work isn't itself a
26 parser generator using the skeleton or a modified version thereof
27 as a parser skeleton. Alternatively, if you modify or redistribute
28 the parser skeleton itself, you may (at your option) remove this
29 special exception, which will cause the skeleton and the resulting
30 Bison output files to be licensed under the GNU General Public
31 License without this special exception.
32
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
35
36 /* C LALR(1) parser skeleton written by Richard Stallman, by
37 simplifying the original so-called "semantic" parser. */
38
39 /* All symbols defined below should begin with yy or YY, to avoid
40 infringing on user name space. This should be done even for local
41 variables, as they might otherwise be expanded by user macros.
42 There are some unavoidable exceptions within include files to
43 define necessary library symbols; they are noted "INFRINGES ON
44 USER NAME SPACE" below. */
45
46 /* Identify Bison output. */
47 #define YYBISON 1
48
49 /* Bison version. */
50 #define YYBISON_VERSION "2.3"
51
52 /* Skeleton name. */
53 #define YYSKELETON_NAME "yacc.c"
54
55 /* Pure parsers. */
56 #define YYPURE 0
57
58 /* Using locations. */
59 #define YYLSP_NEEDED 1
60
61
62
63 /* Tokens. */
64 #ifndef YYTOKENTYPE
65 # define YYTOKENTYPE
66 /* Put the tokens into the symbol table, so that GDB and other debuggers
67 know about them. */
68 enum yytokentype {
69 ID = 258,
70 STRING_LIT = 259,
71 CHAR_LIT = 260,
72 INT_VAL = 261,
73 FLOAT_VAL = 262,
74 POUND = 263,
75 COMMA = 264,
76 COLON = 265,
77 SEMICOLON = 266,
78 LPAREN = 267,
79 RPAREN = 268,
80 LBRACK = 269,
81 RBRACK = 270,
82 LBRACE = 271,
83 RBRACE = 272,
84 DOT = 273,
85 PLUS = 274,
86 MINUS = 275,
87 TIMES = 276,
88 DIVIDE = 277,
89 PERCENT = 278,
90 EQ = 279,
91 NEQ = 280,
92 LT = 281,
93 LE = 282,
94 GT = 283,
95 GE = 284,
96 AND = 285,
97 OR = 286,
98 ASSIGN = 287,
99 IF = 288,
100 THEN = 289,
101 ELSE = 290,
102 WHILE = 291,
103 FOR = 292,
104 DO = 293,
105 LOOP = 294,
106 BREAK = 295,
107 CONTINUE = 296,
108 NULL_TOK = 297,
109 FUNCTION = 298,
110 RETURN = 299,
111 QUESTION = 300,
112 EXCLAMATION = 301,
113 S_OR = 302,
114 S_AND = 303,
115 S_XOR = 304,
116 PLUSPLUS = 305,
117 MINUSMINUS = 306,
118 DOLLAR = 307,
119 POUNDPAREN = 308,
120 PERCENTPAREN = 309,
121 ATPAREN = 310,
122 SIMULT = 311,
123 PATTERN = 312,
124 CODE = 313,
125 TRANSPORT = 314,
126 HOST = 315,
127 TIME = 316,
128 WHENEVER = 317,
129 NEXT = 318,
130 UNTIL = 319,
131 EXTERNAL = 320,
132 GLOBAL = 321,
133 EVERY = 322,
134 BEFORE = 323,
135 AFTER = 324,
136 AT = 325,
137 AT_SYM = 326,
138 ATAT_SYM = 327,
139 NEW = 328,
140 SIZEOF = 329,
141 TYPEOF = 330,
142 SAME = 331,
143 PLUS_CHUCK = 332,
144 MINUS_CHUCK = 333,
145 TIMES_CHUCK = 334,
146 DIVIDE_CHUCK = 335,
147 S_AND_CHUCK = 336,
148 S_OR_CHUCK = 337,
149 S_XOR_CHUCK = 338,
150 SHIFT_RIGHT_CHUCK = 339,
151 SHIFT_LEFT_CHUCK = 340,
152 PERCENT_CHUCK = 341,
153 SHIFT_RIGHT = 342,
154 SHIFT_LEFT = 343,
155 TILDA = 344,
156 CHUCK = 345,
157 COLONCOLON = 346,
158 S_CHUCK = 347,
159 AT_CHUCK = 348,
160 LEFT_S_CHUCK = 349,
161 UNCHUCK = 350,
162 UPCHUCK = 351,
163 DOWNCHUCK = 352,
164 CLASS = 353,
165 INTERFACE = 354,
166 EXTENDS = 355,
167 IMPLEMENTS = 356,
168 PUBLIC = 357,
169 PROTECTED = 358,
170 PRIVATE = 359,
171 STATIC = 360,
172 ABSTRACT = 361,
173 CONST = 362,
174 SPORK = 363,
175 ARROW_RIGHT = 364,
176 ARROW_LEFT = 365,
177 L_HACK = 366,
178 R_HACK = 367,
179 GRUCK_RIGHT = 368,
180 GRUCK_LEFT = 369,
181 UNGRUCK_RIGHT = 370,
182 UNGRUCK_LEFT = 371,
183 AT_OP = 372,
184 AT_CTOR = 373,
185 AT_DTOR = 374,
186 AT_IMPORT = 375,
187 AT_DOC = 376
188 };
189 #endif
190 /* Tokens. */
191 #define ID 258
192 #define STRING_LIT 259
193 #define CHAR_LIT 260
194 #define INT_VAL 261
195 #define FLOAT_VAL 262
196 #define POUND 263
197 #define COMMA 264
198 #define COLON 265
199 #define SEMICOLON 266
200 #define LPAREN 267
201 #define RPAREN 268
202 #define LBRACK 269
203 #define RBRACK 270
204 #define LBRACE 271
205 #define RBRACE 272
206 #define DOT 273
207 #define PLUS 274
208 #define MINUS 275
209 #define TIMES 276
210 #define DIVIDE 277
211 #define PERCENT 278
212 #define EQ 279
213 #define NEQ 280
214 #define LT 281
215 #define LE 282
216 #define GT 283
217 #define GE 284
218 #define AND 285
219 #define OR 286
220 #define ASSIGN 287
221 #define IF 288
222 #define THEN 289
223 #define ELSE 290
224 #define WHILE 291
225 #define FOR 292
226 #define DO 293
227 #define LOOP 294
228 #define BREAK 295
229 #define CONTINUE 296
230 #define NULL_TOK 297
231 #define FUNCTION 298
232 #define RETURN 299
233 #define QUESTION 300
234 #define EXCLAMATION 301
235 #define S_OR 302
236 #define S_AND 303
237 #define S_XOR 304
238 #define PLUSPLUS 305
239 #define MINUSMINUS 306
240 #define DOLLAR 307
241 #define POUNDPAREN 308
242 #define PERCENTPAREN 309
243 #define ATPAREN 310
244 #define SIMULT 311
245 #define PATTERN 312
246 #define CODE 313
247 #define TRANSPORT 314
248 #define HOST 315
249 #define TIME 316
250 #define WHENEVER 317
251 #define NEXT 318
252 #define UNTIL 319
253 #define EXTERNAL 320
254 #define GLOBAL 321
255 #define EVERY 322
256 #define BEFORE 323
257 #define AFTER 324
258 #define AT 325
259 #define AT_SYM 326
260 #define ATAT_SYM 327
261 #define NEW 328
262 #define SIZEOF 329
263 #define TYPEOF 330
264 #define SAME 331
265 #define PLUS_CHUCK 332
266 #define MINUS_CHUCK 333
267 #define TIMES_CHUCK 334
268 #define DIVIDE_CHUCK 335
269 #define S_AND_CHUCK 336
270 #define S_OR_CHUCK 337
271 #define S_XOR_CHUCK 338
272 #define SHIFT_RIGHT_CHUCK 339
273 #define SHIFT_LEFT_CHUCK 340
274 #define PERCENT_CHUCK 341
275 #define SHIFT_RIGHT 342
276 #define SHIFT_LEFT 343
277 #define TILDA 344
278 #define CHUCK 345
279 #define COLONCOLON 346
280 #define S_CHUCK 347
281 #define AT_CHUCK 348
282 #define LEFT_S_CHUCK 349
283 #define UNCHUCK 350
284 #define UPCHUCK 351
285 #define DOWNCHUCK 352
286 #define CLASS 353
287 #define INTERFACE 354
288 #define EXTENDS 355
289 #define IMPLEMENTS 356
290 #define PUBLIC 357
291 #define PROTECTED 358
292 #define PRIVATE 359
293 #define STATIC 360
294 #define ABSTRACT 361
295 #define CONST 362
296 #define SPORK 363
297 #define ARROW_RIGHT 364
298 #define ARROW_LEFT 365
299 #define L_HACK 366
300 #define R_HACK 367
301 #define GRUCK_RIGHT 368
302 #define GRUCK_LEFT 369
303 #define UNGRUCK_RIGHT 370
304 #define UNGRUCK_LEFT 371
305 #define AT_OP 372
306 #define AT_CTOR 373
307 #define AT_DTOR 374
308 #define AT_IMPORT 375
309 #define AT_DOC 376
310
311
312
313
314 /* Copy the first part of user declarations. */
315 #line 1 "chuck.y"
316
317
318 /*----------------------------------------------------------------------------
319 ChucK Strongly-timed Audio Programming Language
320 Compiler and Virtual Machine
321
322 Copyright (c) 2003 Ge Wang and Perry R. Cook. All rights reserved.
323 http://chuck.cs.princeton.edu/
324 http://soundlab.cs.princeton.edu/
325
326 This program is free software; you can redistribute it and/or modify
327 it under the terms of the GNU General Public License as published by
328 the Free Software Foundation; either version 2 of the License, or
329 (at your option) any later version.
330
331 This program is distributed in the hope that it will be useful,
332 but WITHOUT ANY WARRANTY; without even the implied warranty of
333 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
334 GNU General Public License for more details.
335
336 You should have received a copy of the GNU General Public License
337 along with this program; if not, write to the Free Software
338 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
339 U.S.A.
340 -----------------------------------------------------------------------------*/
341
342 //-----------------------------------------------------------------------------
343 // file: chuck.tab.c
344 // desc: chuck parser
345 //
346 // author: Ge Wang ([email protected]) - generated by yacc
347 // Perry R. Cook ([email protected])
348 //
349 // initial version created by Ge Wang;
350 // based on ansi C grammar by Jeff Lee, maintained by Jutta Degener
351 //
352 // date: Summer 2002
353 //-----------------------------------------------------------------------------
354 #include "chuck_absyn.h"
355 #include "chuck_errmsg.h"
356
357 #include <stdlib.h>
358 #include <stdio.h>
359 #include <string.h>
360
361 // function
362 int yylex( void );
363
364 void yyerror( char * s )
365 {
366 EM_error( EM_tokPos, "%s", s );
367 }
368
369 a_Program g_program = NULL;
370
371
372
373 /* Enabling traces. */
374 #ifndef YYDEBUG
375 # define YYDEBUG 0
376 #endif
377
378 /* Enabling verbose error messages. */
379 #ifdef YYERROR_VERBOSE
380 # undef YYERROR_VERBOSE
381 # define YYERROR_VERBOSE 1
382 #else
383 # define YYERROR_VERBOSE 0
384 #endif
385
386 /* Enabling the token table. */
387 #ifndef YYTOKEN_TABLE
388 # define YYTOKEN_TABLE 0
389 #endif
390
391 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
392 typedef union YYSTYPE
393 #line 77 "chuck.y"
394 {
395 int pos;
396 int ival;
397 double fval;
398 c_str sval;
399
400 a_Program program;
401 a_Section program_section;
402 a_Stmt_List stmt_list;
403 a_Class_Def class_def;
404 a_Class_Ext class_ext;
405 a_Class_Body class_body;
406 a_Stmt stmt;
407 a_Exp exp;
408 a_Func_Def func_def;
409 a_Var_Decl_List var_decl_list;
410 a_Var_Decl var_decl;
411 a_Type_Decl type_decl;
412 a_Arg_List arg_list;
413 a_Id_List id_list;
414 a_Array_Sub array_sub;
415 a_Complex complex_exp;
416 a_Polar polar_exp;
417 a_Vec vec_exp; // ge: added 1.3.5.3
418 a_Import import; // 1.5.4.0 (ge) added
419 a_Doc doc; // 1.5.4.4 (ge) added
420 }
421 /* Line 193 of yacc.c. */
422 #line 423 "chuck.tab.c"
423 YYSTYPE;
424 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
425 # define YYSTYPE_IS_DECLARED 1
426 # define YYSTYPE_IS_TRIVIAL 1
427 #endif
428
429 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
430 typedef struct YYLTYPE
431 {
432 int first_line;
433 int first_column;
434 int last_line;
435 int last_column;
436 } YYLTYPE;
437 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
438 # define YYLTYPE_IS_DECLARED 1
439 # define YYLTYPE_IS_TRIVIAL 1
440 #endif
441
442
443 /* Copy the second part of user declarations. */
444
445
446 /* Line 216 of yacc.c. */
447 #line 448 "chuck.tab.c"
448
449 #ifdef short
450 # undef short
451 #endif
452
453 #ifdef YYTYPE_UINT8
454 typedef YYTYPE_UINT8 yytype_uint8;
455 #else
456 typedef unsigned char yytype_uint8;
457 #endif
458
459 #ifdef YYTYPE_INT8
460 typedef YYTYPE_INT8 yytype_int8;
461 #elif (defined __STDC__ || defined __C99__FUNC__ \
462 || defined __cplusplus || defined _MSC_VER)
463 typedef signed char yytype_int8;
464 #else
465 typedef short int yytype_int8;
466 #endif
467
468 #ifdef YYTYPE_UINT16
469 typedef YYTYPE_UINT16 yytype_uint16;
470 #else
471 typedef unsigned short int yytype_uint16;
472 #endif
473
474 #ifdef YYTYPE_INT16
475 typedef YYTYPE_INT16 yytype_int16;
476 #else
477 typedef short int yytype_int16;
478 #endif
479
480 #ifndef YYSIZE_T
481 # ifdef __SIZE_TYPE__
482 # define YYSIZE_T __SIZE_TYPE__
483 # elif defined size_t
484 # define YYSIZE_T size_t
485 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
486 || defined __cplusplus || defined _MSC_VER)
487 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
488 # define YYSIZE_T size_t
489 # else
490 # define YYSIZE_T unsigned int
491 # endif
492 #endif
493
494 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
495
496 #ifndef YY_
497 # if defined YYENABLE_NLS && YYENABLE_NLS
498 # if ENABLE_NLS
499 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
500 # define YY_(msgid) dgettext ("bison-runtime", msgid)
501 # endif
502 # endif
503 # ifndef YY_
504 # define YY_(msgid) msgid
505 # endif
506 #endif
507
508 /* Suppress unused-variable warnings by "using" E. */
509 #if ! defined lint || defined __GNUC__
510 # define YYUSE(e) ((void) (e))
511 #else
512 # define YYUSE(e) /* empty */
513 #endif
514
515 /* Identity function, used to suppress warnings about constant conditions. */
516 #ifndef lint
517 # define YYID(n) (n)
518 #else
519 #if (defined __STDC__ || defined __C99__FUNC__ \
520 || defined __cplusplus || defined _MSC_VER)
521 static int
522 YYID (int i)
523 #else
524 static int
525 YYID (i)
526 int i;
527 #endif
528 {
529 return i;
530 }
531 #endif
532
533 #if ! defined yyoverflow || YYERROR_VERBOSE
534
535 /* The parser invokes alloca or malloc; define the necessary symbols. */
536
537 # ifdef YYSTACK_USE_ALLOCA
538 # if YYSTACK_USE_ALLOCA
539 # ifdef __GNUC__
540 # define YYSTACK_ALLOC __builtin_alloca
541 # elif defined __BUILTIN_VA_ARG_INCR
542 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
543 # elif defined _AIX
544 # define YYSTACK_ALLOC __alloca
545 # elif defined _MSC_VER
546 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
547 # define alloca _alloca
548 # else
549 # define YYSTACK_ALLOC alloca
550 # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
551 || defined __cplusplus || defined _MSC_VER)
552 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
553 # ifndef _STDLIB_H
554 # define _STDLIB_H 1
555 # endif
556 # endif
557 # endif
558 # endif
559 # endif
560
561 # ifdef YYSTACK_ALLOC
562 /* Pacify GCC's `empty if-body' warning. */
563 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
564 # ifndef YYSTACK_ALLOC_MAXIMUM
565 /* The OS might guarantee only one guard page at the bottom of the stack,
566 and a page size can be as small as 4096 bytes. So we cannot safely
567 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
568 to allow for a few compiler-allocated temporary stack slots. */
569 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
570 # endif
571 # else
572 # define YYSTACK_ALLOC YYMALLOC
573 # define YYSTACK_FREE YYFREE
574 # ifndef YYSTACK_ALLOC_MAXIMUM
575 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
576 # endif
577 # if (defined __cplusplus && ! defined _STDLIB_H \
578 && ! ((defined YYMALLOC || defined malloc) \
579 && (defined YYFREE || defined free)))
580 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
581 # ifndef _STDLIB_H
582 # define _STDLIB_H 1
583 # endif
584 # endif
585 # ifndef YYMALLOC
586 # define YYMALLOC malloc
587 # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
588 || defined __cplusplus || defined _MSC_VER)
589 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
590 # endif
591 # endif
592 # ifndef YYFREE
593 # define YYFREE free
594 # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
595 || defined __cplusplus || defined _MSC_VER)
596 void free (void *); /* INFRINGES ON USER NAME SPACE */
597 # endif
598 # endif
599 # endif
600 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
601
602
603 #if (! defined yyoverflow \
604 && (! defined __cplusplus \
605 || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
606 && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
607
608 /* A type that is properly aligned for any stack member. */
609 union yyalloc
610 {
611 yytype_int16 yyss;
612 YYSTYPE yyvs;
613 YYLTYPE yyls;
614 };
615
616 /* The size of the maximum gap between one aligned stack and the next. */
617 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
618
619 /* The size of an array large to enough to hold all stacks, each with
620 N elements. */
621 # define YYSTACK_BYTES(N) \
622 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
623 + 2 * YYSTACK_GAP_MAXIMUM)
624
625 /* Copy COUNT objects from FROM to TO. The source and destination do
626 not overlap. */
627 # ifndef YYCOPY
628 # if defined __GNUC__ && 1 < __GNUC__
629 # define YYCOPY(To, From, Count) \
630 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
631 # else
632 # define YYCOPY(To, From, Count) \
633 do \
634 { \
635 YYSIZE_T yyi; \
636 for (yyi = 0; yyi < (Count); yyi++) \
637 (To)[yyi] = (From)[yyi]; \
638 } \
639 while (YYID (0))
640 # endif
641 # endif
642
643 /* Relocate STACK from its old location to the new one. The
644 local variables YYSIZE and YYSTACKSIZE give the old and new number of
645 elements in the stack, and YYPTR gives the new location of the
646 stack. Advance YYPTR to a properly aligned location for the next
647 stack. */
648 # define YYSTACK_RELOCATE(Stack) \
649 do \
650 { \
651 YYSIZE_T yynewbytes; \
652 YYCOPY (&yyptr->Stack, Stack, yysize); \
653 Stack = &yyptr->Stack; \
654 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
655 yyptr += yynewbytes / sizeof (*yyptr); \
656 } \
657 while (YYID (0))
658
659 #endif
660
661 /* YYFINAL -- State number of the termination state. */
662 #define YYFINAL 135
663 /* YYLAST -- Last index in YYTABLE. */
664 #define YYLAST 2373
665
666 /* YYNTOKENS -- Number of terminals. */
667 #define YYNTOKENS 122
668 /* YYNNTS -- Number of nonterminals. */
669 #define YYNNTS 65
670 /* YYNRULES -- Number of rules. */
671 #define YYNRULES 274
672 /* YYNRULES -- Number of states. */
673 #define YYNSTATES 463
674
675 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
676 #define YYUNDEFTOK 2
677 #define YYMAXUTOK 376
678
679 #define YYTRANSLATE(YYX) \
680 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
681
682 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
683 static const yytype_uint8 yytranslate[] =
684 {
685 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
686 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
687 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
688 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
689 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
690 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
691 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
692 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
693 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
694 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
695 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
696 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
697 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
698 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
699 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
700 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
701 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
702 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
703 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
704 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
705 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
706 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
707 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
708 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
709 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
710 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
711 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
712 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
713 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
714 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
715 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
716 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
717 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
718 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
719 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
720 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
721 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
722 115, 116, 117, 118, 119, 120, 121
723 };
724
725 #if YYDEBUG
726 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
727 YYRHS. */
728 static const yytype_uint16 yyprhs[] =
729 {
730 0, 0, 3, 5, 8, 10, 12, 14, 21, 29,
731 36, 44, 47, 52, 55, 60, 62, 63, 65, 68,
732 70, 72, 74, 77, 79, 83, 85, 89, 98, 106,
733 114, 121, 128, 134, 140, 147, 156, 164, 174, 184,
734 196, 208, 210, 212, 213, 215, 217, 219, 221, 223,
735 225, 226, 228, 231, 235, 240, 242, 244, 246, 249,
736 252, 257, 259, 262, 264, 266, 268, 270, 272, 274,
737 276, 279, 283, 286, 289, 295, 303, 309, 317, 324,
738 332, 340, 346, 354, 360, 363, 367, 370, 374, 378,
739 383, 388, 390, 394, 396, 399, 404, 409, 411, 415,
740 417, 419, 422, 424, 428, 430, 434, 436, 440, 444,
741 449, 454, 460, 463, 467, 469, 472, 476, 480, 484,
742 487, 491, 493, 497, 499, 502, 505, 509, 514, 519,
743 525, 529, 533, 537, 539, 541, 543, 545, 547, 549,
744 551, 553, 555, 557, 559, 561, 563, 565, 567, 569,
745 571, 573, 575, 577, 579, 581, 587, 589, 593, 595,
746 599, 601, 605, 607, 611, 613, 617, 619, 623, 627,
747 629, 633, 637, 641, 645, 647, 651, 655, 657, 661,
748 665, 667, 671, 675, 679, 681, 685, 687, 691, 693,
749 696, 699, 702, 705, 708, 711, 715, 720, 726, 732,
750 739, 741, 743, 745, 747, 749, 752, 754, 756, 758,
751 760, 762, 764, 766, 768, 770, 772, 774, 776, 778,
752 780, 782, 784, 786, 788, 790, 792, 794, 796, 798,
753 800, 802, 804, 806, 808, 810, 812, 814, 816, 818,
754 820, 822, 824, 826, 828, 830, 832, 834, 836, 838,
755 840, 842, 844, 846, 848, 850, 854, 856, 859, 863,
756 868, 872, 875, 878, 880, 882, 884, 886, 888, 890,
757 892, 894, 896, 900, 904
758 };
759
760 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
761 static const yytype_int16 yyrhs[] =
762 {
763 123, 0, -1, 124, -1, 123, 124, -1, 142, -1,
764 133, -1, 125, -1, 134, 98, 131, 16, 127, 17,
765 -1, 134, 98, 131, 126, 16, 127, 17, -1, 134,
766 99, 131, 16, 127, 17, -1, 134, 99, 131, 130,
767 16, 127, 17, -1, 101, 131, -1, 101, 131, 100,
768 132, -1, 100, 132, -1, 100, 132, 101, 131, -1,
769 128, -1, -1, 129, -1, 129, 128, -1, 142, -1,
770 133, -1, 125, -1, 100, 131, -1, 3, -1, 3,
771 9, 131, -1, 3, -1, 3, 18, 132, -1, 135,
772 136, 140, 3, 12, 141, 13, 147, -1, 135, 136,
773 140, 3, 12, 13, 147, -1, 135, 136, 3, 12,
774 141, 13, 147, -1, 135, 136, 3, 12, 13, 147,
775 -1, 135, 118, 12, 141, 13, 147, -1, 135, 118,
776 12, 13, 147, -1, 135, 119, 12, 13, 147, -1,
777 135, 119, 12, 141, 13, 147, -1, 135, 136, 140,
778 3, 12, 141, 13, 11, -1, 135, 136, 140, 3,
779 12, 13, 11, -1, 135, 136, 140, 117, 183, 12,
780 141, 13, 147, -1, 135, 136, 140, 117, 12, 141,
781 13, 183, 147, -1, 135, 136, 140, 117, 12, 183,
782 13, 12, 141, 13, 147, -1, 135, 136, 140, 117,
783 12, 141, 13, 12, 183, 13, 147, -1, 102, -1,
784 104, -1, -1, 43, -1, 102, -1, 103, -1, 104,
785 -1, 105, -1, 106, -1, -1, 3, -1, 3, 71,
786 -1, 26, 132, 28, -1, 26, 132, 28, 71, -1,
787 137, -1, 138, -1, 139, -1, 139, 159, -1, 139,
788 162, -1, 139, 162, 9, 141, -1, 143, -1, 142,
789 143, -1, 154, -1, 146, -1, 145, -1, 144, -1,
790 147, -1, 148, -1, 151, -1, 44, 11, -1, 44,
791 155, 11, -1, 40, 11, -1, 41, 11, -1, 33,
792 12, 155, 13, 143, -1, 33, 12, 155, 13, 143,
793 35, 143, -1, 36, 12, 155, 13, 143, -1, 38,
794 143, 36, 12, 155, 13, 11, -1, 37, 12, 154,
795 154, 13, 143, -1, 37, 12, 154, 154, 155, 13,
796 143, -1, 37, 12, 155, 10, 155, 13, 143, -1,
797 64, 12, 155, 13, 143, -1, 38, 143, 64, 12,
798 155, 13, 11, -1, 39, 12, 155, 13, 143, -1,
799 16, 17, -1, 16, 142, 17, -1, 120, 150, -1,
800 120, 14, 15, -1, 120, 16, 17, -1, 120, 14,
801 149, 14, -1, 120, 16, 149, 17, -1, 150, -1,
802 150, 9, 149, -1, 4, -1, 121, 153, -1, 121,
803 14, 152, 15, -1, 121, 16, 152, 17, -1, 153,
804 -1, 153, 9, 152, -1, 4, -1, 11, -1, 155,
805 11, -1, 156, -1, 155, 9, 156, -1, 157, -1,
806 156, 166, 157, -1, 160, -1, 157, 167, 160, -1,
807 14, 155, 15, -1, 14, 155, 9, 15, -1, 14,
808 155, 15, 158, -1, 14, 155, 9, 15, 158, -1,
809 14, 15, -1, 159, 14, 15, -1, 168, -1, 139,
810 161, -1, 65, 139, 161, -1, 66, 139, 161, -1,
811 105, 139, 161, -1, 76, 161, -1, 105, 76, 161,
812 -1, 162, -1, 162, 9, 161, -1, 3, -1, 3,
813 158, -1, 3, 159, -1, 3, 12, 13, -1, 3,
814 12, 155, 13, -1, 3, 12, 13, 158, -1, 3,
815 12, 155, 13, 158, -1, 53, 155, 13, -1, 54,
816 155, 13, -1, 55, 155, 13, -1, 90, -1, 93,
817 -1, 77, -1, 78, -1, 79, -1, 80, -1, 84,
818 -1, 85, -1, 86, -1, 95, -1, 96, -1, 97,
819 -1, 81, -1, 82, -1, 83, -1, 110, -1, 109,
820 -1, 114, -1, 113, -1, 116, -1, 115, -1, 169,
821 -1, 169, 45, 155, 10, 168, -1, 170, -1, 169,
822 31, 170, -1, 171, -1, 170, 30, 171, -1, 172,
823 -1, 171, 47, 172, -1, 173, -1, 172, 49, 173,
824 -1, 174, -1, 173, 48, 174, -1, 175, -1, 174,
825 24, 175, -1, 174, 25, 175, -1, 176, -1, 175,
826 26, 176, -1, 175, 28, 176, -1, 175, 27, 176,
827 -1, 175, 29, 176, -1, 177, -1, 176, 88, 177,
828 -1, 176, 87, 177, -1, 178, -1, 177, 19, 178,
829 -1, 177, 20, 178, -1, 179, -1, 178, 21, 179,
830 -1, 178, 22, 179, -1, 178, 23, 179, -1, 180,
831 -1, 179, 89, 180, -1, 181, -1, 180, 52, 139,
832 -1, 184, -1, 50, 181, -1, 51, 181, -1, 182,
833 181, -1, 75, 181, -1, 74, 181, -1, 73, 139,
834 -1, 73, 139, 158, -1, 73, 139, 12, 13, -1,
835 73, 139, 12, 155, 13, -1, 73, 139, 12, 13,
836 158, -1, 73, 139, 12, 155, 13, 158, -1, 19,
837 -1, 20, -1, 89, -1, 46, -1, 21, -1, 108,
838 89, -1, 97, -1, 90, -1, 19, -1, 20, -1,
839 21, -1, 22, -1, 23, -1, 24, -1, 25, -1,
840 26, -1, 27, -1, 28, -1, 29, -1, 30, -1,
841 31, -1, 32, -1, 46, -1, 47, -1, 48, -1,
842 49, -1, 50, -1, 51, -1, 52, -1, 72, -1,
843 77, -1, 78, -1, 79, -1, 80, -1, 81, -1,
844 82, -1, 83, -1, 84, -1, 85, -1, 86, -1,
845 87, -1, 88, -1, 89, -1, 91, -1, 93, -1,
846 95, -1, 96, -1, 97, -1, 109, -1, 110, -1,
847 113, -1, 114, -1, 115, -1, 116, -1, 185, -1,
848 184, 91, 185, -1, 186, -1, 185, 158, -1, 185,
849 12, 13, -1, 185, 12, 155, 13, -1, 185, 18,
850 3, -1, 185, 50, -1, 185, 51, -1, 3, -1,
851 6, -1, 7, -1, 4, -1, 5, -1, 158, -1,
852 163, -1, 164, -1, 165, -1, 111, 155, 112, -1,
853 12, 155, 13, -1, 12, 13, -1
854 };
855
856 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
857 static const yytype_uint16 yyrline[] =
858 {
859 0, 216, 216, 217, 221, 222, 223, 227, 229, 231,
860 233, 238, 239, 240, 241, 245, 246, 250, 251, 256,
861 257, 258, 262, 266, 267, 271, 272, 276, 278, 280,
862 282, 284, 286, 288, 290, 292, 294, 296, 298, 300,
863 302, 307, 308, 309, 313, 314, 315, 316, 320, 321,
864 322, 326, 327, 331, 332, 341, 342, 347, 348, 352,
865 353, 357, 358, 362, 363, 364, 365, 367, 368, 369,
866 373, 374, 375, 376, 380, 382, 387, 389, 391, 393,
867 395, 397, 399, 401, 406, 407, 411, 412, 413, 414,
868 415, 419, 420, 424, 429, 430, 431, 435, 436, 440,
869 444, 445, 449, 450, 454, 455, 460, 461, 466, 467,
870 468, 470, 475, 476, 480, 481, 482, 483, 484, 485,
871 486, 490, 491, 495, 496, 497, 498, 499, 500, 501,
872 505, 510, 515, 520, 521, 522, 523, 524, 525, 526,
873 527, 528, 529, 530, 531, 532, 533, 534, 538, 539,
874 540, 541, 542, 543, 547, 548, 553, 554, 559, 560,
875 565, 566, 571, 572, 577, 578, 583, 584, 586, 591,
876 592, 594, 596, 598, 603, 604, 606, 611, 612, 614,
877 619, 620, 622, 624, 629, 630, 635, 636, 641, 642,
878 644, 646, 648, 650, 652, 654, 656, 658, 660, 662,
879 669, 670, 671, 672, 673, 674, 675, 681, 682, 683,
880 684, 685, 686, 687, 688, 689, 690, 691, 692, 693,
881 694, 695, 696, 697, 698, 699, 700, 701, 702, 703,
882 704, 705, 706, 707, 708, 709, 710, 711, 712, 713,
883 714, 715, 716, 717, 718, 719, 720, 721, 722, 723,
884 724, 725, 726, 727, 731, 732, 737, 738, 740, 742,
885 744, 746, 748, 754, 755, 756, 757, 758, 759, 760,
886 761, 762, 763, 764, 765
887 };
888 #endif
889
890 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
891 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
892 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
893 static const char *const yytname[] =
894 {
895 "$end", "error", "$undefined", "ID", "STRING_LIT", "CHAR_LIT",
896 "INT_VAL", "FLOAT_VAL", "POUND", "COMMA", "COLON", "SEMICOLON", "LPAREN",
897 "RPAREN", "LBRACK", "RBRACK", "LBRACE", "RBRACE", "DOT", "PLUS", "MINUS",
898 "TIMES", "DIVIDE", "PERCENT", "EQ", "NEQ", "LT", "LE", "GT", "GE", "AND",
899 "OR", "ASSIGN", "IF", "THEN", "ELSE", "WHILE", "FOR", "DO", "LOOP",
900 "BREAK", "CONTINUE", "NULL_TOK", "FUNCTION", "RETURN", "QUESTION",
901 "EXCLAMATION", "S_OR", "S_AND", "S_XOR", "PLUSPLUS", "MINUSMINUS",
902 "DOLLAR", "POUNDPAREN", "PERCENTPAREN", "ATPAREN", "SIMULT", "PATTERN",
903 "CODE", "TRANSPORT", "HOST", "TIME", "WHENEVER", "NEXT", "UNTIL",
904 "EXTERNAL", "GLOBAL", "EVERY", "BEFORE", "AFTER", "AT", "AT_SYM",
905 "ATAT_SYM", "NEW", "SIZEOF", "TYPEOF", "SAME", "PLUS_CHUCK",
906 "MINUS_CHUCK", "TIMES_CHUCK", "DIVIDE_CHUCK", "S_AND_CHUCK",
907 "S_OR_CHUCK", "S_XOR_CHUCK", "SHIFT_RIGHT_CHUCK", "SHIFT_LEFT_CHUCK",
908 "PERCENT_CHUCK", "SHIFT_RIGHT", "SHIFT_LEFT", "TILDA", "CHUCK",
909 "COLONCOLON", "S_CHUCK", "AT_CHUCK", "LEFT_S_CHUCK", "UNCHUCK",
910 "UPCHUCK", "DOWNCHUCK", "CLASS", "INTERFACE", "EXTENDS", "IMPLEMENTS",
911 "PUBLIC", "PROTECTED", "PRIVATE", "STATIC", "ABSTRACT", "CONST", "SPORK",
912 "ARROW_RIGHT", "ARROW_LEFT", "L_HACK", "R_HACK", "GRUCK_RIGHT",
913 "GRUCK_LEFT", "UNGRUCK_RIGHT", "UNGRUCK_LEFT", "AT_OP", "AT_CTOR",
914 "AT_DTOR", "AT_IMPORT", "AT_DOC", "$accept", "program",
915 "program_section", "class_definition", "class_ext", "class_body",
916 "class_body2", "class_section", "iface_ext", "id_list", "id_dot",
917 "function_definition", "class_decl", "function_decl", "static_decl",
918 "type_decl_a", "type_decl_b", "type_decl", "type_decl2", "arg_list",
919 "statement_list", "statement", "jump_statement", "selection_statement",
920 "loop_statement", "code_segment", "import_statement", "import_list",
921 "import_target", "doc_statement", "doc_list", "doc_target",
922 "expression_statement", "expression", "chuck_expression",
923 "arrow_expression", "array_exp", "array_empty", "decl_expression",
924 "var_decl_list", "var_decl", "complex_exp", "polar_exp", "vec_exp",
925 "chuck_operator", "arrow_operator", "conditional_expression",
926 "logical_or_expression", "logical_and_expression",
927 "inclusive_or_expression", "exclusive_or_expression", "and_expression",
928 "equality_expression", "relational_expression", "shift_expression",
929 "additive_expression", "multiplicative_expression", "tilda_expression",
930 "cast_expression", "unary_expression", "unary_operator",
931 "overloadable_operator", "dur_expression", "postfix_expression",
932 "primary_expression", 0
933 };
934 #endif
935
936 # ifdef YYPRINT
937 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
938 token YYLEX-NUM. */
939 static const yytype_uint16 yytoknum[] =
940 {
941 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
942 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
943 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
944 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
945 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
946 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
947 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
948 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
949 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
950 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
951 355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
952 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
953 375, 376
954 };
955 # endif
956
957 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
958 static const yytype_uint8 yyr1[] =
959 {
960 0, 122, 123, 123, 124, 124, 124, 125, 125, 125,
961 125, 126, 126, 126, 126, 127, 127, 128, 128, 129,
962 129, 129, 130, 131, 131, 132, 132, 133, 133, 133,
963 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
964 133, 134, 134, 134, 135, 135, 135, 135, 136, 136,
965 136, 137, 137, 138, 138, 139, 139, 140, 140, 141,
966 141, 142, 142, 143, 143, 143, 143, 143, 143, 143,
967 144, 144, 144, 144, 145, 145, 146, 146, 146, 146,
968 146, 146, 146, 146, 147, 147, 148, 148, 148, 148,
969 148, 149, 149, 150, 151, 151, 151, 152, 152, 153,
970 154, 154, 155, 155, 156, 156, 157, 157, 158, 158,
971 158, 158, 159, 159, 160, 160, 160, 160, 160, 160,
972 160, 161, 161, 162, 162, 162, 162, 162, 162, 162,
973 163, 164, 165, 166, 166, 166, 166, 166, 166, 166,
974 166, 166, 166, 166, 166, 166, 166, 166, 167, 167,
975 167, 167, 167, 167, 168, 168, 169, 169, 170, 170,
976 171, 171, 172, 172, 173, 173, 174, 174, 174, 175,
977 175, 175, 175, 175, 176, 176, 176, 177, 177, 177,
978 178, 178, 178, 178, 179, 179, 180, 180, 181, 181,
979 181, 181, 181, 181, 181, 181, 181, 181, 181, 181,
980 182, 182, 182, 182, 182, 182, 182, 183, 183, 183,
981 183, 183, 183, 183, 183, 183, 183, 183, 183, 183,
982 183, 183, 183, 183, 183, 183, 183, 183, 183, 183,
983 183, 183, 183, 183, 183, 183, 183, 183, 183, 183,
984 183, 183, 183, 183, 183, 183, 183, 183, 183, 183,
985 183, 183, 183, 183, 184, 184, 185, 185, 185, 185,
986 185, 185, 185, 186, 186, 186, 186, 186, 186, 186,
987 186, 186, 186, 186, 186
988 };
989
990 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
991 static const yytype_uint8 yyr2[] =
992 {
993 0, 2, 1, 2, 1, 1, 1, 6, 7, 6,
994 7, 2, 4, 2, 4, 1, 0, 1, 2, 1,
995 1, 1, 2, 1, 3, 1, 3, 8, 7, 7,
996 6, 6, 5, 5, 6, 8, 7, 9, 9, 11,
997 11, 1, 1, 0, 1, 1, 1, 1, 1, 1,
998 0, 1, 2, 3, 4, 1, 1, 1, 2, 2,
999 4, 1, 2, 1, 1, 1, 1, 1, 1, 1,
1000 2, 3, 2, 2, 5, 7, 5, 7, 6, 7,
1001 7, 5, 7, 5, 2, 3, 2, 3, 3, 4,
1002 4, 1, 3, 1, 2, 4, 4, 1, 3, 1,
1003 1, 2, 1, 3, 1, 3, 1, 3, 3, 4,
1004 4, 5, 2, 3, 1, 2, 3, 3, 3, 2,
1005 3, 1, 3, 1, 2, 2, 3, 4, 4, 5,
1006 3, 3, 3, 1, 1, 1, 1, 1, 1, 1,
1007 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1008 1, 1, 1, 1, 1, 5, 1, 3, 1, 3,
1009 1, 3, 1, 3, 1, 3, 1, 3, 3, 1,
1010 3, 3, 3, 3, 1, 3, 3, 1, 3, 3,
1011 1, 3, 3, 3, 1, 3, 1, 3, 1, 2,
1012 2, 2, 2, 2, 2, 3, 4, 5, 5, 6,
1013 1, 1, 1, 1, 1, 2, 1, 1, 1, 1,
1014 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1015 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1016 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1017 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1018 1, 1, 1, 1, 1, 3, 1, 2, 3, 4,
1019 3, 2, 2, 1, 1, 1, 1, 1, 1, 1,
1020 1, 1, 3, 3, 2
1021 };
1022
1023 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
1024 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
1025 means the default is an error. */
1026 static const yytype_uint16 yydefact[] =
1027 {
1028 43, 263, 266, 267, 264, 265, 100, 0, 0, 0,
1029 200, 201, 204, 0, 0, 0, 0, 0, 0, 0,
1030 0, 44, 0, 203, 0, 0, 0, 0, 0, 0,
1031 0, 0, 0, 0, 0, 0, 202, 206, 45, 46,
1032 47, 0, 0, 0, 0, 0, 43, 2, 6, 5,
1033 0, 50, 55, 56, 0, 4, 61, 66, 65, 64,
1034 67, 68, 69, 63, 0, 102, 104, 268, 106, 269,
1035 270, 271, 114, 154, 156, 158, 160, 162, 164, 166,
1036 169, 174, 177, 180, 184, 186, 0, 188, 254, 256,
1037 52, 274, 0, 0, 84, 0, 25, 0, 0, 0,
1038 0, 0, 0, 72, 73, 70, 0, 263, 189, 190,
1039 0, 0, 0, 0, 51, 0, 0, 194, 193, 192,
1040 123, 119, 121, 0, 0, 205, 0, 93, 0, 0,
1041 86, 99, 0, 0, 94, 1, 3, 0, 0, 48,
1042 49, 0, 0, 0, 115, 62, 0, 101, 135, 136,
1043 137, 138, 145, 146, 147, 139, 140, 141, 133, 134,
1044 142, 143, 144, 0, 149, 148, 151, 150, 153, 152,
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, 191, 0, 0, 0, 261, 262, 257, 273,
1048 0, 108, 85, 0, 53, 0, 0, 0, 0, 0,
1049 0, 0, 71, 130, 131, 132, 0, 116, 117, 0,
1050 195, 0, 0, 124, 125, 0, 120, 118, 272, 87,
1051 0, 91, 88, 0, 0, 97, 0, 23, 0, 0,
1052 0, 0, 51, 57, 0, 103, 105, 107, 157, 0,
1053 159, 161, 163, 165, 167, 168, 170, 172, 171, 173,
1054 176, 175, 178, 179, 181, 182, 183, 185, 187, 255,
1055 258, 0, 260, 109, 110, 26, 54, 0, 0, 0,
1056 0, 0, 0, 0, 0, 196, 0, 126, 0, 112,
1057 0, 122, 89, 0, 90, 95, 0, 96, 0, 43,
1058 0, 0, 0, 43, 0, 0, 0, 0, 0, 0,
1059 0, 0, 0, 58, 0, 0, 0, 259, 111, 74,
1060 76, 0, 0, 0, 0, 0, 83, 81, 198, 197,
1061 128, 127, 113, 92, 98, 24, 21, 0, 15, 43,
1062 20, 19, 13, 11, 43, 0, 22, 43, 32, 59,
1063 0, 33, 0, 0, 0, 0, 0, 208, 209, 210,
1064 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
1065 221, 222, 223, 224, 225, 226, 227, 228, 229, 230,
1066 231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
1067 241, 242, 207, 243, 244, 245, 246, 247, 248, 249,
1068 250, 251, 252, 253, 0, 155, 0, 78, 0, 0,
1069 0, 0, 199, 129, 7, 18, 0, 0, 0, 9,
1070 0, 0, 31, 34, 30, 0, 0, 0, 215, 0,
1071 0, 0, 75, 79, 80, 77, 82, 14, 12, 8,
1072 10, 60, 29, 36, 28, 0, 0, 0, 0, 35,
1073 27, 0, 0, 0, 0, 0, 38, 0, 37, 0,
1074 0, 40, 39
1075 };
1076
1077 /* YYDEFGOTO[NTERM-NUM]. */
1078 static const yytype_int16 yydefgoto[] =
1079 {
1080 -1, 46, 47, 336, 302, 337, 338, 339, 305, 238,
1081 97, 340, 50, 51, 143, 52, 53, 54, 244, 308,
1082 341, 56, 57, 58, 59, 60, 61, 230, 231, 62,
1083 234, 235, 63, 64, 65, 66, 67, 224, 68, 121,
1084 122, 69, 70, 71, 163, 170, 72, 73, 74, 75,
1085 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
1086 86, 404, 87, 88, 89
1087 };
1088
1089 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
1090 STATE-NUM. */
1091 #define YYPACT_NINF -338
1092 static const yytype_int16 yypact[] =
1093 {
1094 665, 15, -338, -338, -338, -338, -338, 1215, 1893, 776,
1095 -338, -338, -338, 148, 42, 145, 151, 998, 156, 149,
1096 175, -338, 1289, -338, 1967, 1967, 1893, 1893, 1893, 171,
1097 37, 37, 37, 1967, 1967, 198, -338, -338, 44, -338,
1098 96, 21, 118, 1893, 155, 158, 332, -338, -338, -338,
1099 168, 47, -338, -338, 198, 998, -338, -338, -338, -338,
1100 -338, -338, -338, -338, 46, 51, 99, -338, -338, -338,
1101 -338, -338, -338, -8, 211, 169, 174, 200, 247, 217,
1102 186, 256, 233, 150, 213, -338, 1967, 177, 16, -338,
1103 -338, -338, 167, 55, -338, 887, 265, 262, 1893, 1893,
1104 1363, 24, 1893, -338, -338, -338, 62, -338, -338, -338,
1105 172, 183, 184, 1893, 223, 198, 198, 75, -338, -338,
1106 98, -338, 284, 198, 198, -338, 8, -338, 86, 141,
1107 -338, -338, 291, 291, -338, -338, -338, 293, 293, -338,
1108 -338, 285, 286, 53, -338, -338, 1893, -338, -338, -338,
1109 -338, -338, -338, -338, -338, -338, -338, -338, -338, -338,
1110 -338, -338, -338, 1893, -338, -338, -338, -338, -338, -338,
1111 1893, 1967, 1893, 1967, 1967, 1967, 1967, 1967, 1967, 1967,
1112 1967, 1967, 1967, 1967, 1967, 1967, 1967, 1967, 1967, 1967,
1113 1967, 37, -338, 39, 1437, 296, -338, -338, -338, -338,
1114 1517, 287, -338, 148, 231, 191, 193, 1363, 248, 288,
1115 292, 208, -338, -338, -338, -338, 209, -338, -338, 1591,
1116 -338, 1665, 1745, -338, 289, 198, -338, -338, -338, -338,
1117 294, 297, -338, 295, 290, 300, 298, 301, -1, 6,
1118 82, 112, 13, 299, 7, 51, 99, -338, 211, 268,
1119 169, 174, 200, 247, 217, 217, 186, 186, 186, 186,
1120 256, 256, 233, 233, 150, 150, 150, 213, -338, 16,
1121 -338, 216, -338, 287, -338, -338, -338, 998, 998, 1819,
1122 1893, 1893, 1893, 998, 998, 287, 219, 287, 221, -338,
1123 302, -338, -338, 307, -338, -338, 291, -338, 293, 443,
1124 148, 293, 303, 443, 293, 304, 305, 198, 309, 305,
1125 310, 113, 313, 289, 306, 2060, 1967, -338, -338, 279,
1126 -338, 998, 222, 224, 227, 229, -338, -338, -338, 287,
1127 -338, 287, -338, -338, -338, -338, -338, 312, -338, 554,
1128 -338, 998, 215, 230, 443, 314, -338, 443, -338, 315,
1129 305, -338, 305, 305, 320, 114, 1101, -338, -338, -338,
1130 -338, -338, -338, -338, -338, -338, -338, -338, -338, -338,
1131 -338, -338, -338, -338, -338, -338, -338, -338, -338, -338,
1132 -338, -338, -338, -338, -338, -338, -338, -338, -338, -338,
1133 -338, -338, -338, -338, -338, -338, -338, -338, -338, -338,
1134 -338, -338, -338, -338, 322, -338, 998, -338, 998, 998,
1135 329, 330, -338, -338, -338, -338, 293, 148, 325, -338,
1136 328, 37, -338, -338, -338, 305, 80, 334, 148, 336,
1137 337, 37, -338, -338, -338, -338, -338, -338, -338, -338,
1138 -338, -338, -338, -338, -338, 138, 2159, 342, 343, -338,
1139 -338, 2257, 305, 37, 305, 344, -338, 346, -338, 305,
1140 305, -338, -338
1141 };
1142
1143 /* YYPGOTO[NTERM-NUM]. */
1144 static const yytype_int16 yypgoto[] =
1145 {
1146 -338, -338, 316, 26, -338, -282, 22, -338, -338, -134,
1147 -198, 29, -338, -338, -338, -338, -338, -30, -338, -233,
1148 52, -14, -338, -338, -338, -270, -338, -120, 311, -338,
1149 -117, 318, -86, 5, -126, 197, -82, 121, 196, -47,
1150 60, -338, -338, -338, -338, -338, 58, -338, 206, 207,
1151 205, 214, 212, 102, 71, 105, 106, 73, 194, 25,
1152 -338, -337, -338, 188, -338
1153 };
1154
1155 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
1156 positive, shift that token. If negative, reduce the rule which
1157 number is the opposite. If zero, do what YYDEFACT says.
1158 If YYTABLE_NINF, syntax error. */
1159 #define YYTABLE_NINF -52
1160 static const yytype_int16 yytable[] =
1161 {
1162 115, 116, 117, 101, 239, 275, 198, 144, 310, 233,
1163 314, 124, 92, 93, 207, 299, 236, 146, -51, 430,
1164 245, 345, 303, 171, 114, 311, 48, 106, 194, 49,
1165 8, 110, 111, 112, 195, 220, 348, 172, 223, 351,
1166 114, 145, 107, 2, 3, 4, 5, 13, 126, 108,
1167 109, 7, 55, 8, 98, 146, 242, 147, 118, 119,
1168 209, 95, 418, 13, 200, 420, 196, 197, 217, 218,
1169 201, 146, 48, 212, 245, 49, 226, 227, 354, 13,
1170 422, 145, 423, 424, 90, 114, 90, 219, 210, 8,
1171 127, 443, 26, 27, 28, 306, 9, 123, 55, 300,
1172 301, 229, 342, 205, 206, 208, 304, 211, 13, 452,
1173 221, 192, 222, 243, 455, 114, 114, 114, 216, 274,
1174 228, 279, 427, 429, 315, 309, 353, 426, 148, 149,
1175 150, 151, 152, 153, 154, 155, 156, 157, 13, 13,
1176 13, 158, -41, -41, 159, 127, 160, 161, 162, 449,
1177 43, 96, 139, 140, 9, 442, 444, 99, 232, 127,
1178 103, 268, 131, 100, 335, 141, 142, 343, 102, 128,
1179 346, 129, 132, 333, 133, 450, 146, 249, 291, 334,
1180 199, 146, 456, 113, 458, 213, 104, 198, 441, 461,
1181 462, 318, 146, 146, -42, -42, 214, 215, 448, 271,
1182 146, 120, 146, 328, 277, 330, 278, 125, 164, 165,
1183 307, 307, 166, 167, 168, 169, 174, 146, 146, 438,
1184 457, 283, 284, 175, 286, 146, 288, 93, 146, 317,
1185 146, 146, 329, 146, 331, 408, 146, 409, 146, 190,
1186 410, 173, 411, 179, 180, 181, 182, 412, 176, 413,
1187 256, 257, 258, 259, 187, 188, 189, 146, 280, 147,
1188 264, 265, 266, 319, 320, 191, 137, 138, 193, 326,
1189 327, 177, 178, 183, 184, 185, 186, 146, 316, 254,
1190 255, 307, 437, 203, 322, 323, 324, 325, 260, 261,
1191 204, 262, 263, 225, 90, 131, 237, 240, 241, 272,
1192 281, 8, 276, 290, 282, 295, 293, 407, 292, 296,
1193 298, 127, 294, 312, 406, 297, 416, 332, 355, 344,
1194 347, 9, 350, 352, 421, 307, 307, 145, 289, 414,
1195 417, 419, 135, 425, 431, 1, 2, 3, 4, 5,
1196 435, 436, 439, 6, 7, 440, 8, 445, 9, 446,
1197 447, 10, 11, 12, 453, 130, 454, 459, 13, 460,
1198 246, 415, 136, 134, 313, 14, 247, 349, 15, 16,
1199 17, 18, 19, 20, 405, 21, 22, 248, 23, 251,
1200 250, 269, 24, 25, 267, 26, 27, 28, 253, 252,
1201 0, 307, 432, 0, 433, 434, 29, 30, 31, 0,
1202 0, 307, 0, 0, 0, 32, 33, 34, 35, 0,
1203 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1204 0, 36, 0, 307, 0, 0, 0, 0, 0, 37,
1205 0, 0, 0, 0, 38, 39, 40, 41, 0, 0,
1206 42, 0, 0, 43, 0, 0, 1, 2, 3, 4,
1207 5, 0, 44, 45, 6, 7, 0, 8, 0, 9,
1208 -16, 0, 10, 11, 12, 0, 0, 0, 0, 13,
1209 0, 0, 0, 0, 0, 0, 14, 0, 0, 15,
1210 16, 17, 18, 19, 20, 0, 21, 22, 0, 23,
1211 0, 0, 0, 24, 25, 0, 26, 27, 28, 0,
1212 0, 0, 0, 0, 0, 0, 0, 29, 30, 31,
1213 0, 0, 0, 0, 0, 0, 32, 33, 34, 35,
1214 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1215 0, 0, 36, 0, 0, 0, 0, 0, 0, 0,
1216 37, 0, 0, 0, 0, 38, 39, 40, 41, 0,
1217 0, 42, 0, 0, 43, 0, 0, 1, 2, 3,
1218 4, 5, 0, 44, 45, 6, 7, 0, 8, 0,
1219 9, -17, 0, 10, 11, 12, 0, 0, 0, 0,
1220 13, 0, 0, 0, 0, 0, 0, 14, 0, 0,
1221 15, 16, 17, 18, 19, 20, 0, 21, 22, 0,
1222 23, 0, 0, 0, 24, 25, 0, 26, 27, 28,
1223 0, 0, 0, 0, 0, 0, 0, 0, 29, 30,
1224 31, 0, 0, 0, 0, 0, 0, 32, 33, 34,
1225 35, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1226 0, 0, 0, 36, 0, 0, 0, 0, 0, 0,
1227 0, 37, 0, 0, 0, 0, 38, 39, 40, 41,
1228 0, 0, 42, 0, 0, 43, 0, 0, 1, 2,
1229 3, 4, 5, 0, 44, 45, 6, 7, 0, 8,
1230 0, 9, 0, 0, 10, 11, 12, 0, 0, 0,
1231 0, 13, 0, 0, 0, 0, 0, 0, 14, 0,
1232 0, 15, 16, 17, 18, 19, 20, 0, 21, 22,
1233 0, 23, 0, 0, 0, 24, 25, 0, 26, 27,
1234 28, 0, 0, 0, 0, 0, 0, 0, 0, 29,
1235 30, 31, 0, 0, 0, 0, 0, 0, 32, 33,
1236 34, 35, 0, 0, 0, 0, 0, 0, 0, 0,
1237 0, 0, 0, 0, 36, 0, 0, 0, 0, 0,
1238 0, 0, 37, 0, 0, 0, 0, 38, 39, 40,
1239 41, 0, 0, 42, 0, 0, 43, 0, 0, 1,
1240 2, 3, 4, 5, 0, 44, 45, 6, 7, 0,
1241 8, 0, 9, 94, 0, 10, 11, 12, 0, 0,
1242 0, 0, 13, 0, 0, 0, 0, 0, 0, 14,
1243 0, 0, 15, 16, 17, 18, 19, 20, 0, 0,
1244 22, 0, 23, 0, 0, 0, 24, 25, 0, 26,
1245 27, 28, 0, 0, 0, 0, 0, 0, 0, 0,
1246 29, 30, 31, 0, 0, 0, 0, 0, 0, 32,
1247 33, 34, 35, 0, 0, 0, 0, 0, 0, 0,
1248 0, 0, 0, 0, 0, 36, 0, 0, 0, 0,
1249 0, 0, 0, 37, 0, 0, 0, 0, 0, 0,
1250 0, 41, 0, 0, 42, 0, 0, 43, 0, 0,
1251 1, 2, 3, 4, 5, 0, 44, 45, 6, 7,
1252 0, 8, 0, 9, 202, 0, 10, 11, 12, 0,
1253 0, 0, 0, 13, 0, 0, 0, 0, 0, 0,
1254 14, 0, 0, 15, 16, 17, 18, 19, 20, 0,
1255 0, 22, 0, 23, 0, 0, 0, 24, 25, 0,
1256 26, 27, 28, 0, 0, 0, 0, 0, 0, 0,
1257 0, 29, 30, 31, 0, 0, 0, 0, 0, 0,
1258 32, 33, 34, 35, 0, 0, 0, 0, 0, 0,
1259 0, 0, 0, 0, 0, 0, 36, 0, 0, 0,
1260 0, 0, 0, 0, 37, 0, 0, 0, 0, 0,
1261 0, 0, 41, 0, 0, 42, 0, 0, 43, 0,
1262 0, 1, 2, 3, 4, 5, 0, 44, 45, 6,
1263 7, 0, 8, 0, 9, 0, 0, 10, 11, 12,
1264 0, 0, 0, 0, 13, 0, 0, 0, 0, 0,
1265 0, 14, 0, 0, 15, 16, 17, 18, 19, 20,
1266 0, 0, 22, 0, 23, 0, 0, 0, 24, 25,
1267 0, 26, 27, 28, 0, 0, 0, 0, 0, 0,
1268 0, 0, 29, 30, 31, 0, 0, 0, 0, 0,
1269 0, 32, 33, 34, 35, 0, 0, 0, 0, 0,
1270 0, 0, 0, 0, 0, 0, 0, 36, 0, 0,
1271 0, 0, 0, 0, 0, 37, 0, 0, 0, 0,
1272 0, 0, 0, 41, 114, 0, 42, 0, 0, 43,
1273 0, 0, 0, 0, 0, 0, 0, 0, 44, 45,
1274 357, 358, 359, 360, 361, 362, 363, 428, 365, 366,
1275 367, 368, 369, 370, 0, 0, 0, 0, 0, 0,
1276 0, 0, 0, 0, 0, 0, 0, 371, 372, 373,
1277 374, 375, 376, 377, 0, 0, 0, 0, 0, 0,
1278 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1279 0, 0, 0, 378, 0, 0, 0, 0, 379, 380,
1280 381, 382, 383, 384, 385, 386, 387, 388, 389, 390,
1281 391, 392, 393, 0, 394, 0, 395, 396, 397, 0,
1282 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1283 398, 399, 0, 0, 400, 401, 402, 403, 1, 2,
1284 3, 4, 5, 0, 0, 0, 0, 7, 91, 8,
1285 0, 0, 0, 0, 10, 11, 12, 0, 0, 0,
1286 0, 13, 0, 0, 0, 0, 0, 0, 0, 0,
1287 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1288 0, 23, 0, 0, 0, 24, 25, 0, 26, 27,
1289 28, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1290 30, 31, 0, 0, 0, 0, 0, 0, 32, 33,
1291 34, 35, 1, 2, 3, 4, 5, 0, 0, 0,
1292 105, 7, 0, 8, 36, 0, 0, 0, 10, 11,
1293 12, 0, 37, 0, 0, 13, 0, 0, 0, 0,
1294 41, 0, 0, 42, 0, 0, 43, 0, 0, 0,
1295 0, 0, 0, 0, 0, 23, 0, 0, 0, 24,
1296 25, 0, 26, 27, 28, 0, 0, 0, 0, 0,
1297 0, 0, 0, 0, 30, 31, 0, 0, 0, 0,
1298 0, 0, 32, 33, 34, 35, 1, 2, 3, 4,
1299 5, 0, 0, 0, 6, 7, 0, 8, 36, 0,
1300 0, 0, 10, 11, 12, 0, 37, 0, 0, 13,
1301 0, 0, 0, 0, 41, 0, 0, 42, 0, 0,
1302 43, 0, 0, 0, 0, 0, 0, 0, 0, 23,
1303 0, 0, 0, 24, 25, 0, 26, 27, 28, 0,
1304 0, 0, 0, 0, 0, 0, 0, 0, 30, 31,
1305 0, 0, 0, 0, 0, 0, 32, 33, 34, 35,
1306 1, 2, 3, 4, 5, 0, 0, 0, 0, 7,
1307 270, 8, 36, 0, 0, 0, 10, 11, 12, 0,
1308 37, 0, 0, 13, 0, 0, 0, 0, 41, 0,
1309 0, 42, 0, 0, 43, 0, 0, 0, 0, 0,
1310 0, 0, 0, 23, 0, 0, 0, 24, 25, 0,
1311 26, 27, 28, 0, 0, 0, 0, 0, 0, 0,
1312 0, 0, 30, 31, 0, 0, 0, 0, 0, 0,
1313 32, 33, 34, 35, 0, 0, 0, 0, 0, 0,
1314 1, 2, 3, 4, 5, 0, 36, 0, 0, 7,
1315 0, 8, 273, 0, 37, 0, 10, 11, 12, 0,
1316 0, 0, 41, 13, 0, 42, 0, 0, 43, 0,
1317 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1318 0, 0, 0, 23, 0, 0, 0, 24, 25, 0,
1319 26, 27, 28, 0, 0, 0, 0, 0, 0, 0,
1320 0, 0, 30, 31, 0, 0, 0, 0, 0, 0,
1321 32, 33, 34, 35, 1, 2, 3, 4, 5, 0,
1322 0, 0, 0, 7, 285, 8, 36, 0, 0, 0,
1323 10, 11, 12, 0, 37, 0, 0, 13, 0, 0,
1324 0, 0, 41, 0, 0, 42, 0, 0, 43, 0,
1325 0, 0, 0, 0, 0, 0, 0, 23, 0, 0,
1326 0, 24, 25, 0, 26, 27, 28, 0, 0, 0,
1327 0, 0, 0, 0, 0, 0, 30, 31, 0, 0,
1328 0, 0, 0, 0, 32, 33, 34, 35, 1, 2,
1329 3, 4, 5, 0, 0, 0, 0, 7, 287, 8,
1330 36, 0, 0, 0, 10, 11, 12, 0, 37, 0,
1331 0, 13, 0, 0, 0, 0, 41, 0, 0, 42,
1332 0, 0, 43, 0, 0, 0, 0, 0, 0, 0,
1333 0, 23, 0, 0, 0, 24, 25, 0, 26, 27,
1334 28, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1335 30, 31, 0, 0, 0, 0, 0, 0, 32, 33,
1336 34, 35, 0, 0, 0, 0, 0, 0, 1, 2,
1337 3, 4, 5, 0, 36, 0, 0, 7, 0, 8,
1338 289, 0, 37, 0, 10, 11, 12, 0, 0, 0,
1339 41, 13, 0, 42, 0, 0, 43, 0, 0, 0,
1340 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1341 0, 23, 0, 0, 0, 24, 25, 0, 26, 27,
1342 28, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1343 30, 31, 0, 0, 0, 0, 0, 0, 32, 33,
1344 34, 35, 1, 2, 3, 4, 5, 0, 0, 0,
1345 0, 7, 321, 8, 36, 0, 0, 0, 10, 11,
1346 12, 0, 37, 0, 0, 13, 0, 0, 0, 0,
1347 41, 0, 0, 42, 0, 0, 43, 0, 0, 0,
1348 0, 0, 0, 0, 0, 23, 0, 0, 0, 24,
1349 25, 0, 26, 27, 28, 0, 0, 0, 0, 0,
1350 0, 0, 0, 0, 30, 31, 0, 0, 0, 0,
1351 0, 0, 32, 33, 34, 35, 1, 2, 3, 4,
1352 5, 0, 0, 0, 0, 7, 0, 8, 36, 0,
1353 0, 0, 10, 11, 12, 0, 37, 0, 0, 13,
1354 0, 0, 0, 0, 41, 0, 0, 42, 0, 0,
1355 43, 0, 0, 0, 0, 0, 0, 0, 0, 23,
1356 0, 0, 0, 24, 25, 0, 26, 27, 28, 0,
1357 0, 0, 0, 0, 0, 0, 0, 0, 30, 31,
1358 0, 0, 0, 0, 0, 0, 32, 33, 34, 35,
1359 107, 2, 3, 4, 5, 0, 0, 0, 0, 7,
1360 0, 8, 36, 0, 0, 0, 10, 11, 12, 0,
1361 37, 0, 0, 0, 0, 0, 0, 0, 41, 0,
1362 0, 42, 0, 0, 43, 0, 0, 0, 0, 0,
1363 0, 0, 0, 23, 0, 0, 0, 24, 25, 0,
1364 26, 27, 28, 0, 0, 0, 0, 0, 0, 0,
1365 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1366 32, 33, 34, 0, 0, 0, 0, 0, 0, 0,
1367 0, 0, 0, 0, 0, 0, 36, 0, 0, 0,
1368 0, 0, 0, 0, 37, 0, 0, 0, 0, 0,
1369 0, 0, 356, 0, 0, 42, 0, 0, 43, 357,
1370 358, 359, 360, 361, 362, 363, 364, 365, 366, 367,
1371 368, 369, 370, 0, 0, 0, 0, 0, 0, 0,
1372 0, 0, 0, 0, 0, 0, 371, 372, 373, 374,
1373 375, 376, 377, 0, 0, 0, 0, 0, 0, 0,
1374 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1375 0, 0, 378, 0, 0, 0, 0, 379, 380, 381,
1376 382, 383, 384, 385, 386, 387, 388, 389, 390, 391,
1377 392, 393, 0, 394, 0, 395, 396, 397, 0, 0,
1378 0, 0, 0, 0, 0, 0, 0, 0, 0, 398,
1379 399, 451, 0, 400, 401, 402, 403, 0, 357, 358,
1380 359, 360, 361, 362, 363, 364, 365, 366, 367, 368,
1381 369, 370, 0, 0, 0, 0, 0, 0, 0, 0,
1382 0, 0, 0, 0, 0, 371, 372, 373, 374, 375,
1383 376, 377, 0, 0, 0, 0, 0, 0, 0, 0,
1384 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1385 0, 378, 0, 0, 0, 0, 379, 380, 381, 382,
1386 383, 384, 385, 386, 387, 388, 389, 390, 391, 392,
1387 393, 0, 394, 0, 395, 396, 397, 0, 0, 0,
1388 0, 0, 0, 0, 0, 0, 0, 0, 398, 399,
1389 0, 0, 400, 401, 402, 403, 357, 358, 359, 360,
1390 361, 362, 363, 364, 365, 366, 367, 368, 369, 370,
1391 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1392 0, 0, 0, 371, 372, 373, 374, 375, 376, 377,
1393 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1394 0, 0, 0, 0, 0, 0, 0, 0, 0, 378,
1395 0, 0, 0, 0, 379, 380, 381, 382, 383, 384,
1396 385, 386, 387, 388, 389, 390, 391, 392, 393, 0,
1397 394, 0, 395, 396, 397, 0, 0, 0, 0, 0,
1398 0, 0, 0, 0, 0, 0, 398, 399, 0, 0,
1399 400, 401, 402, 403
1400 };
1401
1402 static const yytype_int16 yycheck[] =
1403 {
1404 30, 31, 32, 17, 138, 203, 88, 54, 241, 129,
1405 3, 41, 7, 8, 100, 16, 133, 9, 3, 356,
1406 146, 303, 16, 31, 3, 12, 0, 22, 12, 0,
1407 14, 26, 27, 28, 18, 117, 306, 45, 120, 309,
1408 3, 55, 3, 4, 5, 6, 7, 26, 43, 24,
1409 25, 12, 0, 14, 12, 9, 3, 11, 33, 34,
1410 36, 9, 344, 26, 9, 347, 50, 51, 115, 116,
1411 15, 9, 46, 11, 200, 46, 123, 124, 311, 26,
1412 350, 95, 352, 353, 71, 3, 71, 12, 64, 14,
1413 4, 11, 53, 54, 55, 13, 16, 76, 46, 100,
1414 101, 15, 300, 98, 99, 100, 100, 102, 26, 446,
1415 12, 86, 14, 143, 451, 3, 3, 3, 113, 201,
1416 112, 207, 355, 356, 117, 13, 13, 13, 77, 78,
1417 79, 80, 81, 82, 83, 84, 85, 86, 26, 26,
1418 26, 90, 98, 99, 93, 4, 95, 96, 97, 11,
1419 111, 3, 105, 106, 16, 425, 426, 12, 17, 4,
1420 11, 191, 4, 12, 298, 118, 119, 301, 12, 14,
1421 304, 16, 14, 293, 16, 445, 9, 172, 225, 296,
1422 13, 9, 452, 12, 454, 13, 11, 269, 421, 459,
1423 460, 273, 9, 9, 98, 99, 13, 13, 431, 194,
1424 9, 3, 9, 285, 13, 287, 13, 89, 109, 110,
1425 240, 241, 113, 114, 115, 116, 47, 9, 9, 417,
1426 453, 13, 13, 49, 219, 9, 221, 222, 9, 13,
1427 9, 9, 13, 9, 13, 13, 9, 13, 9, 89,
1428 13, 30, 13, 26, 27, 28, 29, 329, 48, 331,
1429 179, 180, 181, 182, 21, 22, 23, 9, 10, 11,
1430 187, 188, 189, 277, 278, 52, 98, 99, 91, 283,
1431 284, 24, 25, 87, 88, 19, 20, 9, 10, 177,
1432 178, 311, 416, 18, 279, 280, 281, 282, 183, 184,
1433 28, 185, 186, 9, 71, 4, 3, 12, 12, 3,
1434 12, 14, 71, 14, 12, 15, 9, 321, 14, 9,
1435 9, 4, 17, 14, 35, 17, 101, 15, 12, 16,
1436 16, 16, 13, 13, 9, 355, 356, 341, 15, 17,
1437 100, 17, 0, 13, 12, 3, 4, 5, 6, 7,
1438 11, 11, 17, 11, 12, 17, 14, 13, 16, 13,
1439 13, 19, 20, 21, 12, 44, 13, 13, 26, 13,
1440 163, 339, 46, 45, 243, 33, 170, 307, 36, 37,
1441 38, 39, 40, 41, 316, 43, 44, 171, 46, 174,
1442 173, 193, 50, 51, 190, 53, 54, 55, 176, 175,
1443 -1, 421, 406, -1, 408, 409, 64, 65, 66, -1,
1444 -1, 431, -1, -1, -1, 73, 74, 75, 76, -1,
1445 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1446 -1, 89, -1, 453, -1, -1, -1, -1, -1, 97,
1447 -1, -1, -1, -1, 102, 103, 104, 105, -1, -1,
1448 108, -1, -1, 111, -1, -1, 3, 4, 5, 6,
1449 7, -1, 120, 121, 11, 12, -1, 14, -1, 16,
1450 17, -1, 19, 20, 21, -1, -1, -1, -1, 26,
1451 -1, -1, -1, -1, -1, -1, 33, -1, -1, 36,
1452 37, 38, 39, 40, 41, -1, 43, 44, -1, 46,
1453 -1, -1, -1, 50, 51, -1, 53, 54, 55, -1,
1454 -1, -1, -1, -1, -1, -1, -1, 64, 65, 66,
1455 -1, -1, -1, -1, -1, -1, 73, 74, 75, 76,
1456 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1457 -1, -1, 89, -1, -1, -1, -1, -1, -1, -1,
1458 97, -1, -1, -1, -1, 102, 103, 104, 105, -1,
1459 -1, 108, -1, -1, 111, -1, -1, 3, 4, 5,
1460 6, 7, -1, 120, 121, 11, 12, -1, 14, -1,
1461 16, 17, -1, 19, 20, 21, -1, -1, -1, -1,
1462 26, -1, -1, -1, -1, -1, -1, 33, -1, -1,
1463 36, 37, 38, 39, 40, 41, -1, 43, 44, -1,
1464 46, -1, -1, -1, 50, 51, -1, 53, 54, 55,
1465 -1, -1, -1, -1, -1, -1, -1, -1, 64, 65,
1466 66, -1, -1, -1, -1, -1, -1, 73, 74, 75,
1467 76, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1468 -1, -1, -1, 89, -1, -1, -1, -1, -1, -1,
1469 -1, 97, -1, -1, -1, -1, 102, 103, 104, 105,
1470 -1, -1, 108, -1, -1, 111, -1, -1, 3, 4,
1471 5, 6, 7, -1, 120, 121, 11, 12, -1, 14,
1472 -1, 16, -1, -1, 19, 20, 21, -1, -1, -1,
1473 -1, 26, -1, -1, -1, -1, -1, -1, 33, -1,
1474 -1, 36, 37, 38, 39, 40, 41, -1, 43, 44,
1475 -1, 46, -1, -1, -1, 50, 51, -1, 53, 54,
1476 55, -1, -1, -1, -1, -1, -1, -1, -1, 64,
1477 65, 66, -1, -1, -1, -1, -1, -1, 73, 74,
1478 75, 76, -1, -1, -1, -1, -1, -1, -1, -1,
1479 -1, -1, -1, -1, 89, -1, -1, -1, -1, -1,
1480 -1, -1, 97, -1, -1, -1, -1, 102, 103, 104,
1481 105, -1, -1, 108, -1, -1, 111, -1, -1, 3,
1482 4, 5, 6, 7, -1, 120, 121, 11, 12, -1,
1483 14, -1, 16, 17, -1, 19, 20, 21, -1, -1,
1484 -1, -1, 26, -1, -1, -1, -1, -1, -1, 33,
1485 -1, -1, 36, 37, 38, 39, 40, 41, -1, -1,
1486 44, -1, 46, -1, -1, -1, 50, 51, -1, 53,
1487 54, 55, -1, -1, -1, -1, -1, -1, -1, -1,
1488 64, 65, 66, -1, -1, -1, -1, -1, -1, 73,
1489 74, 75, 76, -1, -1, -1, -1, -1, -1, -1,
1490 -1, -1, -1, -1, -1, 89, -1, -1, -1, -1,
1491 -1, -1, -1, 97, -1, -1, -1, -1, -1, -1,
1492 -1, 105, -1, -1, 108, -1, -1, 111, -1, -1,
1493 3, 4, 5, 6, 7, -1, 120, 121, 11, 12,
1494 -1, 14, -1, 16, 17, -1, 19, 20, 21, -1,
1495 -1, -1, -1, 26, -1, -1, -1, -1, -1, -1,
1496 33, -1, -1, 36, 37, 38, 39, 40, 41, -1,
1497 -1, 44, -1, 46, -1, -1, -1, 50, 51, -1,
1498 53, 54, 55, -1, -1, -1, -1, -1, -1, -1,
1499 -1, 64, 65, 66, -1, -1, -1, -1, -1, -1,
1500 73, 74, 75, 76, -1, -1, -1, -1, -1, -1,
1501 -1, -1, -1, -1, -1, -1, 89, -1, -1, -1,
1502 -1, -1, -1, -1, 97, -1, -1, -1, -1, -1,
1503 -1, -1, 105, -1, -1, 108, -1, -1, 111, -1,
1504 -1, 3, 4, 5, 6, 7, -1, 120, 121, 11,
1505 12, -1, 14, -1, 16, -1, -1, 19, 20, 21,
1506 -1, -1, -1, -1, 26, -1, -1, -1, -1, -1,
1507 -1, 33, -1, -1, 36, 37, 38, 39, 40, 41,
1508 -1, -1, 44, -1, 46, -1, -1, -1, 50, 51,
1509 -1, 53, 54, 55, -1, -1, -1, -1, -1, -1,
1510 -1, -1, 64, 65, 66, -1, -1, -1, -1, -1,
1511 -1, 73, 74, 75, 76, -1, -1, -1, -1, -1,
1512 -1, -1, -1, -1, -1, -1, -1, 89, -1, -1,
1513 -1, -1, -1, -1, -1, 97, -1, -1, -1, -1,
1514 -1, -1, -1, 105, 3, -1, 108, -1, -1, 111,
1515 -1, -1, -1, -1, -1, -1, -1, -1, 120, 121,
1516 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
1517 29, 30, 31, 32, -1, -1, -1, -1, -1, -1,
1518 -1, -1, -1, -1, -1, -1, -1, 46, 47, 48,
1519 49, 50, 51, 52, -1, -1, -1, -1, -1, -1,
1520 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1521 -1, -1, -1, 72, -1, -1, -1, -1, 77, 78,
1522 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
1523 89, 90, 91, -1, 93, -1, 95, 96, 97, -1,
1524 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1525 109, 110, -1, -1, 113, 114, 115, 116, 3, 4,
1526 5, 6, 7, -1, -1, -1, -1, 12, 13, 14,
1527 -1, -1, -1, -1, 19, 20, 21, -1, -1, -1,
1528 -1, 26, -1, -1, -1, -1, -1, -1, -1, -1,
1529 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1530 -1, 46, -1, -1, -1, 50, 51, -1, 53, 54,
1531 55, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1532 65, 66, -1, -1, -1, -1, -1, -1, 73, 74,
1533 75, 76, 3, 4, 5, 6, 7, -1, -1, -1,
1534 11, 12, -1, 14, 89, -1, -1, -1, 19, 20,
1535 21, -1, 97, -1, -1, 26, -1, -1, -1, -1,
1536 105, -1, -1, 108, -1, -1, 111, -1, -1, -1,
1537 -1, -1, -1, -1, -1, 46, -1, -1, -1, 50,
1538 51, -1, 53, 54, 55, -1, -1, -1, -1, -1,
1539 -1, -1, -1, -1, 65, 66, -1, -1, -1, -1,
1540 -1, -1, 73, 74, 75, 76, 3, 4, 5, 6,
1541 7, -1, -1, -1, 11, 12, -1, 14, 89, -1,
1542 -1, -1, 19, 20, 21, -1, 97, -1, -1, 26,
1543 -1, -1, -1, -1, 105, -1, -1, 108, -1, -1,
1544 111, -1, -1, -1, -1, -1, -1, -1, -1, 46,
1545 -1, -1, -1, 50, 51, -1, 53, 54, 55, -1,
1546 -1, -1, -1, -1, -1, -1, -1, -1, 65, 66,
1547 -1, -1, -1, -1, -1, -1, 73, 74, 75, 76,
1548 3, 4, 5, 6, 7, -1, -1, -1, -1, 12,
1549 13, 14, 89, -1, -1, -1, 19, 20, 21, -1,
1550 97, -1, -1, 26, -1, -1, -1, -1, 105, -1,
1551 -1, 108, -1, -1, 111, -1, -1, -1, -1, -1,
1552 -1, -1, -1, 46, -1, -1, -1, 50, 51, -1,
1553 53, 54, 55, -1, -1, -1, -1, -1, -1, -1,
1554 -1, -1, 65, 66, -1, -1, -1, -1, -1, -1,
1555 73, 74, 75, 76, -1, -1, -1, -1, -1, -1,
1556 3, 4, 5, 6, 7, -1, 89, -1, -1, 12,
1557 -1, 14, 15, -1, 97, -1, 19, 20, 21, -1,
1558 -1, -1, 105, 26, -1, 108, -1, -1, 111, -1,
1559 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1560 -1, -1, -1, 46, -1, -1, -1, 50, 51, -1,
1561 53, 54, 55, -1, -1, -1, -1, -1, -1, -1,
1562 -1, -1, 65, 66, -1, -1, -1, -1, -1, -1,
1563 73, 74, 75, 76, 3, 4, 5, 6, 7, -1,
1564 -1, -1, -1, 12, 13, 14, 89, -1, -1, -1,
1565 19, 20, 21, -1, 97, -1, -1, 26, -1, -1,
1566 -1, -1, 105, -1, -1, 108, -1, -1, 111, -1,
1567 -1, -1, -1, -1, -1, -1, -1, 46, -1, -1,
1568 -1, 50, 51, -1, 53, 54, 55, -1, -1, -1,
1569 -1, -1, -1, -1, -1, -1, 65, 66, -1, -1,
1570 -1, -1, -1, -1, 73, 74, 75, 76, 3, 4,
1571 5, 6, 7, -1, -1, -1, -1, 12, 13, 14,
1572 89, -1, -1, -1, 19, 20, 21, -1, 97, -1,
1573 -1, 26, -1, -1, -1, -1, 105, -1, -1, 108,
1574 -1, -1, 111, -1, -1, -1, -1, -1, -1, -1,
1575 -1, 46, -1, -1, -1, 50, 51, -1, 53, 54,
1576 55, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1577 65, 66, -1, -1, -1, -1, -1, -1, 73, 74,
1578 75, 76, -1, -1, -1, -1, -1, -1, 3, 4,
1579 5, 6, 7, -1, 89, -1, -1, 12, -1, 14,
1580 15, -1, 97, -1, 19, 20, 21, -1, -1, -1,
1581 105, 26, -1, 108, -1, -1, 111, -1, -1, -1,
1582 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1583 -1, 46, -1, -1, -1, 50, 51, -1, 53, 54,
1584 55, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1585 65, 66, -1, -1, -1, -1, -1, -1, 73, 74,
1586 75, 76, 3, 4, 5, 6, 7, -1, -1, -1,
1587 -1, 12, 13, 14, 89, -1, -1, -1, 19, 20,
1588 21, -1, 97, -1, -1, 26, -1, -1, -1, -1,
1589 105, -1, -1, 108, -1, -1, 111, -1, -1, -1,
1590 -1, -1, -1, -1, -1, 46, -1, -1, -1, 50,
1591 51, -1, 53, 54, 55, -1, -1, -1, -1, -1,
1592 -1, -1, -1, -1, 65, 66, -1, -1, -1, -1,
1593 -1, -1, 73, 74, 75, 76, 3, 4, 5, 6,
1594 7, -1, -1, -1, -1, 12, -1, 14, 89, -1,
1595 -1, -1, 19, 20, 21, -1, 97, -1, -1, 26,
1596 -1, -1, -1, -1, 105, -1, -1, 108, -1, -1,
1597 111, -1, -1, -1, -1, -1, -1, -1, -1, 46,
1598 -1, -1, -1, 50, 51, -1, 53, 54, 55, -1,
1599 -1, -1, -1, -1, -1, -1, -1, -1, 65, 66,
1600 -1, -1, -1, -1, -1, -1, 73, 74, 75, 76,
1601 3, 4, 5, 6, 7, -1, -1, -1, -1, 12,
1602 -1, 14, 89, -1, -1, -1, 19, 20, 21, -1,
1603 97, -1, -1, -1, -1, -1, -1, -1, 105, -1,
1604 -1, 108, -1, -1, 111, -1, -1, -1, -1, -1,
1605 -1, -1, -1, 46, -1, -1, -1, 50, 51, -1,
1606 53, 54, 55, -1, -1, -1, -1, -1, -1, -1,
1607 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1608 73, 74, 75, -1, -1, -1, -1, -1, -1, -1,
1609 -1, -1, -1, -1, -1, -1, 89, -1, -1, -1,
1610 -1, -1, -1, -1, 97, -1, -1, -1, -1, -1,
1611 -1, -1, 12, -1, -1, 108, -1, -1, 111, 19,
1612 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
1613 30, 31, 32, -1, -1, -1, -1, -1, -1, -1,
1614 -1, -1, -1, -1, -1, -1, 46, 47, 48, 49,
1615 50, 51, 52, -1, -1, -1, -1, -1, -1, -1,
1616 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1617 -1, -1, 72, -1, -1, -1, -1, 77, 78, 79,
1618 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
1619 90, 91, -1, 93, -1, 95, 96, 97, -1, -1,
1620 -1, -1, -1, -1, -1, -1, -1, -1, -1, 109,
1621 110, 12, -1, 113, 114, 115, 116, -1, 19, 20,
1622 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
1623 31, 32, -1, -1, -1, -1, -1, -1, -1, -1,
1624 -1, -1, -1, -1, -1, 46, 47, 48, 49, 50,
1625 51, 52, -1, -1, -1, -1, -1, -1, -1, -1,
1626 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1627 -1, 72, -1, -1, -1, -1, 77, 78, 79, 80,
1628 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
1629 91, -1, 93, -1, 95, 96, 97, -1, -1, -1,
1630 -1, -1, -1, -1, -1, -1, -1, -1, 109, 110,
1631 -1, -1, 113, 114, 115, 116, 19, 20, 21, 22,
1632 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
1633 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1634 -1, -1, -1, 46, 47, 48, 49, 50, 51, 52,
1635 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1636 -1, -1, -1, -1, -1, -1, -1, -1, -1, 72,
1637 -1, -1, -1, -1, 77, 78, 79, 80, 81, 82,
1638 83, 84, 85, 86, 87, 88, 89, 90, 91, -1,
1639 93, -1, 95, 96, 97, -1, -1, -1, -1, -1,
1640 -1, -1, -1, -1, -1, -1, 109, 110, -1, -1,
1641 113, 114, 115, 116
1642 };
1643
1644 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
1645 symbol of state STATE-NUM. */
1646 static const yytype_uint8 yystos[] =
1647 {
1648 0, 3, 4, 5, 6, 7, 11, 12, 14, 16,
1649 19, 20, 21, 26, 33, 36, 37, 38, 39, 40,
1650 41, 43, 44, 46, 50, 51, 53, 54, 55, 64,
1651 65, 66, 73, 74, 75, 76, 89, 97, 102, 103,
1652 104, 105, 108, 111, 120, 121, 123, 124, 125, 133,
1653 134, 135, 137, 138, 139, 142, 143, 144, 145, 146,
1654 147, 148, 151, 154, 155, 156, 157, 158, 160, 163,
1655 164, 165, 168, 169, 170, 171, 172, 173, 174, 175,
1656 176, 177, 178, 179, 180, 181, 182, 184, 185, 186,
1657 71, 13, 155, 155, 17, 142, 3, 132, 12, 12,
1658 12, 143, 12, 11, 11, 11, 155, 3, 181, 181,
1659 155, 155, 155, 12, 3, 139, 139, 139, 181, 181,
1660 3, 161, 162, 76, 139, 89, 155, 4, 14, 16,
1661 150, 4, 14, 16, 153, 0, 124, 98, 99, 105,
1662 106, 118, 119, 136, 161, 143, 9, 11, 77, 78,
1663 79, 80, 81, 82, 83, 84, 85, 86, 90, 93,
1664 95, 96, 97, 166, 109, 110, 113, 114, 115, 116,
1665 167, 31, 45, 30, 47, 49, 48, 24, 25, 26,
1666 27, 28, 29, 87, 88, 19, 20, 21, 22, 23,
1667 89, 52, 181, 91, 12, 18, 50, 51, 158, 13,
1668 9, 15, 17, 18, 28, 155, 155, 154, 155, 36,
1669 64, 155, 11, 13, 13, 13, 155, 161, 161, 12,
1670 158, 12, 14, 158, 159, 9, 161, 161, 112, 15,
1671 149, 150, 17, 149, 152, 153, 152, 3, 131, 131,
1672 12, 12, 3, 139, 140, 156, 157, 160, 170, 155,
1673 171, 172, 173, 174, 175, 175, 176, 176, 176, 176,
1674 177, 177, 178, 178, 179, 179, 179, 180, 139, 185,
1675 13, 155, 3, 15, 158, 132, 71, 13, 13, 154,
1676 10, 12, 12, 13, 13, 13, 155, 13, 155, 15,
1677 14, 161, 14, 9, 17, 15, 9, 17, 9, 16,
1678 100, 101, 126, 16, 100, 130, 13, 139, 141, 13,
1679 141, 12, 14, 159, 3, 117, 10, 13, 158, 143,
1680 143, 13, 155, 155, 155, 155, 143, 143, 158, 13,
1681 158, 13, 15, 149, 152, 131, 125, 127, 128, 129,
1682 133, 142, 132, 131, 16, 127, 131, 16, 147, 162,
1683 13, 147, 13, 13, 141, 12, 12, 19, 20, 21,
1684 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
1685 32, 46, 47, 48, 49, 50, 51, 52, 72, 77,
1686 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
1687 88, 89, 90, 91, 93, 95, 96, 97, 109, 110,
1688 113, 114, 115, 116, 183, 168, 35, 143, 13, 13,
1689 13, 13, 158, 158, 17, 128, 101, 100, 127, 17,
1690 127, 9, 147, 147, 147, 13, 13, 141, 26, 141,
1691 183, 12, 143, 143, 143, 11, 11, 131, 132, 17,
1692 17, 141, 147, 11, 147, 13, 13, 13, 141, 11,
1693 147, 12, 183, 12, 13, 183, 147, 141, 147, 13,
1694 13, 147, 147
1695 };
1696
1697 #define yyerrok (yyerrstatus = 0)
1698 #define yyclearin (yychar = YYEMPTY)
1699 #define YYEMPTY (-2)
1700 #define YYEOF 0
1701
1702 #define YYACCEPT goto yyacceptlab
1703 #define YYABORT goto yyabortlab
1704 #define YYERROR goto yyerrorlab
1705
1706
1707 /* Like YYERROR except do call yyerror. This remains here temporarily
1708 to ease the transition to the new meaning of YYERROR, for GCC.
1709 Once GCC version 2 has supplanted version 1, this can go. */
1710
1711 #define YYFAIL goto yyerrlab
1712
1713 #define YYRECOVERING() (!!yyerrstatus)
1714
1715 #define YYBACKUP(Token, Value) \
1716 do \
1717 if (yychar == YYEMPTY && yylen == 1) \
1718 { \
1719 yychar = (Token); \
1720 yylval = (Value); \
1721 yytoken = YYTRANSLATE (yychar); \
1722 YYPOPSTACK (1); \
1723 goto yybackup; \
1724 } \
1725 else \
1726 { \
1727 yyerror (YY_("syntax error: cannot back up")); \
1728 YYERROR; \
1729 } \
1730 while (YYID (0))
1731
1732
1733 #define YYTERROR 1
1734 #define YYERRCODE 256
1735
1736
1737 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
1738 If N is 0, then set CURRENT to the empty location which ends
1739 the previous symbol: RHS[0] (always defined). */
1740
1741 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
1742 #ifndef YYLLOC_DEFAULT
1743 # define YYLLOC_DEFAULT(Current, Rhs, N) \
1744 do \
1745 if (YYID (N)) \
1746 { \
1747 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
1748 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
1749 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
1750 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
1751 } \
1752 else \
1753 { \
1754 (Current).first_line = (Current).last_line = \
1755 YYRHSLOC (Rhs, 0).last_line; \
1756 (Current).first_column = (Current).last_column = \
1757 YYRHSLOC (Rhs, 0).last_column; \
1758 } \
1759 while (YYID (0))
1760 #endif
1761
1762
1763 /* YY_LOCATION_PRINT -- Print the location on the stream.
1764 This macro was not mandated originally: define only if we know
1765 we won't break user code: when these are the locations we know. */
1766
1767 #ifndef YY_LOCATION_PRINT
1768 # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
1769 # define YY_LOCATION_PRINT(File, Loc) \
1770 fprintf (File, "%d.%d-%d.%d", \
1771 (Loc).first_line, (Loc).first_column, \
1772 (Loc).last_line, (Loc).last_column)
1773 # else
1774 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1775 # endif
1776 #endif
1777
1778
1779 /* YYLEX -- calling `yylex' with the right arguments. */
1780
1781 #ifdef YYLEX_PARAM
1782 # define YYLEX yylex (YYLEX_PARAM)
1783 #else
1784 # define YYLEX yylex ()
1785 #endif
1786
1787 /* Enable debugging if requested. */
1788 #if YYDEBUG
1789
1790 # ifndef YYFPRINTF
1791 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1792 # define YYFPRINTF fprintf
1793 # endif
1794
1795 # define YYDPRINTF(Args) \
1796 do { \
1797 if (yydebug) \
1798 YYFPRINTF Args; \
1799 } while (YYID (0))
1800
1801 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
1802 do { \
1803 if (yydebug) \
1804 { \
1805 YYFPRINTF (stderr, "%s ", Title); \
1806 yy_symbol_print (stderr, \
1807 Type, Value, Location); \
1808 YYFPRINTF (stderr, "\n"); \
1809 } \
1810 } while (YYID (0))
1811
1812
1813 /*--------------------------------.
1814 | Print this symbol on YYOUTPUT. |
1815 `--------------------------------*/
1816
1817 /*ARGSUSED*/
1818 #if (defined __STDC__ || defined __C99__FUNC__ \
1819 || defined __cplusplus || defined _MSC_VER)
1820 static void
1821 yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
1822 #else
1823 static void
1824 yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp)
1825 FILE *yyoutput;
1826 int yytype;
1827 YYSTYPE const * const yyvaluep;
1828 YYLTYPE const * const yylocationp;
1829 #endif
1830 {
1831 if (!yyvaluep)
1832 return;
1833 YYUSE (yylocationp);
1834 # ifdef YYPRINT
1835 if (yytype < YYNTOKENS)
1836 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
1837 # else
1838 YYUSE (yyoutput);
1839 # endif
1840 switch (yytype)
1841 {
1842 default:
1843 break;
1844 }
1845 }
1846
1847
1848 /*--------------------------------.
1849 | Print this symbol on YYOUTPUT. |
1850 `--------------------------------*/
1851
1852 #if (defined __STDC__ || defined __C99__FUNC__ \
1853 || defined __cplusplus || defined _MSC_VER)
1854 static void
1855 yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
1856 #else
1857 static void
1858 yy_symbol_print (yyoutput, yytype, yyvaluep, yylocationp)
1859 FILE *yyoutput;
1860 int yytype;
1861 YYSTYPE const * const yyvaluep;
1862 YYLTYPE const * const yylocationp;
1863 #endif
1864 {
1865 if (yytype < YYNTOKENS)
1866 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
1867 else
1868 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
1869
1870 YY_LOCATION_PRINT (yyoutput, *yylocationp);
1871 YYFPRINTF (yyoutput, ": ");
1872 yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp);
1873 YYFPRINTF (yyoutput, ")");
1874 }
1875
1876 /*------------------------------------------------------------------.
1877 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
1878 | TOP (included). |
1879 `------------------------------------------------------------------*/
1880
1881 #if (defined __STDC__ || defined __C99__FUNC__ \
1882 || defined __cplusplus || defined _MSC_VER)
1883 static void
1884 yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
1885 #else
1886 static void
1887 yy_stack_print (bottom, top)
1888 yytype_int16 *bottom;
1889 yytype_int16 *top;
1890 #endif
1891 {
1892 YYFPRINTF (stderr, "Stack now");
1893 for (; bottom <= top; ++bottom)
1894 YYFPRINTF (stderr, " %d", *bottom);
1895 YYFPRINTF (stderr, "\n");
1896 }
1897
1898 # define YY_STACK_PRINT(Bottom, Top) \
1899 do { \
1900 if (yydebug) \
1901 yy_stack_print ((Bottom), (Top)); \
1902 } while (YYID (0))
1903
1904
1905 /*------------------------------------------------.
1906 | Report that the YYRULE is going to be reduced. |
1907 `------------------------------------------------*/
1908
1909 #if (defined __STDC__ || defined __C99__FUNC__ \
1910 || defined __cplusplus || defined _MSC_VER)
1911 static void
1912 yy_reduce_print (YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule)
1913 #else
1914 static void
1915 yy_reduce_print (yyvsp, yylsp, yyrule)
1916 YYSTYPE *yyvsp;
1917 YYLTYPE *yylsp;
1918 int yyrule;
1919 #endif
1920 {
1921 int yynrhs = yyr2[yyrule];
1922 int yyi;
1923 unsigned long int yylno = yyrline[yyrule];
1924 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
1925 yyrule - 1, yylno);
1926 /* The symbols being reduced. */
1927 for (yyi = 0; yyi < yynrhs; yyi++)
1928 {
1929 fprintf (stderr, " $%d = ", yyi + 1);
1930 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
1931 &(yyvsp[(yyi + 1) - (yynrhs)])
1932 , &(yylsp[(yyi + 1) - (yynrhs)]) );
1933 fprintf (stderr, "\n");
1934 }
1935 }
1936
1937 # define YY_REDUCE_PRINT(Rule) \
1938 do { \
1939 if (yydebug) \
1940 yy_reduce_print (yyvsp, yylsp, Rule); \
1941 } while (YYID (0))
1942
1943 /* Nonzero means print parse trace. It is left uninitialized so that
1944 multiple parsers can coexist. */
1945 int yydebug;
1946 #else /* !YYDEBUG */
1947 # define YYDPRINTF(Args)
1948 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1949 # define YY_STACK_PRINT(Bottom, Top)
1950 # define YY_REDUCE_PRINT(Rule)
1951 #endif /* !YYDEBUG */
1952
1953
1954 /* YYINITDEPTH -- initial size of the parser's stacks. */
1955 #ifndef YYINITDEPTH
1956 # define YYINITDEPTH 200
1957 #endif
1958
1959 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1960 if the built-in stack extension method is used).
1961
1962 Do not make this value too large; the results are undefined if
1963 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1964 evaluated with infinite-precision integer arithmetic. */
1965
1966 #ifndef YYMAXDEPTH
1967 # define YYMAXDEPTH 10000
1968 #endif
1969
1970
1971
1972 #if YYERROR_VERBOSE
1973
1974 # ifndef yystrlen
1975 # if defined __GLIBC__ && defined _STRING_H
1976 # define yystrlen strlen
1977 # else
1978 /* Return the length of YYSTR. */
1979 #if (defined __STDC__ || defined __C99__FUNC__ \
1980 || defined __cplusplus || defined _MSC_VER)
1981 static YYSIZE_T
1982 yystrlen (const char *yystr)
1983 #else
1984 static YYSIZE_T
1985 yystrlen (yystr)
1986 const char *yystr;
1987 #endif
1988 {
1989 YYSIZE_T yylen;
1990 for (yylen = 0; yystr[yylen]; yylen++)
1991 continue;
1992 return yylen;
1993 }
1994 # endif
1995 # endif
1996
1997 # ifndef yystpcpy
1998 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1999 # define yystpcpy stpcpy
2000 # else
2001 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
2002 YYDEST. */
2003 #if (defined __STDC__ || defined __C99__FUNC__ \
2004 || defined __cplusplus || defined _MSC_VER)
2005 static char *
2006 yystpcpy (char *yydest, const char *yysrc)
2007 #else
2008 static char *
2009 yystpcpy (yydest, yysrc)
2010 char *yydest;
2011 const char *yysrc;
2012 #endif
2013 {
2014 char *yyd = yydest;
2015 const char *yys = yysrc;
2016
2017 while ((*yyd++ = *yys++) != '\0')
2018 continue;
2019
2020 return yyd - 1;
2021 }
2022 # endif
2023 # endif
2024
2025 # ifndef yytnamerr
2026 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
2027 quotes and backslashes, so that it's suitable for yyerror. The
2028 heuristic is that double-quoting is unnecessary unless the string
2029 contains an apostrophe, a comma, or backslash (other than
2030 backslash-backslash). YYSTR is taken from yytname. If YYRES is
2031 null, do not copy; instead, return the length of what the result
2032 would have been. */
2033 static YYSIZE_T
2034 yytnamerr (char *yyres, const char *yystr)
2035 {
2036 if (*yystr == '"')
2037 {
2038 YYSIZE_T yyn = 0;
2039 char const *yyp = yystr;
2040
2041 for (;;)
2042 switch (*++yyp)
2043 {
2044 case '\'':
2045 case ',':
2046 goto do_not_strip_quotes;
2047
2048 case '\\':
2049 if (*++yyp != '\\')
2050 goto do_not_strip_quotes;
2051 /* Fall through. */
2052 default:
2053 if (yyres)
2054 yyres[yyn] = *yyp;
2055 yyn++;
2056 break;
2057
2058 case '"':
2059 if (yyres)
2060 yyres[yyn] = '\0';
2061 return yyn;
2062 }
2063 do_not_strip_quotes: ;
2064 }
2065
2066 if (! yyres)
2067 return yystrlen (yystr);
2068
2069 return yystpcpy (yyres, yystr) - yyres;
2070 }
2071 # endif
2072
2073 /* Copy into YYRESULT an error message about the unexpected token
2074 YYCHAR while in state YYSTATE. Return the number of bytes copied,
2075 including the terminating null byte. If YYRESULT is null, do not
2076 copy anything; just return the number of bytes that would be
2077 copied. As a special case, return 0 if an ordinary "syntax error"
2078 message will do. Return YYSIZE_MAXIMUM if overflow occurs during
2079 size calculation. */
2080 static YYSIZE_T
2081 yysyntax_error (char *yyresult, int yystate, int yychar)
2082 {
2083 int yyn = yypact[yystate];
2084
2085 if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
2086 return 0;
2087 else
2088 {
2089 int yytype = YYTRANSLATE (yychar);
2090 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
2091 YYSIZE_T yysize = yysize0;
2092 YYSIZE_T yysize1;
2093 int yysize_overflow = 0;
2094 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
2095 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
2096 int yyx;
2097
2098 # if 0
2099 /* This is so xgettext sees the translatable formats that are
2100 constructed on the fly. */
2101 YY_("syntax error, unexpected %s");
2102 YY_("syntax error, unexpected %s, expecting %s");
2103 YY_("syntax error, unexpected %s, expecting %s or %s");
2104 YY_("syntax error, unexpected %s, expecting %s or %s or %s");
2105 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
2106 # endif
2107 char *yyfmt;
2108 char const *yyf;
2109 static char const yyunexpected[] = "syntax error, unexpected %s";
2110 static char const yyexpecting[] = ", expecting %s";
2111 static char const yyor[] = " or %s";
2112 char yyformat[sizeof yyunexpected
2113 + sizeof yyexpecting - 1
2114 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
2115 * (sizeof yyor - 1))];
2116 char const *yyprefix = yyexpecting;
2117
2118 /* Start YYX at -YYN if negative to avoid negative indexes in
2119 YYCHECK. */
2120 int yyxbegin = yyn < 0 ? -yyn : 0;
2121
2122 /* Stay within bounds of both yycheck and yytname. */
2123 int yychecklim = YYLAST - yyn + 1;
2124 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
2125 int yycount = 1;
2126
2127 yyarg[0] = yytname[yytype];
2128 yyfmt = yystpcpy (yyformat, yyunexpected);
2129
2130 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
2131 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
2132 {
2133 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
2134 {
2135 yycount = 1;
2136 yysize = yysize0;
2137 yyformat[sizeof yyunexpected - 1] = '\0';
2138 break;
2139 }
2140 yyarg[yycount++] = yytname[yyx];
2141 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
2142 yysize_overflow |= (yysize1 < yysize);
2143 yysize = yysize1;
2144 yyfmt = yystpcpy (yyfmt, yyprefix);
2145 yyprefix = yyor;
2146 }
2147
2148 yyf = YY_(yyformat);
2149 yysize1 = yysize + yystrlen (yyf);
2150 yysize_overflow |= (yysize1 < yysize);
2151 yysize = yysize1;
2152
2153 if (yysize_overflow)
2154 return YYSIZE_MAXIMUM;
2155
2156 if (yyresult)
2157 {
2158 /* Avoid sprintf, as that infringes on the user's name space.
2159 Don't have undefined behavior even if the translation
2160 produced a string with the wrong number of "%s"s. */
2161 char *yyp = yyresult;
2162 int yyi = 0;
2163 while ((*yyp = *yyf) != '\0')
2164 {
2165 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
2166 {
2167 yyp += yytnamerr (yyp, yyarg[yyi++]);
2168 yyf += 2;
2169 }
2170 else
2171 {
2172 yyp++;
2173 yyf++;
2174 }
2175 }
2176 }
2177 return yysize;
2178 }
2179 }
2180 #endif /* YYERROR_VERBOSE */
2181
2182
2183 /*-----------------------------------------------.
2184 | Release the memory associated to this symbol. |
2185 `-----------------------------------------------*/
2186
2187 /*ARGSUSED*/
2188 #if (defined __STDC__ || defined __C99__FUNC__ \
2189 || defined __cplusplus || defined _MSC_VER)
2190 static void
2191 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
2192 #else
2193 static void
2194 yydestruct (yymsg, yytype, yyvaluep, yylocationp)
2195 const char *yymsg;
2196 int yytype;
2197 YYSTYPE *yyvaluep;
2198 YYLTYPE *yylocationp;
2199 #endif
2200 {
2201 YYUSE (yyvaluep);
2202 YYUSE (yylocationp);
2203
2204 if (!yymsg)
2205 yymsg = "Deleting";
2206 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
2207
2208 switch (yytype)
2209 {
2210
2211 default:
2212 break;
2213 }
2214 }
2215
2216
2217 /* Prevent warnings from -Wmissing-prototypes. */
2218
2219 #ifdef YYPARSE_PARAM
2220 #if defined __STDC__ || defined __cplusplus
2221 int yyparse (void *YYPARSE_PARAM);
2222 #else
2223 int yyparse ();
2224 #endif
2225 #else /* ! YYPARSE_PARAM */
2226 #if defined __STDC__ || defined __cplusplus
2227 int yyparse (void);
2228 #else
2229 int yyparse ();
2230 #endif
2231 #endif /* ! YYPARSE_PARAM */
2232
2233
2234
2235 /* The look-ahead symbol. */
2236 int yychar;
2237
2238 /* The semantic value of the look-ahead symbol. */
2239 YYSTYPE yylval;
2240
2241 /* Number of syntax errors so far. */
2242 int yynerrs;
2243 /* Location data for the look-ahead symbol. */
2244 YYLTYPE yylloc;
2245
2246
2247
2248 /*----------.
2249 | yyparse. |
2250 `----------*/
2251
2252 #ifdef YYPARSE_PARAM
2253 #if (defined __STDC__ || defined __C99__FUNC__ \
2254 || defined __cplusplus || defined _MSC_VER)
2255 int
2256 yyparse (void *YYPARSE_PARAM)
2257 #else
2258 int
2259 yyparse (YYPARSE_PARAM)
2260 void *YYPARSE_PARAM;
2261 #endif
2262 #else /* ! YYPARSE_PARAM */
2263 #if (defined __STDC__ || defined __C99__FUNC__ \
2264 || defined __cplusplus || defined _MSC_VER)
2265 int
2266 yyparse (void)
2267 #else
2268 int
2269 yyparse ()
2270
2271 #endif
2272 #endif
2273 {
2274
2275 int yystate;
2276 int yyn;
2277 int yyresult;
2278 /* Number of tokens to shift before error messages enabled. */
2279 int yyerrstatus;
2280 /* Look-ahead token as an internal (translated) token number. */
2281 int yytoken = 0;
2282 #if YYERROR_VERBOSE
2283 /* Buffer for error messages, and its allocated size. */
2284 char yymsgbuf[128];
2285 char *yymsg = yymsgbuf;
2286 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
2287 #endif
2288
2289 /* Three stacks and their tools:
2290 `yyss': related to states,
2291 `yyvs': related to semantic values,
2292 `yyls': related to locations.
2293
2294 Refer to the stacks thru separate pointers, to allow yyoverflow
2295 to reallocate them elsewhere. */
2296
2297 /* The state stack. */
2298 yytype_int16 yyssa[YYINITDEPTH];
2299 yytype_int16 *yyss = yyssa;
2300 yytype_int16 *yyssp;
2301
2302 /* The semantic value stack. */
2303 YYSTYPE yyvsa[YYINITDEPTH];
2304 YYSTYPE *yyvs = yyvsa;
2305 YYSTYPE *yyvsp;
2306
2307 /* The location stack. */
2308 YYLTYPE yylsa[YYINITDEPTH];
2309 YYLTYPE *yyls = yylsa;
2310 YYLTYPE *yylsp;
2311 /* The locations where the error started and ended. */
2312 YYLTYPE yyerror_range[2];
2313
2314 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
2315
2316 YYSIZE_T yystacksize = YYINITDEPTH;
2317
2318 /* The variables used to return semantic value and location from the
2319 action routines. */
2320 YYSTYPE yyval;
2321 YYLTYPE yyloc;
2322
2323 /* The number of symbols on the RHS of the reduced rule.
2324 Keep to zero when no symbol should be popped. */
2325 int yylen = 0;
2326
2327 YYDPRINTF ((stderr, "Starting parse\n"));
2328
2329 yystate = 0;
2330 yyerrstatus = 0;
2331 yynerrs = 0;
2332 yychar = YYEMPTY; /* Cause a token to be read. */
2333
2334 /* Initialize stack pointers.
2335 Waste one element of value and location stack
2336 so that they stay on the same level as the state stack.
2337 The wasted elements are never initialized. */
2338
2339 yyssp = yyss;
2340 yyvsp = yyvs;
2341 yylsp = yyls;
2342 #if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
2343 /* Initialize the default location before parsing starts. */
2344 yylloc.first_line = yylloc.last_line = 1;
2345 yylloc.first_column = yylloc.last_column = 0;
2346 #endif
2347
2348 goto yysetstate;
2349
2350 /*------------------------------------------------------------.
2351 | yynewstate -- Push a new state, which is found in yystate. |
2352 `------------------------------------------------------------*/
2353 yynewstate:
2354 /* In all cases, when you get here, the value and location stacks
2355 have just been pushed. So pushing a state here evens the stacks. */
2356 yyssp++;
2357
2358 yysetstate:
2359 *yyssp = yystate;
2360
2361 if (yyss + yystacksize - 1 <= yyssp)
2362 {
2363 /* Get the current used size of the three stacks, in elements. */
2364 YYSIZE_T yysize = yyssp - yyss + 1;
2365
2366 #ifdef yyoverflow
2367 {
2368 /* Give user a chance to reallocate the stack. Use copies of
2369 these so that the &'s don't force the real ones into
2370 memory. */
2371 YYSTYPE *yyvs1 = yyvs;
2372 yytype_int16 *yyss1 = yyss;
2373 YYLTYPE *yyls1 = yyls;
2374
2375 /* Each stack pointer address is followed by the size of the
2376 data in use in that stack, in bytes. This used to be a
2377 conditional around just the two extra args, but that might
2378 be undefined if yyoverflow is a macro. */
2379 yyoverflow (YY_("memory exhausted"),
2380 &yyss1, yysize * sizeof (*yyssp),
2381 &yyvs1, yysize * sizeof (*yyvsp),
2382 &yyls1, yysize * sizeof (*yylsp),
2383 &yystacksize);
2384 yyls = yyls1;
2385 yyss = yyss1;
2386 yyvs = yyvs1;
2387 }
2388 #else /* no yyoverflow */
2389 # ifndef YYSTACK_RELOCATE
2390 goto yyexhaustedlab;
2391 # else
2392 /* Extend the stack our own way. */
2393 if (YYMAXDEPTH <= yystacksize)
2394 goto yyexhaustedlab;
2395 yystacksize *= 2;
2396 if (YYMAXDEPTH < yystacksize)
2397 yystacksize = YYMAXDEPTH;
2398
2399 {
2400 yytype_int16 *yyss1 = yyss;
2401 union yyalloc *yyptr =
2402 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
2403 if (! yyptr)
2404 goto yyexhaustedlab;
2405 YYSTACK_RELOCATE (yyss);
2406 YYSTACK_RELOCATE (yyvs);
2407 YYSTACK_RELOCATE (yyls);
2408 # undef YYSTACK_RELOCATE
2409 if (yyss1 != yyssa)
2410 YYSTACK_FREE (yyss1);
2411 }
2412 # endif
2413 #endif /* no yyoverflow */
2414
2415 yyssp = yyss + yysize - 1;
2416 yyvsp = yyvs + yysize - 1;
2417 yylsp = yyls + yysize - 1;
2418
2419 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
2420 (unsigned long int) yystacksize));
2421
2422 if (yyss + yystacksize - 1 <= yyssp)
2423 YYABORT;
2424 }
2425
2426 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
2427
2428 goto yybackup;
2429
2430 /*-----------.
2431 | yybackup. |
2432 `-----------*/
2433 yybackup:
2434
2435 /* Do appropriate processing given the current state. Read a
2436 look-ahead token if we need one and don't already have one. */
2437
2438 /* First try to decide what to do without reference to look-ahead token. */
2439 yyn = yypact[yystate];
2440 if (yyn == YYPACT_NINF)
2441 goto yydefault;
2442
2443 /* Not known => get a look-ahead token if don't already have one. */
2444
2445 /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
2446 if (yychar == YYEMPTY)
2447 {
2448 YYDPRINTF ((stderr, "Reading a token: "));
2449 yychar = YYLEX;
2450 }
2451
2452 if (yychar <= YYEOF)
2453 {
2454 yychar = yytoken = YYEOF;
2455 YYDPRINTF ((stderr, "Now at end of input.\n"));
2456 }
2457 else
2458 {
2459 yytoken = YYTRANSLATE (yychar);
2460 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
2461 }
2462
2463 /* If the proper action on seeing token YYTOKEN is to reduce or to
2464 detect an error, take that action. */
2465 yyn += yytoken;
2466 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
2467 goto yydefault;
2468 yyn = yytable[yyn];
2469 if (yyn <= 0)
2470 {
2471 if (yyn == 0 || yyn == YYTABLE_NINF)
2472 goto yyerrlab;
2473 yyn = -yyn;
2474 goto yyreduce;
2475 }
2476
2477 if (yyn == YYFINAL)
2478 YYACCEPT;
2479
2480 /* Count tokens shifted since error; after three, turn off error
2481 status. */
2482 if (yyerrstatus)
2483 yyerrstatus--;
2484
2485 /* Shift the look-ahead token. */
2486 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
2487
2488 /* Discard the shifted token unless it is eof. */
2489 if (yychar != YYEOF)
2490 yychar = YYEMPTY;
2491
2492 yystate = yyn;
2493 *++yyvsp = yylval;
2494 *++yylsp = yylloc;
2495 goto yynewstate;
2496
2497
2498 /*-----------------------------------------------------------.
2499 | yydefault -- do the default action for the current state. |
2500 `-----------------------------------------------------------*/
2501 yydefault:
2502 yyn = yydefact[yystate];
2503 if (yyn == 0)
2504 goto yyerrlab;
2505 goto yyreduce;
2506
2507
2508 /*-----------------------------.
2509 | yyreduce -- Do a reduction. |
2510 `-----------------------------*/
2511 yyreduce:
2512 /* yyn is the number of a rule to reduce with. */
2513 yylen = yyr2[yyn];
2514
2515 /* If YYLEN is nonzero, implement the default value of the action:
2516 `$$ = $1'.
2517
2518 Otherwise, the following line sets YYVAL to garbage.
2519 This behavior is undocumented and Bison
2520 users should not rely upon it. Assigning to YYVAL
2521 unconditionally makes the parser a bit smaller, and it avoids a
2522 GCC warning that YYVAL may be used uninitialized. */
2523 yyval = yyvsp[1-yylen];
2524
2525 /* Default location. */
2526 YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
2527 YY_REDUCE_PRINT (yyn);
2528 switch (yyn)
2529 {
2530 case 2:
2531 #line 216 "chuck.y"
2532 { (yyval.program) = g_program = new_program( (yyvsp[(1) - (1)].program_section), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2533 break;
2534
2535 case 3:
2536 #line 217 "chuck.y"
2537 { (yyval.program) = g_program = append_program( (yyvsp[(1) - (2)].program), (yyvsp[(2) - (2)].program_section), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2538 break;
2539
2540 case 4:
2541 #line 221 "chuck.y"
2542 { (yyval.program_section) = new_section_stmt( (yyvsp[(1) - (1)].stmt_list), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2543 break;
2544
2545 case 5:
2546 #line 222 "chuck.y"
2547 { (yyval.program_section) = new_section_func_def( (yyvsp[(1) - (1)].func_def), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2548 break;
2549
2550 case 6:
2551 #line 223 "chuck.y"
2552 { (yyval.program_section) = new_section_class_def( (yyvsp[(1) - (1)].class_def), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2553 break;
2554
2555 case 7:
2556 #line 228 "chuck.y"
2557 { (yyval.class_def) = new_class_def( (yyvsp[(1) - (6)].ival), (yyvsp[(3) - (6)].id_list), NULL, (yyvsp[(5) - (6)].class_body), (yylsp[(1) - (6)]).first_line, (yylsp[(1) - (6)]).first_column ); ;}
2558 break;
2559
2560 case 8:
2561 #line 230 "chuck.y"
2562 { (yyval.class_def) = new_class_def( (yyvsp[(1) - (7)].ival), (yyvsp[(3) - (7)].id_list), (yyvsp[(4) - (7)].class_ext), (yyvsp[(6) - (7)].class_body), (yylsp[(1) - (7)]).first_line, (yylsp[(1) - (7)]).first_column ); ;}
2563 break;
2564
2565 case 9:
2566 #line 232 "chuck.y"
2567 { (yyval.class_def) = new_iface_def( (yyvsp[(1) - (6)].ival), (yyvsp[(3) - (6)].id_list), NULL, (yyvsp[(5) - (6)].class_body), (yylsp[(1) - (6)]).first_line, (yylsp[(1) - (6)]).first_column ); ;}
2568 break;
2569
2570 case 10:
2571 #line 234 "chuck.y"
2572 { (yyval.class_def) = new_iface_def( (yyvsp[(1) - (7)].ival), (yyvsp[(3) - (7)].id_list), (yyvsp[(4) - (7)].class_ext), (yyvsp[(6) - (7)].class_body), (yylsp[(1) - (7)]).first_line, (yylsp[(1) - (7)]).first_column ); ;}
2573 break;
2574
2575 case 11:
2576 #line 238 "chuck.y"
2577 { (yyval.class_ext) = new_class_ext( NULL, (yyvsp[(2) - (2)].id_list), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2578 break;
2579
2580 case 12:
2581 #line 239 "chuck.y"
2582 { (yyval.class_ext) = new_class_ext( (yyvsp[(4) - (4)].id_list), (yyvsp[(2) - (4)].id_list), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
2583 break;
2584
2585 case 13:
2586 #line 240 "chuck.y"
2587 { (yyval.class_ext) = new_class_ext( (yyvsp[(2) - (2)].id_list), NULL, (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2588 break;
2589
2590 case 14:
2591 #line 241 "chuck.y"
2592 { (yyval.class_ext) = new_class_ext( (yyvsp[(2) - (4)].id_list), (yyvsp[(4) - (4)].id_list), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
2593 break;
2594
2595 case 15:
2596 #line 245 "chuck.y"
2597 { (yyval.class_body) = (yyvsp[(1) - (1)].class_body); ;}
2598 break;
2599
2600 case 16:
2601 #line 246 "chuck.y"
2602 { (yyval.class_body) = NULL; ;}
2603 break;
2604
2605 case 17:
2606 #line 250 "chuck.y"
2607 { (yyval.class_body) = new_class_body( (yyvsp[(1) - (1)].program_section), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2608 break;
2609
2610 case 18:
2611 #line 251 "chuck.y"
2612 { (yyval.class_body) = prepend_class_body( (yyvsp[(1) - (2)].program_section), (yyvsp[(2) - (2)].class_body), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2613 break;
2614
2615 case 19:
2616 #line 256 "chuck.y"
2617 { (yyval.program_section) = new_section_stmt( (yyvsp[(1) - (1)].stmt_list), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2618 break;
2619
2620 case 20:
2621 #line 257 "chuck.y"
2622 { (yyval.program_section) = new_section_func_def( (yyvsp[(1) - (1)].func_def), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2623 break;
2624
2625 case 21:
2626 #line 258 "chuck.y"
2627 { (yyval.program_section) = new_section_class_def( (yyvsp[(1) - (1)].class_def), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2628 break;
2629
2630 case 22:
2631 #line 262 "chuck.y"
2632 { (yyval.class_ext) = new_class_ext( NULL, (yyvsp[(2) - (2)].id_list), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2633 break;
2634
2635 case 23:
2636 #line 266 "chuck.y"
2637 { (yyval.id_list) = new_id_list( (yyvsp[(1) - (1)].sval), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column /*, &@1 */ ); ;}
2638 break;
2639
2640 case 24:
2641 #line 267 "chuck.y"
2642 { (yyval.id_list) = prepend_id_list( (yyvsp[(1) - (3)].sval), (yyvsp[(3) - (3)].id_list), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column /*, &@1 */ ); ;}
2643 break;
2644
2645 case 25:
2646 #line 271 "chuck.y"
2647 { (yyval.id_list) = new_id_list( (yyvsp[(1) - (1)].sval), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column /*, &@1*/ ); ;}
2648 break;
2649
2650 case 26:
2651 #line 272 "chuck.y"
2652 { (yyval.id_list) = prepend_id_list( (yyvsp[(1) - (3)].sval), (yyvsp[(3) - (3)].id_list), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column /*, &@1*/ ); ;}
2653 break;
2654
2655 case 27:
2656 #line 277 "chuck.y"
2657 { (yyval.func_def) = new_func_def( (yyvsp[(1) - (8)].ival), (yyvsp[(2) - (8)].ival), (yyvsp[(3) - (8)].type_decl), (yyvsp[(4) - (8)].sval), (yyvsp[(6) - (8)].arg_list), (yyvsp[(8) - (8)].stmt), TRUE, (yylsp[(1) - (8)]).first_line, (yylsp[(1) - (8)]).first_column ); ;}
2658 break;
2659
2660 case 28:
2661 #line 279 "chuck.y"
2662 { (yyval.func_def) = new_func_def( (yyvsp[(1) - (7)].ival), (yyvsp[(2) - (7)].ival), (yyvsp[(3) - (7)].type_decl), (yyvsp[(4) - (7)].sval), NULL, (yyvsp[(7) - (7)].stmt), TRUE, (yylsp[(1) - (7)]).first_line, (yylsp[(1) - (7)]).first_column ); ;}
2663 break;
2664
2665 case 29:
2666 #line 281 "chuck.y"
2667 { (yyval.func_def) = new_func_def( (yyvsp[(1) - (7)].ival), (yyvsp[(2) - (7)].ival), NULL, (yyvsp[(3) - (7)].sval), (yyvsp[(5) - (7)].arg_list), (yyvsp[(7) - (7)].stmt), TRUE, (yylsp[(1) - (7)]).first_line, (yylsp[(1) - (7)]).first_column ); ;}
2668 break;
2669
2670 case 30:
2671 #line 283 "chuck.y"
2672 { (yyval.func_def) = new_func_def( (yyvsp[(1) - (6)].ival), (yyvsp[(2) - (6)].ival), NULL, (yyvsp[(3) - (6)].sval), NULL, (yyvsp[(6) - (6)].stmt), TRUE, (yylsp[(1) - (6)]).first_line, (yylsp[(1) - (6)]).first_column ); ;}
2673 break;
2674
2675 case 31:
2676 #line 285 "chuck.y"
2677 { (yyval.func_def) = new_func_def( (yyvsp[(1) - (6)].ival), ae_key_instance, NULL, "@construct", (yyvsp[(4) - (6)].arg_list), (yyvsp[(6) - (6)].stmt), TRUE, (yylsp[(1) - (6)]).first_line, (yylsp[(1) - (6)]).first_column ); ;}
2678 break;
2679
2680 case 32:
2681 #line 287 "chuck.y"
2682 { (yyval.func_def) = new_func_def( (yyvsp[(1) - (5)].ival), ae_key_instance, NULL, "@construct", NULL, (yyvsp[(5) - (5)].stmt), TRUE, (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
2683 break;
2684
2685 case 33:
2686 #line 289 "chuck.y"
2687 { (yyval.func_def) = new_func_def( (yyvsp[(1) - (5)].ival), ae_key_instance, NULL, "@destruct", NULL, (yyvsp[(5) - (5)].stmt), TRUE, (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
2688 break;
2689
2690 case 34:
2691 #line 291 "chuck.y"
2692 { (yyval.func_def) = new_func_def( (yyvsp[(1) - (6)].ival), ae_key_instance, NULL, "@destruct", (yyvsp[(4) - (6)].arg_list), (yyvsp[(6) - (6)].stmt), TRUE, (yylsp[(1) - (6)]).first_line, (yylsp[(1) - (6)]).first_column ); ;}
2693 break;
2694
2695 case 35:
2696 #line 293 "chuck.y"
2697 { (yyval.func_def) = new_func_def( (yyvsp[(1) - (8)].ival), (yyvsp[(2) - (8)].ival), (yyvsp[(3) - (8)].type_decl), (yyvsp[(4) - (8)].sval), (yyvsp[(6) - (8)].arg_list), NULL, TRUE, (yylsp[(1) - (8)]).first_line, (yylsp[(1) - (8)]).first_column ); ;}
2698 break;
2699
2700 case 36:
2701 #line 295 "chuck.y"
2702 { (yyval.func_def) = new_func_def( (yyvsp[(1) - (7)].ival), (yyvsp[(2) - (7)].ival), (yyvsp[(3) - (7)].type_decl), (yyvsp[(4) - (7)].sval), NULL, NULL, TRUE, (yylsp[(1) - (7)]).first_line, (yylsp[(1) - (7)]).first_column ); ;}
2703 break;
2704
2705 case 37:
2706 #line 297 "chuck.y"
2707 { (yyval.func_def) = new_op_overload( (yyvsp[(1) - (9)].ival), (yyvsp[(2) - (9)].ival), (yyvsp[(3) - (9)].type_decl), (yyvsp[(5) - (9)].ival), (yyvsp[(7) - (9)].arg_list), (yyvsp[(9) - (9)].stmt), TRUE, FALSE, (yylsp[(1) - (9)]).first_line, (yylsp[(1) - (9)]).first_column, (yylsp[(5) - (9)]).first_column ); ;}
2708 break;
2709
2710 case 38:
2711 #line 299 "chuck.y"
2712 { (yyval.func_def) = new_op_overload( (yyvsp[(1) - (9)].ival), (yyvsp[(2) - (9)].ival), (yyvsp[(3) - (9)].type_decl), (yyvsp[(8) - (9)].ival), (yyvsp[(6) - (9)].arg_list), (yyvsp[(9) - (9)].stmt), TRUE, TRUE, (yylsp[(1) - (9)]).first_line, (yylsp[(1) - (9)]).first_column, (yylsp[(8) - (9)]).first_column ); ;}
2713 break;
2714
2715 case 39:
2716 #line 301 "chuck.y"
2717 { (yyval.func_def) = new_op_overload( (yyvsp[(1) - (11)].ival), (yyvsp[(2) - (11)].ival), (yyvsp[(3) - (11)].type_decl), (yyvsp[(6) - (11)].ival), (yyvsp[(9) - (11)].arg_list), (yyvsp[(11) - (11)].stmt), TRUE, FALSE, (yylsp[(1) - (11)]).first_line, (yylsp[(1) - (11)]).first_column, (yylsp[(5) - (11)]).first_column ); ;}
2718 break;
2719
2720 case 40:
2721 #line 303 "chuck.y"
2722 { (yyval.func_def) = new_op_overload( (yyvsp[(1) - (11)].ival), (yyvsp[(2) - (11)].ival), (yyvsp[(3) - (11)].type_decl), (yyvsp[(9) - (11)].ival), (yyvsp[(6) - (11)].arg_list), (yyvsp[(11) - (11)].stmt), TRUE, TRUE, (yylsp[(1) - (11)]).first_line, (yylsp[(1) - (11)]).first_column, (yylsp[(8) - (11)]).first_column ); ;}
2723 break;
2724
2725 case 41:
2726 #line 307 "chuck.y"
2727 { (yyval.ival) = ae_key_public; ;}
2728 break;
2729
2730 case 42:
2731 #line 308 "chuck.y"
2732 { (yyval.ival) = ae_key_private; ;}
2733 break;
2734
2735 case 43:
2736 #line 309 "chuck.y"
2737 { (yyval.ival) = ae_key_private; ;}
2738 break;
2739
2740 case 44:
2741 #line 313 "chuck.y"
2742 { (yyval.ival) = ae_key_func; ;}
2743 break;
2744
2745 case 45:
2746 #line 314 "chuck.y"
2747 { (yyval.ival) = ae_key_public; ;}
2748 break;
2749
2750 case 46:
2751 #line 315 "chuck.y"
2752 { (yyval.ival) = ae_key_protected; ;}
2753 break;
2754
2755 case 47:
2756 #line 316 "chuck.y"
2757 { (yyval.ival) = ae_key_private; ;}
2758 break;
2759
2760 case 48:
2761 #line 320 "chuck.y"
2762 { (yyval.ival) = ae_key_static; ;}
2763 break;
2764
2765 case 49:
2766 #line 321 "chuck.y"
2767 { (yyval.ival) = ae_key_abstract; ;}
2768 break;
2769
2770 case 50:
2771 #line 322 "chuck.y"
2772 { (yyval.ival) = ae_key_instance; ;}
2773 break;
2774
2775 case 51:
2776 #line 326 "chuck.y"
2777 { (yyval.type_decl) = new_type_decl( new_id_list( (yyvsp[(1) - (1)].sval), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column /*, &@1*/ ), 0, (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2778 break;
2779
2780 case 52:
2781 #line 327 "chuck.y"
2782 { (yyval.type_decl) = new_type_decl( new_id_list( (yyvsp[(1) - (2)].sval), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column /*, &@1*/ ), 1, (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2783 break;
2784
2785 case 53:
2786 #line 331 "chuck.y"
2787 { (yyval.type_decl) = new_type_decl( (yyvsp[(2) - (3)].id_list), 0, (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
2788 break;
2789
2790 case 54:
2791 #line 332 "chuck.y"
2792 { (yyval.type_decl) = new_type_decl( (yyvsp[(2) - (4)].id_list), 1, (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
2793 break;
2794
2795 case 55:
2796 #line 341 "chuck.y"
2797 { (yyval.type_decl) = (yyvsp[(1) - (1)].type_decl); ;}
2798 break;
2799
2800 case 56:
2801 #line 342 "chuck.y"
2802 { (yyval.type_decl) = (yyvsp[(1) - (1)].type_decl); ;}
2803 break;
2804
2805 case 57:
2806 #line 347 "chuck.y"
2807 { (yyval.type_decl) = (yyvsp[(1) - (1)].type_decl); ;}
2808 break;
2809
2810 case 58:
2811 #line 348 "chuck.y"
2812 { (yyval.type_decl) = add_type_decl_array( (yyvsp[(1) - (2)].type_decl), (yyvsp[(2) - (2)].array_sub), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2813 break;
2814
2815 case 59:
2816 #line 352 "chuck.y"
2817 { (yyval.arg_list) = new_arg_list( (yyvsp[(1) - (2)].type_decl), (yyvsp[(2) - (2)].var_decl), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2818 break;
2819
2820 case 60:
2821 #line 353 "chuck.y"
2822 { (yyval.arg_list) = prepend_arg_list( (yyvsp[(1) - (4)].type_decl), (yyvsp[(2) - (4)].var_decl), (yyvsp[(4) - (4)].arg_list), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
2823 break;
2824
2825 case 61:
2826 #line 357 "chuck.y"
2827 { (yyval.stmt_list) = new_stmt_list( (yyvsp[(1) - (1)].stmt), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2828 break;
2829
2830 case 62:
2831 #line 358 "chuck.y"
2832 { (yyval.stmt_list) = append_stmt_list( (yyvsp[(1) - (2)].stmt_list), (yyvsp[(2) - (2)].stmt), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2833 break;
2834
2835 case 63:
2836 #line 362 "chuck.y"
2837 { (yyval.stmt) = (yyvsp[(1) - (1)].stmt); ;}
2838 break;
2839
2840 case 64:
2841 #line 363 "chuck.y"
2842 { (yyval.stmt) = (yyvsp[(1) - (1)].stmt); ;}
2843 break;
2844
2845 case 65:
2846 #line 364 "chuck.y"
2847 { (yyval.stmt) = (yyvsp[(1) - (1)].stmt); ;}
2848 break;
2849
2850 case 66:
2851 #line 365 "chuck.y"
2852 { (yyval.stmt) = (yyvsp[(1) - (1)].stmt); ;}
2853 break;
2854
2855 case 67:
2856 #line 367 "chuck.y"
2857 { (yyval.stmt) = (yyvsp[(1) - (1)].stmt); ;}
2858 break;
2859
2860 case 68:
2861 #line 368 "chuck.y"
2862 { (yyval.stmt) = (yyvsp[(1) - (1)].stmt); ;}
2863 break;
2864
2865 case 69:
2866 #line 369 "chuck.y"
2867 { (yyval.stmt) = (yyvsp[(1) - (1)].stmt); ;}
2868 break;
2869
2870 case 70:
2871 #line 373 "chuck.y"
2872 { (yyval.stmt) = new_stmt_from_return( NULL, (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2873 break;
2874
2875 case 71:
2876 #line 374 "chuck.y"
2877 { (yyval.stmt) = new_stmt_from_return( (yyvsp[(2) - (3)].exp), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
2878 break;
2879
2880 case 72:
2881 #line 375 "chuck.y"
2882 { (yyval.stmt) = new_stmt_from_break( (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2883 break;
2884
2885 case 73:
2886 #line 376 "chuck.y"
2887 { (yyval.stmt) = new_stmt_from_continue( (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2888 break;
2889
2890 case 74:
2891 #line 381 "chuck.y"
2892 { (yyval.stmt) = new_stmt_from_if( (yyvsp[(3) - (5)].exp), (yyvsp[(5) - (5)].stmt), NULL, (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
2893 break;
2894
2895 case 75:
2896 #line 383 "chuck.y"
2897 { (yyval.stmt) = new_stmt_from_if( (yyvsp[(3) - (7)].exp), (yyvsp[(5) - (7)].stmt), (yyvsp[(7) - (7)].stmt), (yylsp[(1) - (7)]).first_line, (yylsp[(1) - (7)]).first_column ); ;}
2898 break;
2899
2900 case 76:
2901 #line 388 "chuck.y"
2902 { (yyval.stmt) = new_stmt_from_while( (yyvsp[(3) - (5)].exp), (yyvsp[(5) - (5)].stmt), (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
2903 break;
2904
2905 case 77:
2906 #line 390 "chuck.y"
2907 { (yyval.stmt) = new_stmt_from_do_while( (yyvsp[(5) - (7)].exp), (yyvsp[(2) - (7)].stmt), (yylsp[(1) - (7)]).first_line, (yylsp[(1) - (7)]).first_column ); ;}
2908 break;
2909
2910 case 78:
2911 #line 392 "chuck.y"
2912 { (yyval.stmt) = new_stmt_from_for( (yyvsp[(3) - (6)].stmt), (yyvsp[(4) - (6)].stmt), NULL, (yyvsp[(6) - (6)].stmt), (yylsp[(1) - (6)]).first_line, (yylsp[(1) - (6)]).first_column ); ;}
2913 break;
2914
2915 case 79:
2916 #line 394 "chuck.y"
2917 { (yyval.stmt) = new_stmt_from_for( (yyvsp[(3) - (7)].stmt), (yyvsp[(4) - (7)].stmt), (yyvsp[(5) - (7)].exp), (yyvsp[(7) - (7)].stmt), (yylsp[(1) - (7)]).first_line, (yylsp[(1) - (7)]).first_column ); ;}
2918 break;
2919
2920 case 80:
2921 #line 396 "chuck.y"
2922 { (yyval.stmt) = new_stmt_from_foreach( (yyvsp[(3) - (7)].exp), (yyvsp[(5) - (7)].exp), (yyvsp[(7) - (7)].stmt), (yylsp[(1) - (7)]).first_line, (yylsp[(1) - (7)]).first_column ); ;}
2923 break;
2924
2925 case 81:
2926 #line 398 "chuck.y"
2927 { (yyval.stmt) = new_stmt_from_until( (yyvsp[(3) - (5)].exp), (yyvsp[(5) - (5)].stmt), (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
2928 break;
2929
2930 case 82:
2931 #line 400 "chuck.y"
2932 { (yyval.stmt) = new_stmt_from_do_until( (yyvsp[(5) - (7)].exp), (yyvsp[(2) - (7)].stmt), (yylsp[(1) - (7)]).first_line, (yylsp[(1) - (7)]).first_column ); ;}
2933 break;
2934
2935 case 83:
2936 #line 402 "chuck.y"
2937 { (yyval.stmt) = new_stmt_from_loop( (yyvsp[(3) - (5)].exp), (yyvsp[(5) - (5)].stmt), (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
2938 break;
2939
2940 case 84:
2941 #line 406 "chuck.y"
2942 { (yyval.stmt) = new_stmt_from_code( NULL, (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2943 break;
2944
2945 case 85:
2946 #line 407 "chuck.y"
2947 { (yyval.stmt) = new_stmt_from_code( (yyvsp[(2) - (3)].stmt_list), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
2948 break;
2949
2950 case 86:
2951 #line 411 "chuck.y"
2952 { (yyval.stmt) = new_stmt_from_import( (yyvsp[(2) - (2)].import), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2953 break;
2954
2955 case 87:
2956 #line 412 "chuck.y"
2957 { (yyval.stmt) = new_stmt_from_import( NULL, (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
2958 break;
2959
2960 case 88:
2961 #line 413 "chuck.y"
2962 { (yyval.stmt) = new_stmt_from_import( NULL, (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
2963 break;
2964
2965 case 89:
2966 #line 414 "chuck.y"
2967 { (yyval.stmt) = new_stmt_from_import( (yyvsp[(3) - (4)].import), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
2968 break;
2969
2970 case 90:
2971 #line 415 "chuck.y"
2972 { (yyval.stmt) = new_stmt_from_import( (yyvsp[(3) - (4)].import), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
2973 break;
2974
2975 case 91:
2976 #line 419 "chuck.y"
2977 { (yyval.import) = (yyvsp[(1) - (1)].import); ;}
2978 break;
2979
2980 case 92:
2981 #line 420 "chuck.y"
2982 { (yyval.import) = prepend_import( (yyvsp[(1) - (3)].import), (yyvsp[(3) - (3)].import), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
2983 break;
2984
2985 case 93:
2986 #line 424 "chuck.y"
2987 { (yyval.import) = new_import( (yyvsp[(1) - (1)].sval), NULL, (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
2988 break;
2989
2990 case 94:
2991 #line 429 "chuck.y"
2992 { (yyval.stmt) = new_stmt_from_doc( (yyvsp[(2) - (2)].doc), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
2993 break;
2994
2995 case 95:
2996 #line 430 "chuck.y"
2997 { (yyval.stmt) = new_stmt_from_doc( (yyvsp[(3) - (4)].doc), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
2998 break;
2999
3000 case 96:
3001 #line 431 "chuck.y"
3002 { (yyval.stmt) = new_stmt_from_doc( (yyvsp[(3) - (4)].doc), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
3003 break;
3004
3005 case 97:
3006 #line 435 "chuck.y"
3007 { (yyval.doc) = (yyvsp[(1) - (1)].doc); ;}
3008 break;
3009
3010 case 98:
3011 #line 436 "chuck.y"
3012 { (yyval.doc) = prepend_doc( (yyvsp[(1) - (3)].doc), (yyvsp[(3) - (3)].doc), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3013 break;
3014
3015 case 99:
3016 #line 440 "chuck.y"
3017 { (yyval.doc) = new_doc( (yyvsp[(1) - (1)].sval), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3018 break;
3019
3020 case 100:
3021 #line 444 "chuck.y"
3022 { (yyval.stmt) = NULL; ;}
3023 break;
3024
3025 case 101:
3026 #line 445 "chuck.y"
3027 { (yyval.stmt) = new_stmt_from_expression( (yyvsp[(1) - (2)].exp), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3028 break;
3029
3030 case 102:
3031 #line 449 "chuck.y"
3032 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3033 break;
3034
3035 case 103:
3036 #line 450 "chuck.y"
3037 { (yyval.exp) = append_expression( (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3038 break;
3039
3040 case 104:
3041 #line 454 "chuck.y"
3042 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3043 break;
3044
3045 case 105:
3046 #line 456 "chuck.y"
3047 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), (yyvsp[(2) - (3)].ival), (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3048 break;
3049
3050 case 106:
3051 #line 460 "chuck.y"
3052 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3053 break;
3054
3055 case 107:
3056 #line 462 "chuck.y"
3057 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), (yyvsp[(2) - (3)].ival), (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3058 break;
3059
3060 case 108:
3061 #line 466 "chuck.y"
3062 { (yyval.array_sub) = new_array_sub( (yyvsp[(2) - (3)].exp), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3063 break;
3064
3065 case 109:
3066 #line 467 "chuck.y"
3067 { (yyval.array_sub) = new_array_sub( (yyvsp[(2) - (4)].exp), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
3068 break;
3069
3070 case 110:
3071 #line 469 "chuck.y"
3072 { (yyval.array_sub) = prepend_array_sub( (yyvsp[(4) - (4)].array_sub), (yyvsp[(2) - (4)].exp), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
3073 break;
3074
3075 case 111:
3076 #line 471 "chuck.y"
3077 { (yyval.array_sub) = prepend_array_sub( (yyvsp[(5) - (5)].array_sub), (yyvsp[(2) - (5)].exp), (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
3078 break;
3079
3080 case 112:
3081 #line 475 "chuck.y"
3082 { (yyval.array_sub) = new_array_sub( NULL, (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3083 break;
3084
3085 case 113:
3086 #line 476 "chuck.y"
3087 { (yyval.array_sub) = prepend_array_sub( (yyvsp[(1) - (3)].array_sub), NULL, (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3088 break;
3089
3090 case 114:
3091 #line 480 "chuck.y"
3092 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3093 break;
3094
3095 case 115:
3096 #line 481 "chuck.y"
3097 { (yyval.exp) = new_exp_decl( (yyvsp[(1) - (2)].type_decl), (yyvsp[(2) - (2)].var_decl_list), 0, 0, (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3098 break;
3099
3100 case 116:
3101 #line 482 "chuck.y"
3102 { (yyval.exp) = new_exp_decl_external( (yyvsp[(2) - (3)].type_decl), (yyvsp[(3) - (3)].var_decl_list), 0, 0, (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3103 break;
3104
3105 case 117:
3106 #line 483 "chuck.y"
3107 { (yyval.exp) = new_exp_decl_global( (yyvsp[(2) - (3)].type_decl), (yyvsp[(3) - (3)].var_decl_list), 0, 0, (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3108 break;
3109
3110 case 118:
3111 #line 484 "chuck.y"
3112 { (yyval.exp) = new_exp_decl( (yyvsp[(2) - (3)].type_decl), (yyvsp[(3) - (3)].var_decl_list), 1, 0, (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3113 break;
3114
3115 case 119:
3116 #line 485 "chuck.y"
3117 { (yyval.exp) = new_exp_decl( NULL, (yyvsp[(2) - (2)].var_decl_list), 0, 0, (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3118 break;
3119
3120 case 120:
3121 #line 486 "chuck.y"
3122 { (yyval.exp) = new_exp_decl( NULL, (yyvsp[(3) - (3)].var_decl_list), 1, 0, (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3123 break;
3124
3125 case 121:
3126 #line 490 "chuck.y"
3127 { (yyval.var_decl_list) = new_var_decl_list( (yyvsp[(1) - (1)].var_decl), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3128 break;
3129
3130 case 122:
3131 #line 491 "chuck.y"
3132 { (yyval.var_decl_list) = prepend_var_decl_list( (yyvsp[(1) - (3)].var_decl), (yyvsp[(3) - (3)].var_decl_list), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3133 break;
3134
3135 case 123:
3136 #line 495 "chuck.y"
3137 { (yyval.var_decl) = new_var_decl( (yyvsp[(1) - (1)].sval), FALSE, NULL, NULL, (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3138 break;
3139
3140 case 124:
3141 #line 496 "chuck.y"
3142 { (yyval.var_decl) = new_var_decl( (yyvsp[(1) - (2)].sval), FALSE, NULL, (yyvsp[(2) - (2)].array_sub), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3143 break;
3144
3145 case 125:
3146 #line 497 "chuck.y"
3147 { (yyval.var_decl) = new_var_decl( (yyvsp[(1) - (2)].sval), FALSE, NULL, (yyvsp[(2) - (2)].array_sub), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3148 break;
3149
3150 case 126:
3151 #line 498 "chuck.y"
3152 { (yyval.var_decl) = new_var_decl( (yyvsp[(1) - (3)].sval), TRUE, NULL, NULL, (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3153 break;
3154
3155 case 127:
3156 #line 499 "chuck.y"
3157 { (yyval.var_decl) = new_var_decl( (yyvsp[(1) - (4)].sval), TRUE, (yyvsp[(3) - (4)].exp), NULL, (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
3158 break;
3159
3160 case 128:
3161 #line 500 "chuck.y"
3162 { (yyval.var_decl) = new_var_decl( (yyvsp[(1) - (4)].sval), TRUE, NULL, (yyvsp[(4) - (4)].array_sub), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
3163 break;
3164
3165 case 129:
3166 #line 501 "chuck.y"
3167 { (yyval.var_decl) = new_var_decl( (yyvsp[(1) - (5)].sval), TRUE, (yyvsp[(3) - (5)].exp), (yyvsp[(5) - (5)].array_sub), (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
3168 break;
3169
3170 case 130:
3171 #line 506 "chuck.y"
3172 { (yyval.complex_exp) = new_complex( (yyvsp[(2) - (3)].exp), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3173 break;
3174
3175 case 131:
3176 #line 511 "chuck.y"
3177 { (yyval.polar_exp) = new_polar( (yyvsp[(2) - (3)].exp), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3178 break;
3179
3180 case 132:
3181 #line 516 "chuck.y"
3182 { (yyval.vec_exp) = new_vec( (yyvsp[(2) - (3)].exp), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3183 break;
3184
3185 case 133:
3186 #line 520 "chuck.y"
3187 { (yyval.ival) = ae_op_chuck; ;}
3188 break;
3189
3190 case 134:
3191 #line 521 "chuck.y"
3192 { (yyval.ival) = ae_op_at_chuck; ;}
3193 break;
3194
3195 case 135:
3196 #line 522 "chuck.y"
3197 { (yyval.ival) = ae_op_plus_chuck; ;}
3198 break;
3199
3200 case 136:
3201 #line 523 "chuck.y"
3202 { (yyval.ival) = ae_op_minus_chuck; ;}
3203 break;
3204
3205 case 137:
3206 #line 524 "chuck.y"
3207 { (yyval.ival) = ae_op_times_chuck; ;}
3208 break;
3209
3210 case 138:
3211 #line 525 "chuck.y"
3212 { (yyval.ival) = ae_op_divide_chuck; ;}
3213 break;
3214
3215 case 139:
3216 #line 526 "chuck.y"
3217 { (yyval.ival) = ae_op_shift_right_chuck; ;}
3218 break;
3219
3220 case 140:
3221 #line 527 "chuck.y"
3222 { (yyval.ival) = ae_op_shift_left_chuck; ;}
3223 break;
3224
3225 case 141:
3226 #line 528 "chuck.y"
3227 { (yyval.ival) = ae_op_percent_chuck; ;}
3228 break;
3229
3230 case 142:
3231 #line 529 "chuck.y"
3232 { (yyval.ival) = ae_op_unchuck; ;}
3233 break;
3234
3235 case 143:
3236 #line 530 "chuck.y"
3237 { (yyval.ival) = ae_op_upchuck; ;}
3238 break;
3239
3240 case 144:
3241 #line 531 "chuck.y"
3242 { (yyval.ival) = ae_op_downchuck; ;}
3243 break;
3244
3245 case 145:
3246 #line 532 "chuck.y"
3247 { (yyval.ival) = ae_op_s_and_chuck; ;}
3248 break;
3249
3250 case 146:
3251 #line 533 "chuck.y"
3252 { (yyval.ival) = ae_op_s_or_chuck; ;}
3253 break;
3254
3255 case 147:
3256 #line 534 "chuck.y"
3257 { (yyval.ival) = ae_op_s_xor_chuck; ;}
3258 break;
3259
3260 case 148:
3261 #line 538 "chuck.y"
3262 { (yyval.ival) = ae_op_arrow_left; ;}
3263 break;
3264
3265 case 149:
3266 #line 539 "chuck.y"
3267 { (yyval.ival) = ae_op_arrow_right; ;}
3268 break;
3269
3270 case 150:
3271 #line 540 "chuck.y"
3272 { (yyval.ival) = ae_op_gruck_left; ;}
3273 break;
3274
3275 case 151:
3276 #line 541 "chuck.y"
3277 { (yyval.ival) = ae_op_gruck_right; ;}
3278 break;
3279
3280 case 152:
3281 #line 542 "chuck.y"
3282 { (yyval.ival) = ae_op_ungruck_left; ;}
3283 break;
3284
3285 case 153:
3286 #line 543 "chuck.y"
3287 { (yyval.ival) = ae_op_ungruck_right; ;}
3288 break;
3289
3290 case 154:
3291 #line 547 "chuck.y"
3292 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3293 break;
3294
3295 case 155:
3296 #line 549 "chuck.y"
3297 { (yyval.exp) = new_exp_from_if( (yyvsp[(1) - (5)].exp), (yyvsp[(3) - (5)].exp), (yyvsp[(5) - (5)].exp), (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
3298 break;
3299
3300 case 156:
3301 #line 553 "chuck.y"
3302 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3303 break;
3304
3305 case 157:
3306 #line 555 "chuck.y"
3307 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_or, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3308 break;
3309
3310 case 158:
3311 #line 559 "chuck.y"
3312 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3313 break;
3314
3315 case 159:
3316 #line 561 "chuck.y"
3317 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_and, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3318 break;
3319
3320 case 160:
3321 #line 565 "chuck.y"
3322 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3323 break;
3324
3325 case 161:
3326 #line 567 "chuck.y"
3327 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_s_or, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3328 break;
3329
3330 case 162:
3331 #line 571 "chuck.y"
3332 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3333 break;
3334
3335 case 163:
3336 #line 573 "chuck.y"
3337 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_s_xor, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3338 break;
3339
3340 case 164:
3341 #line 577 "chuck.y"
3342 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3343 break;
3344
3345 case 165:
3346 #line 579 "chuck.y"
3347 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_s_and, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3348 break;
3349
3350 case 166:
3351 #line 583 "chuck.y"
3352 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3353 break;
3354
3355 case 167:
3356 #line 585 "chuck.y"
3357 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_eq, (yyvsp[(3) - (3)].exp), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3358 break;
3359
3360 case 168:
3361 #line 587 "chuck.y"
3362 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_neq, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3363 break;
3364
3365 case 169:
3366 #line 591 "chuck.y"
3367 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3368 break;
3369
3370 case 170:
3371 #line 593 "chuck.y"
3372 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_lt, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3373 break;
3374
3375 case 171:
3376 #line 595 "chuck.y"
3377 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_gt, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3378 break;
3379
3380 case 172:
3381 #line 597 "chuck.y"
3382 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_le, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3383 break;
3384
3385 case 173:
3386 #line 599 "chuck.y"
3387 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_ge, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3388 break;
3389
3390 case 174:
3391 #line 603 "chuck.y"
3392 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3393 break;
3394
3395 case 175:
3396 #line 605 "chuck.y"
3397 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_shift_left, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3398 break;
3399
3400 case 176:
3401 #line 607 "chuck.y"
3402 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_shift_right, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3403 break;
3404
3405 case 177:
3406 #line 611 "chuck.y"
3407 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3408 break;
3409
3410 case 178:
3411 #line 613 "chuck.y"
3412 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_plus, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3413 break;
3414
3415 case 179:
3416 #line 615 "chuck.y"
3417 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_minus, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3418 break;
3419
3420 case 180:
3421 #line 619 "chuck.y"
3422 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3423 break;
3424
3425 case 181:
3426 #line 621 "chuck.y"
3427 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_times, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3428 break;
3429
3430 case 182:
3431 #line 623 "chuck.y"
3432 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_divide, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3433 break;
3434
3435 case 183:
3436 #line 625 "chuck.y"
3437 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_percent, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3438 break;
3439
3440 case 184:
3441 #line 629 "chuck.y"
3442 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3443 break;
3444
3445 case 185:
3446 #line 631 "chuck.y"
3447 { (yyval.exp) = new_exp_from_binary( (yyvsp[(1) - (3)].exp), ae_op_tilda, (yyvsp[(3) - (3)].exp), (yylsp[(2) - (3)]).first_line, (yylsp[(2) - (3)]).first_column ); ;}
3448 break;
3449
3450 case 186:
3451 #line 635 "chuck.y"
3452 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3453 break;
3454
3455 case 187:
3456 #line 637 "chuck.y"
3457 { (yyval.exp) = new_exp_from_cast( (yyvsp[(3) - (3)].type_decl), (yyvsp[(1) - (3)].exp), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column, (yylsp[(2) - (3)]).first_column ); ;}
3458 break;
3459
3460 case 188:
3461 #line 641 "chuck.y"
3462 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3463 break;
3464
3465 case 189:
3466 #line 643 "chuck.y"
3467 { (yyval.exp) = new_exp_from_unary( ae_op_plusplus, (yyvsp[(2) - (2)].exp), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3468 break;
3469
3470 case 190:
3471 #line 645 "chuck.y"
3472 { (yyval.exp) = new_exp_from_unary( ae_op_minusminus, (yyvsp[(2) - (2)].exp), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3473 break;
3474
3475 case 191:
3476 #line 647 "chuck.y"
3477 { (yyval.exp) = new_exp_from_unary( (yyvsp[(1) - (2)].ival), (yyvsp[(2) - (2)].exp), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3478 break;
3479
3480 case 192:
3481 #line 649 "chuck.y"
3482 { (yyval.exp) = new_exp_from_unary( ae_op_typeof, (yyvsp[(2) - (2)].exp), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3483 break;
3484
3485 case 193:
3486 #line 651 "chuck.y"
3487 { (yyval.exp) = new_exp_from_unary( ae_op_sizeof, (yyvsp[(2) - (2)].exp), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3488 break;
3489
3490 case 194:
3491 #line 653 "chuck.y"
3492 { (yyval.exp) = new_exp_from_unary2( ae_op_new, (yyvsp[(2) - (2)].type_decl), FALSE, NULL, NULL, (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3493 break;
3494
3495 case 195:
3496 #line 655 "chuck.y"
3497 { (yyval.exp) = new_exp_from_unary2( ae_op_new, (yyvsp[(2) - (3)].type_decl), FALSE, NULL, (yyvsp[(3) - (3)].array_sub), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3498 break;
3499
3500 case 196:
3501 #line 657 "chuck.y"
3502 { (yyval.exp) = new_exp_from_unary2( ae_op_new, (yyvsp[(2) - (4)].type_decl), TRUE, NULL, NULL, (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
3503 break;
3504
3505 case 197:
3506 #line 659 "chuck.y"
3507 { (yyval.exp) = new_exp_from_unary2( ae_op_new, (yyvsp[(2) - (5)].type_decl), TRUE, (yyvsp[(4) - (5)].exp), NULL, (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
3508 break;
3509
3510 case 198:
3511 #line 661 "chuck.y"
3512 { (yyval.exp) = new_exp_from_unary2( ae_op_new, (yyvsp[(2) - (5)].type_decl), TRUE, NULL, (yyvsp[(5) - (5)].array_sub), (yylsp[(1) - (5)]).first_line, (yylsp[(1) - (5)]).first_column ); ;}
3513 break;
3514
3515 case 199:
3516 #line 663 "chuck.y"
3517 { (yyval.exp) = new_exp_from_unary2( ae_op_new, (yyvsp[(2) - (6)].type_decl), TRUE, (yyvsp[(4) - (6)].exp), (yyvsp[(6) - (6)].array_sub), (yylsp[(1) - (6)]).first_line, (yylsp[(1) - (6)]).first_column ); ;}
3518 break;
3519
3520 case 200:
3521 #line 669 "chuck.y"
3522 { (yyval.ival) = ae_op_plus; ;}
3523 break;
3524
3525 case 201:
3526 #line 670 "chuck.y"
3527 { (yyval.ival) = ae_op_minus; ;}
3528 break;
3529
3530 case 202:
3531 #line 671 "chuck.y"
3532 { (yyval.ival) = ae_op_tilda; ;}
3533 break;
3534
3535 case 203:
3536 #line 672 "chuck.y"
3537 { (yyval.ival) = ae_op_exclamation; ;}
3538 break;
3539
3540 case 204:
3541 #line 673 "chuck.y"
3542 { (yyval.ival) = ae_op_times; ;}
3543 break;
3544
3545 case 205:
3546 #line 674 "chuck.y"
3547 { (yyval.ival) = ae_op_spork; ;}
3548 break;
3549
3550 case 206:
3551 #line 675 "chuck.y"
3552 { (yyval.ival) = ae_op_downchuck; ;}
3553 break;
3554
3555 case 207:
3556 #line 681 "chuck.y"
3557 { (yyval.ival) = ae_op_chuck; ;}
3558 break;
3559
3560 case 208:
3561 #line 682 "chuck.y"
3562 { (yyval.ival) = ae_op_plus; ;}
3563 break;
3564
3565 case 209:
3566 #line 683 "chuck.y"
3567 { (yyval.ival) = ae_op_minus; ;}
3568 break;
3569
3570 case 210:
3571 #line 684 "chuck.y"
3572 { (yyval.ival) = ae_op_times; ;}
3573 break;
3574
3575 case 211:
3576 #line 685 "chuck.y"
3577 { (yyval.ival) = ae_op_divide; ;}
3578 break;
3579
3580 case 212:
3581 #line 686 "chuck.y"
3582 { (yyval.ival) = ae_op_percent; ;}
3583 break;
3584
3585 case 213:
3586 #line 687 "chuck.y"
3587 { (yyval.ival) = ae_op_eq; ;}
3588 break;
3589
3590 case 214:
3591 #line 688 "chuck.y"
3592 { (yyval.ival) = ae_op_neq; ;}
3593 break;
3594
3595 case 215:
3596 #line 689 "chuck.y"
3597 { (yyval.ival) = ae_op_lt; ;}
3598 break;
3599
3600 case 216:
3601 #line 690 "chuck.y"
3602 { (yyval.ival) = ae_op_le; ;}
3603 break;
3604
3605 case 217:
3606 #line 691 "chuck.y"
3607 { (yyval.ival) = ae_op_gt; ;}
3608 break;
3609
3610 case 218:
3611 #line 692 "chuck.y"
3612 { (yyval.ival) = ae_op_ge; ;}
3613 break;
3614
3615 case 219:
3616 #line 693 "chuck.y"
3617 { (yyval.ival) = ae_op_and; ;}
3618 break;
3619
3620 case 220:
3621 #line 694 "chuck.y"
3622 { (yyval.ival) = ae_op_or; ;}
3623 break;
3624
3625 case 221:
3626 #line 695 "chuck.y"
3627 { (yyval.ival) = ae_op_assign; ;}
3628 break;
3629
3630 case 222:
3631 #line 696 "chuck.y"
3632 { (yyval.ival) = ae_op_exclamation; ;}
3633 break;
3634
3635 case 223:
3636 #line 697 "chuck.y"
3637 { (yyval.ival) = ae_op_s_or; ;}
3638 break;
3639
3640 case 224:
3641 #line 698 "chuck.y"
3642 { (yyval.ival) = ae_op_s_and; ;}
3643 break;
3644
3645 case 225:
3646 #line 699 "chuck.y"
3647 { (yyval.ival) = ae_op_s_xor; ;}
3648 break;
3649
3650 case 226:
3651 #line 700 "chuck.y"
3652 { (yyval.ival) = ae_op_plusplus; ;}
3653 break;
3654
3655 case 227:
3656 #line 701 "chuck.y"
3657 { (yyval.ival) = ae_op_minusminus; ;}
3658 break;
3659
3660 case 228:
3661 #line 702 "chuck.y"
3662 { (yyval.ival) = ae_op_dollar; ;}
3663 break;
3664
3665 case 229:
3666 #line 703 "chuck.y"
3667 { (yyval.ival) = ae_op_at_at; ;}
3668 break;
3669
3670 case 230:
3671 #line 704 "chuck.y"
3672 { (yyval.ival) = ae_op_plus_chuck; ;}
3673 break;
3674
3675 case 231:
3676 #line 705 "chuck.y"
3677 { (yyval.ival) = ae_op_minus_chuck; ;}
3678 break;
3679
3680 case 232:
3681 #line 706 "chuck.y"
3682 { (yyval.ival) = ae_op_times_chuck; ;}
3683 break;
3684
3685 case 233:
3686 #line 707 "chuck.y"
3687 { (yyval.ival) = ae_op_divide_chuck; ;}
3688 break;
3689
3690 case 234:
3691 #line 708 "chuck.y"
3692 { (yyval.ival) = ae_op_s_and_chuck; ;}
3693 break;
3694
3695 case 235:
3696 #line 709 "chuck.y"
3697 { (yyval.ival) = ae_op_s_or_chuck; ;}
3698 break;
3699
3700 case 236:
3701 #line 710 "chuck.y"
3702 { (yyval.ival) = ae_op_s_xor_chuck; ;}
3703 break;
3704
3705 case 237:
3706 #line 711 "chuck.y"
3707 { (yyval.ival) = ae_op_shift_right_chuck; ;}
3708 break;
3709
3710 case 238:
3711 #line 712 "chuck.y"
3712 { (yyval.ival) = ae_op_shift_left_chuck; ;}
3713 break;
3714
3715 case 239:
3716 #line 713 "chuck.y"
3717 { (yyval.ival) = ae_op_percent_chuck; ;}
3718 break;
3719
3720 case 240:
3721 #line 714 "chuck.y"
3722 { (yyval.ival) = ae_op_shift_right; ;}
3723 break;
3724
3725 case 241:
3726 #line 715 "chuck.y"
3727 { (yyval.ival) = ae_op_shift_left; ;}
3728 break;
3729
3730 case 242:
3731 #line 716 "chuck.y"
3732 { (yyval.ival) = ae_op_tilda; ;}
3733 break;
3734
3735 case 243:
3736 #line 717 "chuck.y"
3737 { (yyval.ival) = ae_op_coloncolon; ;}
3738 break;
3739
3740 case 244:
3741 #line 718 "chuck.y"
3742 { (yyval.ival) = ae_op_at_chuck; ;}
3743 break;
3744
3745 case 245:
3746 #line 719 "chuck.y"
3747 { (yyval.ival) = ae_op_unchuck; ;}
3748 break;
3749
3750 case 246:
3751 #line 720 "chuck.y"
3752 { (yyval.ival) = ae_op_upchuck; ;}
3753 break;
3754
3755 case 247:
3756 #line 721 "chuck.y"
3757 { (yyval.ival) = ae_op_downchuck; ;}
3758 break;
3759
3760 case 248:
3761 #line 722 "chuck.y"
3762 { (yyval.ival) = ae_op_arrow_right; ;}
3763 break;
3764
3765 case 249:
3766 #line 723 "chuck.y"
3767 { (yyval.ival) = ae_op_arrow_left; ;}
3768 break;
3769
3770 case 250:
3771 #line 724 "chuck.y"
3772 { (yyval.ival) = ae_op_gruck_right; ;}
3773 break;
3774
3775 case 251:
3776 #line 725 "chuck.y"
3777 { (yyval.ival) = ae_op_gruck_left; ;}
3778 break;
3779
3780 case 252:
3781 #line 726 "chuck.y"
3782 { (yyval.ival) = ae_op_ungruck_right; ;}
3783 break;
3784
3785 case 253:
3786 #line 727 "chuck.y"
3787 { (yyval.ival) = ae_op_ungruck_left; ;}
3788 break;
3789
3790 case 255:
3791 #line 733 "chuck.y"
3792 { (yyval.exp) = new_exp_from_dur( (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3793 break;
3794
3795 case 256:
3796 #line 737 "chuck.y"
3797 { (yyval.exp) = (yyvsp[(1) - (1)].exp); ;}
3798 break;
3799
3800 case 257:
3801 #line 739 "chuck.y"
3802 { (yyval.exp) = new_exp_from_array( (yyvsp[(1) - (2)].exp), (yyvsp[(2) - (2)].array_sub), (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3803 break;
3804
3805 case 258:
3806 #line 741 "chuck.y"
3807 { (yyval.exp) = new_exp_from_func_call( (yyvsp[(1) - (3)].exp), NULL, (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3808 break;
3809
3810 case 259:
3811 #line 743 "chuck.y"
3812 { (yyval.exp) = new_exp_from_func_call( (yyvsp[(1) - (4)].exp), (yyvsp[(3) - (4)].exp), (yylsp[(1) - (4)]).first_line, (yylsp[(1) - (4)]).first_column ); ;}
3813 break;
3814
3815 case 260:
3816 #line 745 "chuck.y"
3817 { (yyval.exp) = new_exp_from_member_dot( (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].sval), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column, (yylsp[(3) - (3)]).first_column ); ;}
3818 break;
3819
3820 case 261:
3821 #line 747 "chuck.y"
3822 { (yyval.exp) = new_exp_from_postfix( (yyvsp[(1) - (2)].exp), ae_op_plusplus, (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3823 break;
3824
3825 case 262:
3826 #line 749 "chuck.y"
3827 { (yyval.exp) = new_exp_from_postfix( (yyvsp[(1) - (2)].exp), ae_op_minusminus, (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3828 break;
3829
3830 case 263:
3831 #line 754 "chuck.y"
3832 { (yyval.exp) = new_exp_from_id( (yyvsp[(1) - (1)].sval), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3833 break;
3834
3835 case 264:
3836 #line 755 "chuck.y"
3837 { (yyval.exp) = new_exp_from_int( (yyvsp[(1) - (1)].ival), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3838 break;
3839
3840 case 265:
3841 #line 756 "chuck.y"
3842 { (yyval.exp) = new_exp_from_float( (yyvsp[(1) - (1)].fval), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3843 break;
3844
3845 case 266:
3846 #line 757 "chuck.y"
3847 { (yyval.exp) = new_exp_from_str( (yyvsp[(1) - (1)].sval), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3848 break;
3849
3850 case 267:
3851 #line 758 "chuck.y"
3852 { (yyval.exp) = new_exp_from_char( (yyvsp[(1) - (1)].sval), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3853 break;
3854
3855 case 268:
3856 #line 759 "chuck.y"
3857 { (yyval.exp) = new_exp_from_array_lit( (yyvsp[(1) - (1)].array_sub), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3858 break;
3859
3860 case 269:
3861 #line 760 "chuck.y"
3862 { (yyval.exp) = new_exp_from_complex( (yyvsp[(1) - (1)].complex_exp), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3863 break;
3864
3865 case 270:
3866 #line 761 "chuck.y"
3867 { (yyval.exp) = new_exp_from_polar( (yyvsp[(1) - (1)].polar_exp), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3868 break;
3869
3870 case 271:
3871 #line 762 "chuck.y"
3872 { (yyval.exp) = new_exp_from_vec( (yyvsp[(1) - (1)].vec_exp), (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column ); ;}
3873 break;
3874
3875 case 272:
3876 #line 763 "chuck.y"
3877 { (yyval.exp) = new_exp_from_hack( (yyvsp[(2) - (3)].exp), (yylsp[(1) - (3)]).first_line, (yylsp[(1) - (3)]).first_column ); ;}
3878 break;
3879
3880 case 273:
3881 #line 764 "chuck.y"
3882 { (yyval.exp) = (yyvsp[(2) - (3)].exp); ;}
3883 break;
3884
3885 case 274:
3886 #line 765 "chuck.y"
3887 { (yyval.exp) = new_exp_from_nil( (yylsp[(1) - (2)]).first_line, (yylsp[(1) - (2)]).first_column ); ;}
3888 break;
3889
3890
3891 /* Line 1267 of yacc.c. */
3892 #line 3893 "chuck.tab.c"
3893 default: break;
3894 }
3895 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
3896
3897 YYPOPSTACK (yylen);
3898 yylen = 0;
3899 YY_STACK_PRINT (yyss, yyssp);
3900
3901 *++yyvsp = yyval;
3902 *++yylsp = yyloc;
3903
3904 /* Now `shift' the result of the reduction. Determine what state
3905 that goes to, based on the state we popped back to and the rule
3906 number reduced by. */
3907
3908 yyn = yyr1[yyn];
3909
3910 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
3911 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
3912 yystate = yytable[yystate];
3913 else
3914 yystate = yydefgoto[yyn - YYNTOKENS];
3915
3916 goto yynewstate;
3917
3918
3919 /*------------------------------------.
3920 | yyerrlab -- here on detecting error |
3921 `------------------------------------*/
3922 yyerrlab:
3923 /* If not already recovering from an error, report this error. */
3924 if (!yyerrstatus)
3925 {
3926 ++yynerrs;
3927 #if ! YYERROR_VERBOSE
3928 yyerror (YY_("syntax error"));
3929 #else
3930 {
3931 YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
3932 if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
3933 {
3934 YYSIZE_T yyalloc = 2 * yysize;
3935 if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
3936 yyalloc = YYSTACK_ALLOC_MAXIMUM;
3937 if (yymsg != yymsgbuf)
3938 YYSTACK_FREE (yymsg);
3939 yymsg = (char *) YYSTACK_ALLOC (yyalloc);
3940 if (yymsg)
3941 yymsg_alloc = yyalloc;
3942 else
3943 {
3944 yymsg = yymsgbuf;
3945 yymsg_alloc = sizeof yymsgbuf;
3946 }
3947 }
3948
3949 if (0 < yysize && yysize <= yymsg_alloc)
3950 {
3951 (void) yysyntax_error (yymsg, yystate, yychar);
3952 yyerror (yymsg);
3953 }
3954 else
3955 {
3956 yyerror (YY_("syntax error"));
3957 if (yysize != 0)
3958 goto yyexhaustedlab;
3959 }
3960 }
3961 #endif
3962 }
3963
3964 yyerror_range[0] = yylloc;
3965
3966 if (yyerrstatus == 3)
3967 {
3968 /* If just tried and failed to reuse look-ahead token after an
3969 error, discard it. */
3970
3971 if (yychar <= YYEOF)
3972 {
3973 /* Return failure if at end of input. */
3974 if (yychar == YYEOF)
3975 YYABORT;
3976 }
3977 else
3978 {
3979 yydestruct ("Error: discarding",
3980 yytoken, &yylval, &yylloc);
3981 yychar = YYEMPTY;
3982 }
3983 }
3984
3985 /* Else will try to reuse look-ahead token after shifting the error
3986 token. */
3987 goto yyerrlab1;
3988
3989
3990 /*---------------------------------------------------.
3991 | yyerrorlab -- error raised explicitly by YYERROR. |
3992 `---------------------------------------------------*/
3993 yyerrorlab:
3994
3995 /* Pacify compilers like GCC when the user code never invokes
3996 YYERROR and the label yyerrorlab therefore never appears in user
3997 code. */
3998 if (/*CONSTCOND*/ 0)
3999 goto yyerrorlab;
4000
4001 yyerror_range[0] = yylsp[1-yylen];
4002 /* Do not reclaim the symbols of the rule which action triggered
4003 this YYERROR. */
4004 YYPOPSTACK (yylen);
4005 yylen = 0;
4006 YY_STACK_PRINT (yyss, yyssp);
4007 yystate = *yyssp;
4008 goto yyerrlab1;
4009
4010
4011 /*-------------------------------------------------------------.
4012 | yyerrlab1 -- common code for both syntax error and YYERROR. |
4013 `-------------------------------------------------------------*/
4014 yyerrlab1:
4015 yyerrstatus = 3; /* Each real token shifted decrements this. */
4016
4017 for (;;)
4018 {
4019 yyn = yypact[yystate];
4020 if (yyn != YYPACT_NINF)
4021 {
4022 yyn += YYTERROR;
4023 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
4024 {
4025 yyn = yytable[yyn];
4026 if (0 < yyn)
4027 break;
4028 }
4029 }
4030
4031 /* Pop the current state because it cannot handle the error token. */
4032 if (yyssp == yyss)
4033 YYABORT;
4034
4035 yyerror_range[0] = *yylsp;
4036 yydestruct ("Error: popping",
4037 yystos[yystate], yyvsp, yylsp);
4038 YYPOPSTACK (1);
4039 yystate = *yyssp;
4040 YY_STACK_PRINT (yyss, yyssp);
4041 }
4042
4043 if (yyn == YYFINAL)
4044 YYACCEPT;
4045
4046 *++yyvsp = yylval;
4047
4048 yyerror_range[1] = yylloc;
4049 /* Using YYLLOC is tempting, but would change the location of
4050 the look-ahead. YYLOC is available though. */
4051 YYLLOC_DEFAULT (yyloc, (yyerror_range - 1), 2);
4052 *++yylsp = yyloc;
4053
4054 /* Shift the error token. */
4055 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
4056
4057 yystate = yyn;
4058 goto yynewstate;
4059
4060
4061 /*-------------------------------------.
4062 | yyacceptlab -- YYACCEPT comes here. |
4063 `-------------------------------------*/
4064 yyacceptlab:
4065 yyresult = 0;
4066 goto yyreturn;
4067
4068 /*-----------------------------------.
4069 | yyabortlab -- YYABORT comes here. |
4070 `-----------------------------------*/
4071 yyabortlab:
4072 yyresult = 1;
4073 goto yyreturn;
4074
4075 #ifndef yyoverflow
4076 /*-------------------------------------------------.
4077 | yyexhaustedlab -- memory exhaustion comes here. |
4078 `-------------------------------------------------*/
4079 yyexhaustedlab:
4080 yyerror (YY_("memory exhausted"));
4081 yyresult = 2;
4082 /* Fall through. */
4083 #endif
4084
4085 yyreturn:
4086 if (yychar != YYEOF && yychar != YYEMPTY)
4087 yydestruct ("Cleanup: discarding lookahead",
4088 yytoken, &yylval, &yylloc);
4089 /* Do not reclaim the symbols of the rule which action triggered
4090 this YYABORT or YYACCEPT. */
4091 YYPOPSTACK (yylen);
4092 YY_STACK_PRINT (yyss, yyssp);
4093 while (yyssp != yyss)
4094 {
4095 yydestruct ("Cleanup: popping",
4096 yystos[*yyssp], yyvsp, yylsp);
4097 YYPOPSTACK (1);
4098 }
4099 #ifndef yyoverflow
4100 if (yyss != yyssa)
4101 YYSTACK_FREE (yyss);
4102 #endif
4103 #if YYERROR_VERBOSE
4104 if (yymsg != yymsgbuf)
4105 YYSTACK_FREE (yymsg);
4106 #endif
4107 /* Make sure YYID is used. */
4108 return YYID (yyresult);
4109 }
4110
4111
4112
4113 #line 1 "chuck.yy.c"
4114
4115 #line 3 "chuck.yy.c"
4116
4117 #define YY_INT_ALIGNED short int
4118
4119 /* A lexical scanner generated by flex */
4120
4121 #define FLEX_SCANNER
4122 #define YY_FLEX_MAJOR_VERSION 2
4123 #define YY_FLEX_MINOR_VERSION 6
4124 #define YY_FLEX_SUBMINOR_VERSION 4
4125 #if YY_FLEX_SUBMINOR_VERSION > 0
4126 #define FLEX_BETA
4127 #endif
4128
4129 /* First, we deal with platform-specific or compiler-specific issues. */
4130
4131 /* begin standard C headers. */
4132 #include <stdio.h>
4133 #include <string.h>
4134 #include <errno.h>
4135 #include <stdlib.h>
4136
4137 /* end standard C headers. */
4138
4139 /* flex integer type definitions */
4140
4141 #ifndef FLEXINT_H
4142 #define FLEXINT_H
4143
4144 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
4145
4146 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
4147
4148 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
4149 * if you want the limit (max/min) macros for int types.
4150 */
4151 #ifndef __STDC_LIMIT_MACROS
4152 #define __STDC_LIMIT_MACROS 1
4153 #endif
4154
4155 #include <inttypes.h>
4156 typedef int8_t flex_int8_t;
4157 typedef uint8_t flex_uint8_t;
4158 typedef int16_t flex_int16_t;
4159 typedef uint16_t flex_uint16_t;
4160 typedef int32_t flex_int32_t;
4161 typedef uint32_t flex_uint32_t;
4162 typedef uint64_t flex_uint64_t;
4163 #else
4164 typedef signed char flex_int8_t;
4165 typedef short int flex_int16_t;
4166 typedef int flex_int32_t;
4167 typedef unsigned char flex_uint8_t;
4168 typedef unsigned short int flex_uint16_t;
4169 typedef unsigned int flex_uint32_t;
4170
4171 /* Limits of integral types. */
4172 #ifndef INT8_MIN
4173 #define INT8_MIN (-128)
4174 #endif
4175 #ifndef INT16_MIN
4176 #define INT16_MIN (-32767-1)
4177 #endif
4178 #ifndef INT32_MIN
4179 #define INT32_MIN (-2147483647-1)
4180 #endif
4181 #ifndef INT8_MAX
4182 #define INT8_MAX (127)
4183 #endif
4184 #ifndef INT16_MAX
4185 #define INT16_MAX (32767)
4186 #endif
4187 #ifndef INT32_MAX
4188 #define INT32_MAX (2147483647)
4189 #endif
4190 #ifndef UINT8_MAX
4191 #define UINT8_MAX (255U)
4192 #endif
4193 #ifndef UINT16_MAX
4194 #define UINT16_MAX (65535U)
4195 #endif
4196 #ifndef UINT32_MAX
4197 #define UINT32_MAX (4294967295U)
4198 #endif
4199
4200 #ifndef SIZE_MAX
4201 #define SIZE_MAX (~(size_t)0)
4202 #endif
4203
4204 #endif /* ! C99 */
4205
4206 #endif /* ! FLEXINT_H */
4207
4208 /* begin standard C++ headers. */
4209
4210 /* TODO: this is always defined, so inline it */
4211 #define yyconst const
4212
4213 #if defined(__GNUC__) && __GNUC__ >= 3
4214 #define yynoreturn __attribute__((__noreturn__))
4215 #else
4216 #define yynoreturn
4217 #endif
4218
4219 /* Returned upon end-of-file. */
4220 #define YY_NULL 0
4221
4222 /* Promotes a possibly negative, possibly signed char to an
4223 * integer in range [0..255] for use as an array index.
4224 */
4225 #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
4226
4227 /* Enter a start condition. This macro really ought to take a parameter,
4228 * but we do it the disgusting crufty way forced on us by the ()-less
4229 * definition of BEGIN.
4230 */
4231 #define BEGIN (yy_start) = 1 + 2 *
4232 /* Translate the current start state into a value that can be later handed
4233 * to BEGIN to return to the state. The YYSTATE alias is for lex
4234 * compatibility.
4235 */
4236 #define YY_START (((yy_start) - 1) / 2)
4237 #define YYSTATE YY_START
4238 /* Action number for EOF rule of a given start state. */
4239 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
4240 /* Special action meaning "start processing a new file". */
4241 #define YY_NEW_FILE yyrestart( yyin )
4242 #define YY_END_OF_BUFFER_CHAR 0
4243
4244 /* Size of default input buffer. */
4245 #ifndef YY_BUF_SIZE
4246 #ifdef __ia64__
4247 /* On IA-64, the buffer size is 16k, not 8k.
4248 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
4249 * Ditto for the __ia64__ case accordingly.
4250 */
4251 #define YY_BUF_SIZE 32768
4252 #else
4253 #define YY_BUF_SIZE 16384
4254 #endif /* __ia64__ */
4255 #endif
4256
4257 /* The state buf must be large enough to hold one state per character in the main buffer.
4258 */
4259 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
4260
4261 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
4262 #define YY_TYPEDEF_YY_BUFFER_STATE
4263 typedef struct yy_buffer_state *YY_BUFFER_STATE;
4264 #endif
4265
4266 #ifndef YY_TYPEDEF_YY_SIZE_T
4267 #define YY_TYPEDEF_YY_SIZE_T
4268 typedef size_t yy_size_t;
4269 #endif
4270
4271 extern yy_size_t yyleng;
4272
4273 extern FILE *yyin, *yyout;
4274
4275 #define EOB_ACT_CONTINUE_SCAN 0
4276 #define EOB_ACT_END_OF_FILE 1
4277 #define EOB_ACT_LAST_MATCH 2
4278
4279 /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
4280 * access to the local variable yy_act. Since yyless() is a macro, it would break
4281 * existing scanners that call yyless() from OUTSIDE yylex.
4282 * One obvious solution it to make yy_act a global. I tried that, and saw
4283 * a 5% performance hit in a non-yylineno scanner, because yy_act is
4284 * normally declared as a register variable-- so it is not worth it.
4285 */
4286 #define YY_LESS_LINENO(n) \
4287 do { \
4288 yy_size_t yyl;\
4289 for ( yyl = n; yyl < yyleng; ++yyl )\
4290 if ( yytext[yyl] == '\n' )\
4291 --yylineno;\
4292 }while(0)
4293 #define YY_LINENO_REWIND_TO(dst) \
4294 do {\
4295 const char *p;\
4296 for ( p = yy_cp-1; p >= (dst); --p)\
4297 if ( *p == '\n' )\
4298 --yylineno;\
4299 }while(0)
4300
4301 /* Return all but the first "n" matched characters back to the input stream. */
4302 #define yyless(n) \
4303 do \
4304 { \
4305 /* Undo effects of setting up yytext. */ \
4306 int yyless_macro_arg = (n); \
4307 YY_LESS_LINENO(yyless_macro_arg);\
4308 *yy_cp = (yy_hold_char); \
4309 YY_RESTORE_YY_MORE_OFFSET \
4310 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
4311 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
4312 } \
4313 while ( 0 )
4314 #define unput(c) yyunput( c, (yytext_ptr) )
4315
4316 #ifndef YY_STRUCT_YY_BUFFER_STATE
4317 #define YY_STRUCT_YY_BUFFER_STATE
4318 struct yy_buffer_state
4319 {
4320 FILE *yy_input_file;
4321
4322 char *yy_ch_buf; /* input buffer */
4323 char *yy_buf_pos; /* current position in input buffer */
4324
4325 /* Size of input buffer in bytes, not including room for EOB
4326 * characters.
4327 */
4328 int yy_buf_size;
4329
4330 /* Number of characters read into yy_ch_buf, not including EOB
4331 * characters.
4332 */
4333 yy_size_t yy_n_chars;
4334
4335 /* Whether we "own" the buffer - i.e., we know we created it,
4336 * and can realloc() it to grow it, and should free() it to
4337 * delete it.
4338 */
4339 int yy_is_our_buffer;
4340
4341 /* Whether this is an "interactive" input source; if so, and
4342 * if we're using stdio for input, then we want to use getc()
4343 * instead of fread(), to make sure we stop fetching input after
4344 * each newline.
4345 */
4346 int yy_is_interactive;
4347
4348 /* Whether we're considered to be at the beginning of a line.
4349 * If so, '^' rules will be active on the next match, otherwise
4350 * not.
4351 */
4352 int yy_at_bol;
4353
4354 int yy_bs_lineno; /**< The line count. */
4355 int yy_bs_column; /**< The column count. */
4356
4357 /* Whether to try to fill the input buffer when we reach the
4358 * end of it.
4359 */
4360 int yy_fill_buffer;
4361
4362 int yy_buffer_status;
4363
4364 #define YY_BUFFER_NEW 0
4365 #define YY_BUFFER_NORMAL 1
4366 /* When an EOF's been seen but there's still some text to process
4367 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
4368 * shouldn't try reading from the input source any more. We might
4369 * still have a bunch of tokens to match, though, because of
4370 * possible backing-up.
4371 *
4372 * When we actually see the EOF, we change the status to "new"
4373 * (via yyrestart()), so that the user can continue scanning by
4374 * just pointing yyin at a new input file.
4375 */
4376 #define YY_BUFFER_EOF_PENDING 2
4377
4378 };
4379 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
4380
4381 /* Stack of input buffers. */
4382 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
4383 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
4384 static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
4385
4386 /* We provide macros for accessing buffer states in case in the
4387 * future we want to put the buffer states in a more general
4388 * "scanner state".
4389 *
4390 * Returns the top of the stack, or NULL.
4391 */
4392 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
4393 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
4394 : NULL)
4395 /* Same as previous macro, but useful when we know that the buffer stack is not
4396 * NULL or when we need an lvalue. For internal use only.
4397 */
4398 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
4399
4400 /* yy_hold_char holds the character lost when yytext is formed. */
4401 static char yy_hold_char;
4402 static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
4403 yy_size_t yyleng;
4404
4405 /* Points to current character in buffer. */
4406 static char *yy_c_buf_p = NULL;
4407 static int yy_init = 0; /* whether we need to initialize */
4408 static int yy_start = 0; /* start state number */
4409
4410 /* Flag which is used to allow yywrap()'s to do buffer switches
4411 * instead of setting up a fresh yyin. A bit of a hack ...
4412 */
4413 static int yy_did_buffer_switch_on_eof;
4414
4415 void yyrestart ( FILE *input_file );
4416 void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
4417 YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
4418 void yy_delete_buffer ( YY_BUFFER_STATE b );
4419 void yy_flush_buffer ( YY_BUFFER_STATE b );
4420 void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
4421 void yypop_buffer_state ( void );
4422
4423 static void yyensure_buffer_stack ( void );
4424 static void yy_load_buffer_state ( void );
4425 static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
4426 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
4427
4428 YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
4429 YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
4430 YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, yy_size_t len );
4431
4432 void *yyalloc ( yy_size_t );
4433 void *yyrealloc ( void *, yy_size_t );
4434 void yyfree ( void * );
4435
4436 #define yy_new_buffer yy_create_buffer
4437 #define yy_set_interactive(is_interactive) \
4438 { \
4439 if ( ! YY_CURRENT_BUFFER ){ \
4440 yyensure_buffer_stack (); \
4441 YY_CURRENT_BUFFER_LVALUE = \
4442 yy_create_buffer( yyin, YY_BUF_SIZE ); \
4443 } \
4444 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
4445 }
4446 #define yy_set_bol(at_bol) \
4447 { \
4448 if ( ! YY_CURRENT_BUFFER ){\
4449 yyensure_buffer_stack (); \
4450 YY_CURRENT_BUFFER_LVALUE = \
4451 yy_create_buffer( yyin, YY_BUF_SIZE ); \
4452 } \
4453 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
4454 }
4455 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
4456
4457 /* Begin user sect3 */
4458 typedef flex_uint8_t YY_CHAR;
4459
4460 FILE *yyin = NULL, *yyout = NULL;
4461
4462 typedef int yy_state_type;
4463
4464 extern int yylineno;
4465 int yylineno = 1;
4466
4467 extern char *yytext;
4468 #ifdef yytext_ptr
4469 #undef yytext_ptr
4470 #endif
4471 #define yytext_ptr yytext
4472
4473 static yy_state_type yy_get_previous_state ( void );
4474 static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
4475 static int yy_get_next_buffer ( void );
4476 static void yynoreturn yy_fatal_error ( const char* msg );
4477
4478 /* Done after the current pattern has been matched and before the
4479 * corresponding action - sets up yytext.
4480 */
4481 #define YY_DO_BEFORE_ACTION \
4482 (yytext_ptr) = yy_bp; \
4483 yyleng = (yy_size_t) (yy_cp - yy_bp); \
4484 (yy_hold_char) = *yy_cp; \
4485 *yy_cp = '\0'; \
4486 (yy_c_buf_p) = yy_cp;
4487 #define YY_NUM_RULES 116
4488 #define YY_END_OF_BUFFER 117
4489 /* This struct is not used in this scanner,
4490 but its presence is necessary. */
4491 struct yy_trans_info
4492 {
4493 flex_int32_t yy_verify;
4494 flex_int32_t yy_nxt;
4495 };
4496 static const flex_int16_t yy_accept[352] =
4497 { 0,
4498 0, 0, 117, 115, 4, 6, 115, 3, 45, 115,
4499 20, 21, 19, 31, 115, 37, 38, 17, 15, 12,
4500 16, 14, 18, 106, 106, 13, 43, 25, 36, 26,
4501 44, 92, 105, 39, 40, 33, 115, 105, 105, 105,
4502 105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
4503 105, 41, 32, 42, 46, 5, 24, 0, 112, 0,
4504 9, 10, 0, 29, 0, 0, 0, 0, 7, 0,
4505 8, 0, 99, 110, 2, 1, 0, 110, 106, 0,
4506 0, 106, 0, 22, 100, 35, 27, 77, 23, 76,
4507 79, 80, 0, 28, 34, 11, 0, 93, 0, 0,
4508
4509 0, 0, 105, 0, 0, 0, 113, 105, 105, 105,
4510 55, 105, 105, 105, 105, 105, 53, 105, 105, 105,
4511 105, 105, 105, 105, 105, 105, 105, 105, 0, 30,
4512 78, 0, 0, 0, 0, 91, 86, 114, 0, 0,
4513 0, 0, 84, 82, 103, 101, 83, 0, 110, 85,
4514 107, 0, 109, 0, 108, 102, 56, 0, 104, 0,
4515 57, 81, 0, 0, 0, 0, 0, 88, 0, 0,
4516 0, 0, 105, 105, 105, 105, 105, 47, 60, 105,
4517 105, 105, 61, 105, 105, 105, 105, 105, 105, 105,
4518 105, 105, 105, 105, 87, 0, 0, 0, 0, 0,
4519
4520 0, 0, 0, 0, 110, 107, 109, 0, 0, 108,
4521 0, 90, 89, 0, 0, 98, 0, 0, 0, 0,
4522 0, 0, 105, 105, 105, 105, 54, 105, 105, 105,
4523 105, 105, 105, 105, 105, 70, 105, 105, 105, 105,
4524 105, 105, 105, 0, 0, 0, 0, 0, 0, 0,
4525 0, 0, 111, 0, 0, 0, 0, 0, 0, 0,
4526 0, 52, 62, 71, 105, 105, 105, 105, 105, 105,
4527 105, 105, 105, 105, 105, 105, 72, 105, 105, 49,
4528 48, 0, 0, 0, 0, 111, 0, 0, 0, 0,
4529 0, 0, 105, 105, 105, 105, 75, 105, 105, 105,
4530
4531 105, 66, 50, 58, 69, 73, 0, 0, 0, 0,
4532 0, 0, 97, 0, 0, 0, 105, 64, 105, 105,
4533 105, 105, 68, 105, 0, 0, 0, 0, 0, 0,
4534 51, 74, 59, 105, 105, 105, 0, 0, 0, 96,
4535 94, 0, 105, 63, 67, 0, 0, 95, 0, 65,
4536 0
4537 } ;
4538
4539 static const YY_CHAR yy_ec[256] =
4540 { 0,
4541 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
4542 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
4543 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4544 1, 5, 6, 7, 8, 9, 10, 11, 12, 13,
4545 14, 15, 16, 17, 18, 19, 20, 21, 22, 22,
4546 22, 22, 22, 22, 22, 23, 23, 24, 25, 26,
4547 27, 28, 29, 30, 31, 31, 32, 31, 33, 34,
4548 35, 35, 35, 35, 35, 36, 35, 35, 35, 37,
4549 35, 35, 35, 35, 38, 35, 35, 39, 35, 35,
4550 40, 41, 42, 43, 35, 44, 45, 46, 47, 48,
4551
4552 49, 50, 51, 52, 53, 35, 54, 55, 56, 57,
4553 58, 59, 35, 60, 61, 62, 63, 64, 65, 66,
4554 67, 35, 68, 69, 70, 71, 1, 1, 1, 1,
4555 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4556 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4557 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4558 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4559 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4560 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4561 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4562
4563 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4564 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4565 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4566 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4567 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4568 1, 1, 1, 1, 1
4569 } ;
4570
4571 static const YY_CHAR yy_meta[72] =
4572 { 0,
4573 1, 1, 1, 1, 1, 1, 2, 1, 1, 1,
4574 1, 3, 1, 1, 1, 1, 1, 1, 4, 1,
4575 5, 5, 6, 1, 1, 1, 1, 1, 2, 1,
4576 6, 6, 6, 6, 7, 7, 7, 8, 8, 1,
4577 2, 1, 1, 1, 5, 5, 6, 6, 6, 5,
4578 7, 7, 7, 7, 7, 7, 8, 7, 7, 8,
4579 7, 8, 8, 8, 7, 8, 7, 1, 1, 1,
4580 1
4581 } ;
4582
4583 static const flex_int16_t yy_base[397] =
4584 { 0,
4585 0, 0, 633, 634, 634, 634, 629, 634, 604, 65,
4586 617, 634, 60, 63, 588, 634, 634, 601, 59, 634,
4587 61, 55, 65, 88, 79, 603, 634, 77, 103, 66,
4588 634, 92, 0, 634, 634, 599, 55, 565, 58, 566,
4589 42, 60, 568, 91, 573, 73, 572, 90, 553, 562,
4590 566, 634, 56, 634, 634, 634, 589, 125, 634, 134,
4591 634, 634, 588, 634, 587, 141, 136, 586, 634, 585,
4592 133, 584, 634, 155, 634, 634, 583, 162, 197, 60,
4593 147, 124, 591, 634, 591, 154, 634, 634, 634, 634,
4594 634, 634, 590, 634, 165, 634, 579, 634, 548, 145,
4595
4596 549, 545, 0, 575, 165, 193, 634, 553, 556, 543,
4597 0, 538, 536, 537, 539, 537, 0, 535, 531, 527,
4598 155, 161, 163, 533, 545, 530, 526, 534, 558, 634,
4599 634, 216, 0, 0, 0, 634, 634, 634, 222, 0,
4600 0, 0, 634, 634, 634, 634, 634, 232, 634, 634,
4601 240, 205, 243, 0, 249, 634, 634, 557, 634, 556,
4602 634, 634, 526, 521, 534, 521, 530, 634, 248, 0,
4603 0, 0, 533, 516, 178, 527, 526, 0, 527, 527,
4604 517, 522, 0, 506, 507, 513, 518, 517, 502, 504,
4605 501, 513, 508, 505, 634, 260, 0, 306, 0, 278,
4606
4607 0, 345, 0, 250, 309, 271, 634, 127, 192, 278,
4608 299, 634, 634, 498, 496, 634, 499, 496, 253, 0,
4609 375, 0, 501, 493, 491, 499, 0, 185, 414, 430,
4610 424, 406, 420, 414, 406, 0, 413, 396, 382, 365,
4611 359, 360, 365, 183, 0, 0, 0, 284, 0, 0,
4612 0, 327, 349, 351, 352, 351, 365, 239, 0, 0,
4613 0, 0, 0, 0, 348, 355, 345, 348, 345, 333,
4614 338, 325, 337, 335, 319, 323, 0, 328, 324, 0,
4615 0, 0, 0, 0, 0, 634, 313, 306, 303, 301,
4616 0, 0, 299, 300, 315, 300, 0, 297, 299, 293,
4617
4618 274, 0, 0, 0, 0, 0, 0, 277, 0, 294,
4619 261, 276, 634, 253, 0, 247, 261, 0, 250, 245,
4620 201, 202, 0, 198, 0, 0, 194, 174, 141, 0,
4621 0, 0, 0, 109, 95, 90, 0, 0, 52, 634,
4622 634, 0, 30, 0, 0, 0, 0, 634, 0, 0,
4623 634, 425, 433, 437, 445, 452, 459, 464, 469, 473,
4624 475, 477, 479, 481, 483, 485, 487, 489, 491, 493,
4625 495, 497, 499, 501, 503, 505, 507, 509, 511, 513,
4626 515, 517, 519, 521, 523, 525, 527, 529, 531, 533,
4627 535, 537, 539, 541, 543, 545
4628
4629 } ;
4630
4631 static const flex_int16_t yy_def[397] =
4632 { 0,
4633 351, 1, 351, 351, 351, 351, 351, 351, 351, 352,
4634 351, 351, 351, 351, 353, 351, 351, 351, 351, 351,
4635 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4636 351, 351, 354, 351, 351, 351, 355, 354, 354, 354,
4637 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
4638 354, 351, 351, 351, 351, 351, 351, 352, 351, 356,
4639 351, 351, 351, 351, 351, 353, 357, 351, 351, 351,
4640 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4641 351, 351, 358, 351, 351, 351, 351, 351, 351, 351,
4642 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4643
4644 351, 351, 354, 351, 355, 359, 351, 354, 354, 354,
4645 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
4646 354, 354, 354, 354, 354, 354, 354, 354, 351, 351,
4647 351, 352, 360, 361, 362, 351, 351, 351, 353, 363,
4648 364, 365, 351, 351, 351, 351, 351, 351, 351, 351,
4649 351, 351, 351, 366, 358, 351, 351, 351, 351, 351,
4650 351, 351, 351, 351, 351, 351, 351, 351, 355, 367,
4651 368, 369, 354, 354, 354, 354, 354, 354, 354, 354,
4652 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
4653 354, 354, 354, 354, 351, 352, 370, 352, 371, 353,
4654
4655 372, 353, 373, 351, 351, 351, 351, 366, 366, 351,
4656 351, 351, 351, 351, 351, 351, 351, 351, 355, 374,
4657 355, 375, 354, 354, 354, 354, 354, 354, 354, 354,
4658 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
4659 354, 354, 354, 352, 376, 198, 377, 353, 378, 202,
4660 379, 351, 351, 351, 351, 351, 351, 355, 380, 221,
4661 381, 354, 354, 354, 354, 354, 354, 354, 354, 354,
4662 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
4663 354, 382, 383, 384, 385, 351, 351, 351, 351, 351,
4664 386, 387, 354, 354, 354, 354, 354, 354, 354, 354,
4665
4666 354, 354, 354, 354, 354, 354, 388, 352, 389, 353,
4667 351, 351, 351, 351, 390, 355, 354, 354, 354, 354,
4668 354, 354, 354, 354, 391, 392, 351, 351, 351, 393,
4669 354, 354, 354, 354, 354, 354, 394, 395, 351, 351,
4670 351, 396, 354, 354, 354, 383, 385, 351, 387, 354,
4671 0, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4672 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4673 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4674 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4675 351, 351, 351, 351, 351, 351
4676
4677 } ;
4678
4679 static const flex_int16_t yy_nxt[706] =
4680 { 0,
4681 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
4682 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
4683 24, 25, 25, 26, 27, 28, 29, 30, 31, 32,
4684 33, 33, 33, 33, 33, 33, 33, 33, 33, 34,
4685 4, 35, 36, 37, 33, 38, 39, 40, 41, 42,
4686 43, 33, 44, 33, 33, 33, 45, 33, 46, 47,
4687 48, 49, 50, 33, 51, 33, 33, 52, 53, 54,
4688 55, 59, 62, 64, 69, 74, 74, 74, 71, 75,
4689 151, 151, 129, 93, 76, 70, 63, 72, 73, 65,
4690 350, 77, 94, 95, 85, 106, 112, 78, 107, 79,
4691
4692 79, 79, 86, 87, 96, 60, 78, 113, 79, 79,
4693 79, 81, 109, 348, 82, 110, 82, 114, 97, 80,
4694 81, 98, 115, 82, 130, 82, 83, 81, 88, 89,
4695 90, 59, 121, 82, 80, 122, 81, 345, 99, 100,
4696 117, 82, 82, 344, 101, 91, 118, 119, 124, 102,
4697 82, 125, 138, 83, 132, 132, 139, 139, 145, 82,
4698 146, 82, 152, 211, 152, 60, 92, 153, 153, 153,
4699 343, 133, 134, 140, 141, 74, 74, 74, 82, 157,
4700 158, 67, 74, 74, 74, 211, 82, 148, 149, 59,
4701 149, 160, 161, 164, 148, 149, 135, 149, 142, 134,
4702
4703 341, 141, 165, 148, 149, 106, 186, 184, 107, 149,
4704 148, 149, 185, 169, 169, 78, 149, 79, 79, 79,
4705 187, 188, 59, 60, 189, 153, 153, 153, 211, 81,
4706 170, 171, 82, 138, 82, 340, 196, 196, 225, 226,
4707 339, 266, 200, 200, 267, 81, 336, 204, 335, 204,
4708 211, 82, 205, 205, 205, 172, 60, 334, 171, 82,
4709 151, 151, 67, 153, 153, 153, 59, 209, 219, 219,
4710 205, 205, 205, 258, 258, 206, 207, 206, 207, 106,
4711 244, 244, 107, 59, 210, 211, 210, 106, 106, 138,
4712 107, 107, 207, 106, 206, 138, 107, 207, 248, 248,
4713
4714 60, 333, 206, 210, 332, 138, 206, 211, 206, 331,
4715 329, 210, 59, 210, 252, 210, 252, 60, 67, 253,
4716 253, 253, 328, 327, 67, 206, 246, 246, 246, 205,
4717 205, 205, 210, 206, 67, 324, 246, 246, 246, 246,
4718 210, 323, 149, 322, 149, 321, 60, 253, 253, 253,
4719 246, 246, 246, 246, 246, 246, 138, 320, 149, 319,
4720 318, 317, 314, 149, 313, 250, 250, 250, 312, 253,
4721 253, 253, 311, 306, 305, 250, 250, 250, 250, 304,
4722 303, 302, 286, 301, 286, 67, 300, 299, 298, 250,
4723 250, 250, 250, 250, 250, 260, 260, 260, 286, 297,
4724
4725 296, 295, 294, 286, 293, 260, 260, 260, 260, 290,
4726 289, 288, 287, 281, 280, 106, 279, 278, 107, 260,
4727 260, 260, 260, 260, 260, 58, 58, 58, 58, 58,
4728 58, 58, 58, 66, 66, 277, 66, 66, 66, 66,
4729 66, 103, 103, 103, 103, 105, 105, 105, 105, 105,
4730 105, 105, 105, 58, 58, 276, 58, 275, 274, 58,
4731 66, 66, 273, 66, 272, 271, 66, 155, 155, 155,
4732 105, 105, 270, 105, 269, 268, 105, 197, 197, 198,
4733 198, 199, 199, 201, 201, 202, 202, 203, 203, 208,
4734 208, 220, 220, 221, 221, 222, 222, 245, 245, 247,
4735
4736 247, 249, 249, 251, 251, 259, 259, 261, 261, 282,
4737 282, 283, 283, 284, 284, 285, 285, 291, 291, 292,
4738 292, 307, 307, 308, 308, 309, 309, 310, 310, 315,
4739 315, 316, 316, 325, 325, 326, 326, 330, 330, 337,
4740 337, 338, 338, 342, 342, 346, 346, 347, 347, 349,
4741 349, 265, 264, 263, 262, 257, 256, 255, 254, 243,
4742 242, 241, 240, 239, 238, 237, 236, 235, 234, 233,
4743 232, 231, 230, 229, 228, 227, 224, 223, 218, 217,
4744 216, 215, 214, 213, 212, 195, 194, 193, 192, 191,
4745 190, 183, 182, 181, 180, 179, 178, 177, 176, 175,
4746
4747 174, 173, 168, 167, 166, 163, 162, 159, 156, 154,
4748 150, 147, 144, 143, 137, 136, 131, 128, 127, 126,
4749 123, 120, 116, 111, 108, 104, 84, 68, 67, 61,
4750 57, 56, 351, 3, 351, 351, 351, 351, 351, 351,
4751 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4752 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4753 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4754 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4755 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4756 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4757
4758 351, 351, 351, 351, 351
4759 } ;
4760
4761 static const flex_int16_t yy_chk[706] =
4762 { 0,
4763 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4764 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4765 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4766 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4767 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4768 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4769 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4770 1, 10, 13, 14, 19, 22, 22, 22, 21, 23,
4771 80, 80, 53, 30, 23, 19, 13, 21, 21, 14,
4772 343, 23, 30, 30, 28, 37, 41, 25, 37, 25,
4773
4774 25, 25, 28, 28, 32, 10, 24, 41, 24, 24,
4775 24, 25, 39, 339, 25, 39, 25, 42, 32, 24,
4776 24, 32, 42, 24, 53, 24, 24, 25, 29, 29,
4777 29, 58, 46, 25, 24, 46, 24, 336, 32, 32,
4778 44, 25, 24, 335, 32, 29, 44, 44, 48, 32,
4779 24, 48, 66, 24, 60, 60, 67, 67, 71, 82,
4780 71, 82, 81, 208, 81, 58, 29, 81, 81, 81,
4781 334, 60, 60, 67, 67, 74, 74, 74, 82, 86,
4782 86, 66, 78, 78, 78, 208, 82, 74, 74, 244,
4783 74, 95, 95, 100, 78, 78, 60, 78, 67, 60,
4784
4785 329, 67, 100, 74, 74, 105, 122, 121, 105, 74,
4786 78, 78, 121, 106, 106, 79, 78, 79, 79, 79,
4787 122, 123, 132, 244, 123, 152, 152, 152, 209, 79,
4788 106, 106, 79, 139, 79, 328, 132, 132, 175, 175,
4789 327, 228, 139, 139, 228, 79, 324, 148, 322, 148,
4790 209, 79, 148, 148, 148, 106, 132, 321, 106, 79,
4791 151, 151, 139, 153, 153, 153, 196, 155, 169, 169,
4792 204, 204, 204, 219, 219, 151, 153, 151, 153, 258,
4793 196, 196, 258, 308, 155, 155, 155, 316, 169, 200,
4794 316, 169, 153, 219, 151, 248, 219, 153, 200, 200,
4795
4796 196, 320, 151, 155, 319, 310, 206, 155, 206, 317,
4797 314, 155, 198, 210, 211, 210, 211, 308, 200, 211,
4798 211, 211, 312, 311, 248, 206, 198, 198, 198, 205,
4799 205, 205, 210, 206, 310, 301, 198, 198, 198, 198,
4800 210, 300, 205, 299, 205, 298, 198, 252, 252, 252,
4801 198, 198, 198, 198, 198, 198, 202, 296, 205, 295,
4802 294, 293, 290, 205, 289, 202, 202, 202, 288, 253,
4803 253, 253, 287, 279, 278, 202, 202, 202, 202, 276,
4804 275, 274, 253, 273, 253, 202, 272, 271, 270, 202,
4805 202, 202, 202, 202, 202, 221, 221, 221, 253, 269,
4806
4807 268, 267, 266, 253, 265, 221, 221, 221, 221, 257,
4808 256, 255, 254, 243, 242, 221, 241, 240, 221, 221,
4809 221, 221, 221, 221, 221, 352, 352, 352, 352, 352,
4810 352, 352, 352, 353, 353, 239, 353, 353, 353, 353,
4811 353, 354, 354, 354, 354, 355, 355, 355, 355, 355,
4812 355, 355, 355, 356, 356, 238, 356, 237, 235, 356,
4813 357, 357, 234, 357, 233, 232, 357, 358, 358, 358,
4814 359, 359, 231, 359, 230, 229, 359, 360, 360, 361,
4815 361, 362, 362, 363, 363, 364, 364, 365, 365, 366,
4816 366, 367, 367, 368, 368, 369, 369, 370, 370, 371,
4817
4818 371, 372, 372, 373, 373, 374, 374, 375, 375, 376,
4819 376, 377, 377, 378, 378, 379, 379, 380, 380, 381,
4820 381, 382, 382, 383, 383, 384, 384, 385, 385, 386,
4821 386, 387, 387, 388, 388, 389, 389, 390, 390, 391,
4822 391, 392, 392, 393, 393, 394, 394, 395, 395, 396,
4823 396, 226, 225, 224, 223, 218, 217, 215, 214, 194,
4824 193, 192, 191, 190, 189, 188, 187, 186, 185, 184,
4825 182, 181, 180, 179, 177, 176, 174, 173, 167, 166,
4826 165, 164, 163, 160, 158, 129, 128, 127, 126, 125,
4827 124, 120, 119, 118, 116, 115, 114, 113, 112, 110,
4828
4829 109, 108, 104, 102, 101, 99, 97, 93, 85, 83,
4830 77, 72, 70, 68, 65, 63, 57, 51, 50, 49,
4831 47, 45, 43, 40, 38, 36, 26, 18, 15, 11,
4832 9, 7, 3, 351, 351, 351, 351, 351, 351, 351,
4833 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4834 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4835 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4836 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4837 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4838 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
4839
4840 351, 351, 351, 351, 351
4841 } ;
4842
4843 /* Table of booleans, true if rule could match eol. */
4844 static const flex_int32_t yy_rule_can_match_eol[117] =
4845 { 0,
4846 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4847 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4848 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4849 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4850 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4851 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, };
4852
4853 static yy_state_type yy_last_accepting_state;
4854 static char *yy_last_accepting_cpos;
4855
4856 extern int yy_flex_debug;
4857 int yy_flex_debug = 0;
4858
4859 /* The intent behind this definition is that it'll catch
4860 * any uses of REJECT which flex missed.
4861 */
4862 #define REJECT reject_used_but_not_detected
4863 #define yymore() yymore_used_but_not_detected
4864 #define YY_MORE_ADJ 0
4865 #define YY_RESTORE_YY_MORE_OFFSET
4866 char *yytext;
4867 #line 1 "chuck.lex"
4868 #line 10 "chuck.lex"
4869
4870 /*----------------------------------------------------------------------------
4871 ChucK Strongly-timed Audio Programming Language
4872 Compiler and Virtual Machine
4873
4874 Copyright (c) 2003 Ge Wang and Perry R. Cook. All rights reserved.
4875 http://chuck.cs.princeton.edu/
4876 http://soundlab.cs.princeton.edu/
4877
4878 This program is free software; you can redistribute it and/or modify
4879 it under the terms of the GNU General Public License as published by
4880 the Free Software Foundation; either version 2 of the License, or
4881 (at your option) any later version.
4882
4883 This program is distributed in the hope that it will be useful,
4884 but WITHOUT ANY WARRANTY; without even the implied warranty of
4885 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4886 GNU General Public License for more details.
4887
4888 You should have received a copy of the GNU General Public License
4889 along with this program; if not, write to the Free Software
4890 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
4891 U.S.A.
4892 -----------------------------------------------------------------------------*/
4893
4894 //-----------------------------------------------------------------------------
4895 // file: chuck.yy.c
4896 // desc: chuck lexer
4897 //
4898 // author: Ge Wang ([email protected]) - generated by lex
4899 // Perry R. Cook ([email protected])
4900 //
4901 // initial version created by Ge Wang;
4902 // based on ansi C grammar by Jeff Lee, maintained by Jutta Degener
4903 //
4904 // date: Summer 2002
4905 //-----------------------------------------------------------------------------
4906 #include "chuck_absyn.h"
4907 #include "chuck_errmsg.h"
4908
4909 #include <stdlib.h>
4910 #include <string.h>
4911
4912 // check platforms
4913 #if !defined(__PLATFORM_WINDOWS__) && !defined(__ANDROID__) && !defined(__EMSCRIPTEN__) && !defined(__USE_CHUCK_YACC__)
4914 #include "chuck.tab.h" // use fresh bison/flex-generated header
4915 #else
4916 #include "chuck_yacc.h" // use pre-generated header (no bison/flex needed)
4917 // created by `make chuck_yacc.h` and `make chuck_yacc.c` in core/
4918 #endif
4919
4920 // globals
4921 extern YYSTYPE yylval;
4922 // 1.5.0.5 (ge) added for precise location tracking
4923 extern YYLTYPE yylloc;
4924 // 1.5.0.5 (ge) added
4925 t_CKINT yycolumn = 1;
4926
4927 // define error handling
4928 #define YY_FATAL_ERROR(msg) EM_error2( 0, msg )
4929
4930 #if defined(_cplusplus) || defined(__cplusplus)
4931 extern "C" {
4932 #endif
4933
4934 // function prototypes
4935 int yywrap(void);
4936 void adjust();
4937 c_str strip_lit( c_str str );
4938 c_str alloc_str( c_str str );
4939 long htol( c_str str );
4940
4941 // 1.5.0.5 (ge) added
4942 void a_newline( void );
4943 void yycleanup( void );
4944 void yyinitial( void );
4945 void yyflush( void );
4946
4947 #if defined(_cplusplus) || defined(__cplusplus)
4948 }
4949 #endif
4950
4951 // yycleanup | 1.5.0.5 (ge)
4952 void yycleanup( void )
4953 {
4954 // clean up the FILE
4955 if( yyin )
4956 {
4957 fclose( yyin );
4958 yyin = NULL;
4959 }
4960 }
4961
4962 // yyflush | 1.5.0.5 (ge)
4963 void yyflush( void )
4964 {
4965 // flush the buffer
4966 YY_FLUSH_BUFFER;
4967 }
4968
4969 // yyinitial | 1.5.0.5 (ge)
4970 void yyinitial( void )
4971 {
4972 // set to initial
4973 BEGIN(YY_START);
4974 // reset
4975 yycolumn = 1;
4976 EM_tokPos = yycolumn;
4977 yylloc.first_line = yylloc.last_line = 1;
4978 yylloc.first_column = yylloc.last_column = 0;
4979 // 1.5.2.4 (ge) added
4980 yylineno = 1;
4981 }
4982
4983 // yywrap()
4984 int yywrap( void )
4985 {
4986 yycolumn = 1;
4987 return 1;
4988 }
4989
4990 // new line
4991 void a_newline()
4992 {
4993 EM_newline( yylloc.last_column, yylloc.last_line );
4994 }
4995
4996 // manually advance
4997 void advance_m()
4998 {
4999 yycolumn++;
5000 yylloc.first_column++;
5001 yylloc.last_column++;
5002 }
5003
5004 // adjust()
5005 void adjust()
5006 {
5007 // update tok pos
5008 EM_tokPos = yylloc.first_column;
5009
5010 // handy debug print for precise position and bounds of each token
5011 // fprintf( stderr, "yylloc: %d %ld %d %d ------ %s\n", yylloc.first_line, yycolumn, yylloc.last_line, yylloc.last_column, yytext );
5012 }
5013
5014 // strip
5015 c_str strip_lit( c_str str )
5016 {
5017 str[strlen(str)-1] = '\0';
5018 return str+1;
5019 }
5020
5021 // alloc_str()
5022 c_str alloc_str( c_str str )
5023 {
5024 c_str s = (c_str)malloc( strlen(str) + 1 );
5025 strcpy( s, str );
5026
5027 return s;
5028 }
5029
5030 // to long
5031 long htol( c_str str )
5032 {
5033 char * c = str;
5034 unsigned long n = 0;
5035
5036 // skip over 0x
5037 c += 2;
5038 while( *c )
5039 {
5040 n <<= 4;
5041 switch( *c )
5042 {
5043 case '1': case '2': case '3': case '4': case '5':
5044 case '6': case '7': case '8': case '9': case '0':
5045 n += *c - '0';
5046 break;
5047
5048 case 'a': case 'b': case 'c': case 'd': case 'e': case 'f':
5049 n += *c - 'a' + 10;
5050 break;
5051
5052 case 'A': case 'B': case 'C': case 'D': case 'E': case 'F':
5053 n += *c - 'A' + 10;
5054 break;
5055 }
5056 c++;
5057 }
5058
5059 return n;
5060 }
5061
5062 // for debugging (string literals, especially multi-line strings)
5063 void testLineNumPrint()
5064 {
5065 fprintf( stderr, "TEST: %ld %i\n", EM_lineNum, yylloc.last_line );
5066 }
5067
5068
5069 // block comment hack
5070 #define block_comment_hack loop: \
5071 while ((c = input()) != '*' && c != 0 && c != EOF ) { \
5072 if( c == '\n' ) { a_newline(); } \
5073 else { advance_m(); adjust(); } \
5074 } \
5075 if( c == EOF || c == 0 ) /* EOF; return 0 */ { adjust(); return 0; } \
5076 if( (c1 = input()) != '/' && c != 0 && c != EOF ) { \
5077 advance_m(); \
5078 adjust(); \
5079 unput(c1); \
5080 goto loop; \
5081 } \
5082 if( c1 == EOF || c1 == 0 ) /* EOF; return 0 */ { adjust(); return 0; } \
5083 else { advance_m(); advance_m(); adjust(); };
5084
5085
5086 // comment hack
5087 #define comment_hack \
5088 while( (c = input()) != '\n' && c != '\r' && c != 0 && c != EOF ) ; \
5089 if( c == EOF || c == 0 ) /* EOF; return 0 */ { adjust(); return 0; } \
5090 if( c == '\n' ) { a_newline(); }
5091
5092
5093 // 1.5.0.5 added for tracking | (thanks ekeyser + Becca Royal-Gordon)
5094 // https://stackoverflow.com/questions/656703/how-does-flex-support-bison-location-exactly
5095 // https://www.gnu.org/software/bison/manual/html_node/Tracking-Locations.html
5096 #define YY_USER_ACTION yylloc.first_line = yylloc.last_line = yylineno; \
5097 yylloc.first_column = yycolumn; yylloc.last_column = yycolumn + yyleng - 1; \
5098 yycolumn += yyleng;
5099
5100
5101 #line 989 "chuck.yy.c"
5102 /* generate line number */
5103 /* 1.5.0.7 (ge) added to remove dependecy on isatty() and unistd.h
5104 without the above option, flex/bison will check isatty() to determine
5105 whether it's getting its input from a TTY terminal input OR file/pipe,
5106 and chooses a corresponding caching scheme. since chuck is passing
5107 data to the parser either as a file or through a string buffer using
5108 yy_scan_string(), chuck is never using using the parser for direct
5109 TTY input. (FYI the opposite of this option is `%option interactive`
5110 if neither `never-interactive` nor `interactive` is specified, bison
5111 will test using isatty()) */
5112 /* 1.5.1.5 (ge) reentrant lexer */
5113 /* %option reentrant */
5114 /* float exponent | 1.5.0.5 (ge) */
5115 /* universal character name */
5116 /* thanks O'Reilly book for the above recipes for STRING_LIT / CHAR_LIT / FLOAT_VAL
5117 https://web.iitd.ac.in/~sumeet/flex__bison.pdf */
5118 #line 1006 "chuck.yy.c"
5119
5120 #define INITIAL 0
5121
5122 #ifndef YY_EXTRA_TYPE
5123 #define YY_EXTRA_TYPE void *
5124 #endif
5125
5126 static int yy_init_globals ( void );
5127
5128 /* Accessor methods to globals.
5129 These are made visible to non-reentrant scanners for convenience. */
5130
5131 int yylex_destroy ( void );
5132
5133 int yyget_debug ( void );
5134
5135 void yyset_debug ( int debug_flag );
5136
5137 YY_EXTRA_TYPE yyget_extra ( void );
5138
5139 void yyset_extra ( YY_EXTRA_TYPE user_defined );
5140
5141 FILE *yyget_in ( void );
5142
5143 void yyset_in ( FILE * _in_str );
5144
5145 FILE *yyget_out ( void );
5146
5147 void yyset_out ( FILE * _out_str );
5148
5149 yy_size_t yyget_leng ( void );
5150
5151 char *yyget_text ( void );
5152
5153 int yyget_lineno ( void );
5154
5155 void yyset_lineno ( int _line_number );
5156
5157 /* Macros after this point can all be overridden by user definitions in
5158 * section 1.
5159 */
5160
5161 #ifndef YY_SKIP_YYWRAP
5162 #ifdef __cplusplus
5163 extern "C" int yywrap ( void );
5164 #else
5165 extern int yywrap ( void );
5166 #endif
5167 #endif
5168
5169 #ifndef YY_NO_UNPUT
5170
5171 static void yyunput ( int c, char *buf_ptr );
5172
5173 #endif
5174
5175 #ifndef yytext_ptr
5176 static void yy_flex_strncpy ( char *, const char *, int );
5177 #endif
5178
5179 #ifdef YY_NEED_STRLEN
5180 static int yy_flex_strlen ( const char * );
5181 #endif
5182
5183 #ifndef YY_NO_INPUT
5184 #ifdef __cplusplus
5185 static int yyinput ( void );
5186 #else
5187 static int input ( void );
5188 #endif
5189
5190 #endif
5191
5192 /* Amount of stuff to slurp up with each read. */
5193 #ifndef YY_READ_BUF_SIZE
5194 #ifdef __ia64__
5195 /* On IA-64, the buffer size is 16k, not 8k */
5196 #define YY_READ_BUF_SIZE 16384
5197 #else
5198 #define YY_READ_BUF_SIZE 8192
5199 #endif /* __ia64__ */
5200 #endif
5201
5202 /* Copy whatever the last rule matched to the standard output. */
5203 #ifndef ECHO
5204 /* This used to be an fputs(), but since the string might contain NUL's,
5205 * we now use fwrite().
5206 */
5207 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
5208 #endif
5209
5210 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
5211 * is returned in "result".
5212 */
5213 #ifndef YY_INPUT
5214 #define YY_INPUT(buf,result,max_size) \
5215 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
5216 { \
5217 int c = '*'; \
5218 yy_size_t n; \
5219 for ( n = 0; n < max_size && \
5220 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
5221 buf[n] = (char) c; \
5222 if ( c == '\n' ) \
5223 buf[n++] = (char) c; \
5224 if ( c == EOF && ferror( yyin ) ) \
5225 YY_FATAL_ERROR( "input in flex scanner failed" ); \
5226 result = n; \
5227 } \
5228 else \
5229 { \
5230 errno=0; \
5231 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
5232 { \
5233 if( errno != EINTR) \
5234 { \
5235 YY_FATAL_ERROR( "input in flex scanner failed" ); \
5236 break; \
5237 } \
5238 errno=0; \
5239 clearerr(yyin); \
5240 } \
5241 }\
5242 \
5243
5244 #endif
5245
5246 /* No semi-colon after return; correct usage is to write "yyterminate();" -
5247 * we don't want an extra ';' after the "return" because that will cause
5248 * some compilers to complain about unreachable statements.
5249 */
5250 #ifndef yyterminate
5251 #define yyterminate() return YY_NULL
5252 #endif
5253
5254 /* Number of entries by which start-condition stack grows. */
5255 #ifndef YY_START_STACK_INCR
5256 #define YY_START_STACK_INCR 25
5257 #endif
5258
5259 /* Report a fatal error. */
5260 #ifndef YY_FATAL_ERROR
5261 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
5262 #endif
5263
5264 /* end tables serialization structures and prototypes */
5265
5266 /* Default declaration of generated scanner - a define so the user can
5267 * easily add parameters.
5268 */
5269 #ifndef YY_DECL
5270 #define YY_DECL_IS_OURS 1
5271
5272 extern int yylex (void);
5273
5274 #define YY_DECL int yylex (void)
5275 #endif /* !YY_DECL */
5276
5277 /* Code executed at the beginning of each rule, after yytext and yyleng
5278 * have been set up.
5279 */
5280 #ifndef YY_USER_ACTION
5281 #define YY_USER_ACTION
5282 #endif
5283
5284 /* Code executed at the end of each rule. */
5285 #ifndef YY_BREAK
5286 #define YY_BREAK /*LINTED*/break;
5287 #endif
5288
5289 #define YY_RULE_SETUP \
5290 YY_USER_ACTION
5291
5292 /** The main scanner function which does all the work.
5293 */
5294 YY_DECL
5295 {
5296 yy_state_type yy_current_state;
5297 char *yy_cp, *yy_bp;
5298 int yy_act;
5299
5300 if ( !(yy_init) )
5301 {
5302 (yy_init) = 1;
5303
5304 #ifdef YY_USER_INIT
5305 YY_USER_INIT;
5306 #endif
5307
5308 if ( ! (yy_start) )
5309 (yy_start) = 1; /* first start state */
5310
5311 if ( ! yyin )
5312 yyin = stdin;
5313
5314 if ( ! yyout )
5315 yyout = stdout;
5316
5317 if ( ! YY_CURRENT_BUFFER ) {
5318 yyensure_buffer_stack ();
5319 YY_CURRENT_BUFFER_LVALUE =
5320 yy_create_buffer( yyin, YY_BUF_SIZE );
5321 }
5322
5323 yy_load_buffer_state( );
5324 }
5325
5326 {
5327 #line 268 "chuck.lex"
5328
5329 #line 270 "chuck.lex"
5330 /* --------------------- RULES SECTION --------------------------
5331 NOTE in this section, begin comments on a new line AND
5332 with one or more whitespaces before comment
5333 --------------------------------------------------------------
5334 NOTE since . matches anything except a newline,
5335 .* will gobble up the rest of the line
5336 (from /Flex & Bison/ by John Levin, published O'Reilly 2009)
5337 ALTERNATIVE "//".* { char c; adjust(); continue; }
5338 ---------------------------------------------------------------*/
5339 /* "<--" { char c; adjust(); comment_hack; continue; } */
5340 /* ------------------------------------------------------------ */
5341 #line 1229 "chuck.yy.c"
5342
5343 while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
5344 {
5345 yy_cp = (yy_c_buf_p);
5346
5347 /* Support of yytext. */
5348 *yy_cp = (yy_hold_char);
5349
5350 /* yy_bp points to the position in yy_ch_buf of the start of
5351 * the current run.
5352 */
5353 yy_bp = yy_cp;
5354
5355 yy_current_state = (yy_start);
5356 yy_match:
5357 do
5358 {
5359 YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
5360 if ( yy_accept[yy_current_state] )
5361 {
5362 (yy_last_accepting_state) = yy_current_state;
5363 (yy_last_accepting_cpos) = yy_cp;
5364 }
5365 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
5366 {
5367 yy_current_state = (int) yy_def[yy_current_state];
5368 if ( yy_current_state >= 352 )
5369 yy_c = yy_meta[yy_c];
5370 }
5371 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
5372 ++yy_cp;
5373 }
5374 while ( yy_current_state != 351 );
5375 yy_cp = (yy_last_accepting_cpos);
5376 yy_current_state = (yy_last_accepting_state);
5377
5378 yy_find_action:
5379 yy_act = yy_accept[yy_current_state];
5380
5381 YY_DO_BEFORE_ACTION;
5382
5383 if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
5384 {
5385 yy_size_t yyl;
5386 for ( yyl = 0; yyl < yyleng; ++yyl )
5387 if ( yytext[yyl] == '\n' )
5388
5389 yylineno++;
5390 ;
5391 }
5392
5393 do_action: /* This label is used only to access EOF actions. */
5394
5395 switch ( yy_act )
5396 { /* beginning of action switch */
5397 case 0: /* must back up */
5398 /* undo the effects of YY_DO_BEFORE_ACTION */
5399 *yy_cp = (yy_hold_char);
5400 yy_cp = (yy_last_accepting_cpos);
5401 yy_current_state = (yy_last_accepting_state);
5402 goto yy_find_action;
5403
5404 case 1:
5405 YY_RULE_SETUP
5406 #line 281 "chuck.lex"
5407 { char c; adjust(); comment_hack; continue; }
5408 YY_BREAK
5409 case 2:
5410 YY_RULE_SETUP
5411 #line 282 "chuck.lex"
5412 { char c, c1; adjust(); block_comment_hack; continue; }
5413 YY_BREAK
5414 case 3:
5415 YY_RULE_SETUP
5416 #line 283 "chuck.lex"
5417 { adjust(); continue; }
5418 YY_BREAK
5419 case 4:
5420 YY_RULE_SETUP
5421 #line 284 "chuck.lex"
5422 { adjust(); continue; }
5423 YY_BREAK
5424 case 5:
5425 /* rule 5 can match eol */
5426 YY_RULE_SETUP
5427 #line 285 "chuck.lex"
5428 { adjust(); a_newline(); continue; }
5429 YY_BREAK
5430 case 6:
5431 /* rule 6 can match eol */
5432 YY_RULE_SETUP
5433 #line 286 "chuck.lex"
5434 { adjust(); a_newline(); continue; }
5435 YY_BREAK
5436 case 7:
5437 YY_RULE_SETUP
5438 #line 288 "chuck.lex"
5439 { adjust(); return PLUSPLUS; }
5440 YY_BREAK
5441 case 8:
5442 YY_RULE_SETUP
5443 #line 289 "chuck.lex"
5444 { adjust(); return MINUSMINUS; }
5445 YY_BREAK
5446 case 9:
5447 YY_RULE_SETUP
5448 #line 290 "chuck.lex"
5449 { adjust(); return POUNDPAREN; }
5450 YY_BREAK
5451 case 10:
5452 YY_RULE_SETUP
5453 #line 291 "chuck.lex"
5454 { adjust(); return PERCENTPAREN; }
5455 YY_BREAK
5456 case 11:
5457 YY_RULE_SETUP
5458 #line 292 "chuck.lex"
5459 { adjust(); return ATPAREN; }
5460 YY_BREAK
5461 case 12:
5462 YY_RULE_SETUP
5463 #line 294 "chuck.lex"
5464 { adjust(); return COMMA; }
5465 YY_BREAK
5466 case 13:
5467 YY_RULE_SETUP
5468 #line 295 "chuck.lex"
5469 { adjust(); return COLON; }
5470 YY_BREAK
5471 case 14:
5472 YY_RULE_SETUP
5473 #line 296 "chuck.lex"
5474 { adjust(); return DOT; }
5475 YY_BREAK
5476 case 15:
5477 YY_RULE_SETUP
5478 #line 297 "chuck.lex"
5479 { adjust(); return PLUS; }
5480 YY_BREAK
5481 case 16:
5482 YY_RULE_SETUP
5483 #line 298 "chuck.lex"
5484 { adjust(); return MINUS; }
5485 YY_BREAK
5486 case 17:
5487 YY_RULE_SETUP
5488 #line 299 "chuck.lex"
5489 { adjust(); return TIMES; }
5490 YY_BREAK
5491 case 18:
5492 YY_RULE_SETUP
5493 #line 300 "chuck.lex"
5494 { adjust(); return DIVIDE; }
5495 YY_BREAK
5496 case 19:
5497 YY_RULE_SETUP
5498 #line 301 "chuck.lex"
5499 { adjust(); return PERCENT; }
5500 YY_BREAK
5501 case 20:
5502 YY_RULE_SETUP
5503 #line 302 "chuck.lex"
5504 { adjust(); return POUND; }
5505 YY_BREAK
5506 case 21:
5507 YY_RULE_SETUP
5508 #line 303 "chuck.lex"
5509 { adjust(); return DOLLAR; }
5510 YY_BREAK
5511 case 22:
5512 YY_RULE_SETUP
5513 #line 305 "chuck.lex"
5514 { adjust(); return COLONCOLON; }
5515 YY_BREAK
5516 case 23:
5517 YY_RULE_SETUP
5518 #line 306 "chuck.lex"
5519 { adjust(); return EQ; }
5520 YY_BREAK
5521 case 24:
5522 YY_RULE_SETUP
5523 #line 307 "chuck.lex"
5524 { adjust(); return NEQ; }
5525 YY_BREAK
5526 case 25:
5527 YY_RULE_SETUP
5528 #line 308 "chuck.lex"
5529 { adjust(); return LT; }
5530 YY_BREAK
5531 case 26:
5532 YY_RULE_SETUP
5533 #line 309 "chuck.lex"
5534 { adjust(); return GT; }
5535 YY_BREAK
5536 case 27:
5537 YY_RULE_SETUP
5538 #line 310 "chuck.lex"
5539 { adjust(); return LE; }
5540 YY_BREAK
5541 case 28:
5542 YY_RULE_SETUP
5543 #line 311 "chuck.lex"
5544 { adjust(); return GE; }
5545 YY_BREAK
5546 case 29:
5547 YY_RULE_SETUP
5548 #line 312 "chuck.lex"
5549 { adjust(); return AND; }
5550 YY_BREAK
5551 case 30:
5552 YY_RULE_SETUP
5553 #line 313 "chuck.lex"
5554 { adjust(); return OR; }
5555 YY_BREAK
5556 case 31:
5557 YY_RULE_SETUP
5558 #line 314 "chuck.lex"
5559 { adjust(); return S_AND; }
5560 YY_BREAK
5561 case 32:
5562 YY_RULE_SETUP
5563 #line 315 "chuck.lex"
5564 { adjust(); return S_OR; }
5565 YY_BREAK
5566 case 33:
5567 YY_RULE_SETUP
5568 #line 316 "chuck.lex"
5569 { adjust(); return S_XOR; }
5570 YY_BREAK
5571 case 34:
5572 YY_RULE_SETUP
5573 #line 317 "chuck.lex"
5574 { adjust(); return SHIFT_RIGHT; }
5575 YY_BREAK
5576 case 35:
5577 YY_RULE_SETUP
5578 #line 318 "chuck.lex"
5579 { adjust(); return SHIFT_LEFT; }
5580 YY_BREAK
5581 case 36:
5582 YY_RULE_SETUP
5583 #line 319 "chuck.lex"
5584 { adjust(); return ASSIGN; }
5585 YY_BREAK
5586 case 37:
5587 YY_RULE_SETUP
5588 #line 320 "chuck.lex"
5589 { adjust(); return LPAREN; }
5590 YY_BREAK
5591 case 38:
5592 YY_RULE_SETUP
5593 #line 321 "chuck.lex"
5594 { adjust(); return RPAREN; }
5595 YY_BREAK
5596 case 39:
5597 YY_RULE_SETUP
5598 #line 322 "chuck.lex"
5599 { adjust(); return LBRACK; }
5600 YY_BREAK
5601 case 40:
5602 YY_RULE_SETUP
5603 #line 323 "chuck.lex"
5604 { adjust(); return RBRACK; }
5605 YY_BREAK
5606 case 41:
5607 YY_RULE_SETUP
5608 #line 324 "chuck.lex"
5609 { adjust(); return LBRACE; }
5610 YY_BREAK
5611 case 42:
5612 YY_RULE_SETUP
5613 #line 325 "chuck.lex"
5614 { adjust(); return RBRACE; }
5615 YY_BREAK
5616 case 43:
5617 YY_RULE_SETUP
5618 #line 326 "chuck.lex"
5619 { adjust(); return SEMICOLON; }
5620 YY_BREAK
5621 case 44:
5622 YY_RULE_SETUP
5623 #line 327 "chuck.lex"
5624 { adjust(); return QUESTION; }
5625 YY_BREAK
5626 case 45:
5627 YY_RULE_SETUP
5628 #line 328 "chuck.lex"
5629 { adjust(); return EXCLAMATION; }
5630 YY_BREAK
5631 case 46:
5632 YY_RULE_SETUP
5633 #line 329 "chuck.lex"
5634 { adjust(); return TILDA; }
5635 YY_BREAK
5636 case 47:
5637 YY_RULE_SETUP
5638 #line 330 "chuck.lex"
5639 { adjust(); return FOR; }
5640 YY_BREAK
5641 case 48:
5642 YY_RULE_SETUP
5643 #line 331 "chuck.lex"
5644 { adjust(); return WHILE; }
5645 YY_BREAK
5646 case 49:
5647 YY_RULE_SETUP
5648 #line 332 "chuck.lex"
5649 { adjust(); return UNTIL; }
5650 YY_BREAK
5651 case 50:
5652 YY_RULE_SETUP
5653 #line 333 "chuck.lex"
5654 { adjust(); return LOOP; }
5655 YY_BREAK
5656 case 51:
5657 YY_RULE_SETUP
5658 #line 334 "chuck.lex"
5659 { adjust(); return CONTINUE; }
5660 YY_BREAK
5661 case 52:
5662 YY_RULE_SETUP
5663 #line 335 "chuck.lex"
5664 { adjust(); return BREAK; }
5665 YY_BREAK
5666 case 53:
5667 YY_RULE_SETUP
5668 #line 336 "chuck.lex"
5669 { adjust(); return IF; }
5670 YY_BREAK
5671 case 54:
5672 YY_RULE_SETUP
5673 #line 337 "chuck.lex"
5674 { adjust(); return ELSE; }
5675 YY_BREAK
5676 case 55:
5677 YY_RULE_SETUP
5678 #line 338 "chuck.lex"
5679 { adjust(); return DO; }
5680 YY_BREAK
5681 case 56:
5682 YY_RULE_SETUP
5683 #line 339 "chuck.lex"
5684 { adjust(); return L_HACK; }
5685 YY_BREAK
5686 case 57:
5687 YY_RULE_SETUP
5688 #line 340 "chuck.lex"
5689 { adjust(); return R_HACK; }
5690 YY_BREAK
5691 case 58:
5692 YY_RULE_SETUP
5693 #line 342 "chuck.lex"
5694 { adjust(); return RETURN; }
5695 YY_BREAK
5696 case 59:
5697 YY_RULE_SETUP
5698 #line 344 "chuck.lex"
5699 { adjust(); return FUNCTION; }
5700 YY_BREAK
5701 case 60:
5702 YY_RULE_SETUP
5703 #line 345 "chuck.lex"
5704 { adjust(); return FUNCTION; }
5705 YY_BREAK
5706 case 61:
5707 YY_RULE_SETUP
5708 #line 346 "chuck.lex"
5709 { adjust(); return NEW; }
5710 YY_BREAK
5711 case 62:
5712 YY_RULE_SETUP
5713 #line 347 "chuck.lex"
5714 { adjust(); return CLASS; }
5715 YY_BREAK
5716 case 63:
5717 YY_RULE_SETUP
5718 #line 348 "chuck.lex"
5719 { adjust(); return INTERFACE; }
5720 YY_BREAK
5721 case 64:
5722 YY_RULE_SETUP
5723 #line 349 "chuck.lex"
5724 { adjust(); return EXTENDS; }
5725 YY_BREAK
5726 case 65:
5727 YY_RULE_SETUP
5728 #line 350 "chuck.lex"
5729 { adjust(); return IMPLEMENTS; }
5730 YY_BREAK
5731 case 66:
5732 YY_RULE_SETUP
5733 #line 351 "chuck.lex"
5734 { adjust(); return PUBLIC; }
5735 YY_BREAK
5736 case 67:
5737 YY_RULE_SETUP
5738 #line 352 "chuck.lex"
5739 { adjust(); return PROTECTED; }
5740 YY_BREAK
5741 case 68:
5742 YY_RULE_SETUP
5743 #line 353 "chuck.lex"
5744 { adjust(); return PRIVATE; }
5745 YY_BREAK
5746 case 69:
5747 YY_RULE_SETUP
5748 #line 354 "chuck.lex"
5749 { adjust(); return STATIC; }
5750 YY_BREAK
5751 case 70:
5752 YY_RULE_SETUP
5753 #line 355 "chuck.lex"
5754 { adjust(); return ABSTRACT; }
5755 YY_BREAK
5756 case 71:
5757 YY_RULE_SETUP
5758 #line 356 "chuck.lex"
5759 { adjust(); return CONST; }
5760 YY_BREAK
5761 case 72:
5762 YY_RULE_SETUP
5763 #line 357 "chuck.lex"
5764 { adjust(); return SPORK; }
5765 YY_BREAK
5766 case 73:
5767 YY_RULE_SETUP
5768 #line 358 "chuck.lex"
5769 { adjust(); return TYPEOF; }
5770 YY_BREAK
5771 case 74:
5772 YY_RULE_SETUP
5773 #line 359 "chuck.lex"
5774 { adjust(); return EXTERNAL; }
5775 YY_BREAK
5776 case 75:
5777 YY_RULE_SETUP
5778 #line 360 "chuck.lex"
5779 { adjust(); return GLOBAL; }
5780 YY_BREAK
5781 case 76:
5782 YY_RULE_SETUP
5783 #line 362 "chuck.lex"
5784 { adjust(); return CHUCK; }
5785 YY_BREAK
5786 case 77:
5787 YY_RULE_SETUP
5788 #line 363 "chuck.lex"
5789 { adjust(); return UNCHUCK; }
5790 YY_BREAK
5791 case 78:
5792 YY_RULE_SETUP
5793 #line 364 "chuck.lex"
5794 { adjust(); return UNCHUCK; }
5795 YY_BREAK
5796 case 79:
5797 YY_RULE_SETUP
5798 #line 365 "chuck.lex"
5799 { adjust(); return UPCHUCK; }
5800 YY_BREAK
5801 case 80:
5802 YY_RULE_SETUP
5803 #line 366 "chuck.lex"
5804 { adjust(); return DOWNCHUCK; }
5805 YY_BREAK
5806 case 81:
5807 YY_RULE_SETUP
5808 #line 367 "chuck.lex"
5809 { adjust(); return AT_CHUCK; }
5810 YY_BREAK
5811 case 82:
5812 YY_RULE_SETUP
5813 #line 368 "chuck.lex"
5814 { adjust(); return PLUS_CHUCK; }
5815 YY_BREAK
5816 case 83:
5817 YY_RULE_SETUP
5818 #line 369 "chuck.lex"
5819 { adjust(); return MINUS_CHUCK; }
5820 YY_BREAK
5821 case 84:
5822 YY_RULE_SETUP
5823 #line 370 "chuck.lex"
5824 { adjust(); return TIMES_CHUCK; }
5825 YY_BREAK
5826 case 85:
5827 YY_RULE_SETUP
5828 #line 371 "chuck.lex"
5829 { adjust(); return DIVIDE_CHUCK; }
5830 YY_BREAK
5831 case 86:
5832 YY_RULE_SETUP
5833 #line 372 "chuck.lex"
5834 { adjust(); return S_AND_CHUCK; }
5835 YY_BREAK
5836 case 87:
5837 YY_RULE_SETUP
5838 #line 373 "chuck.lex"
5839 { adjust(); return S_OR_CHUCK; }
5840 YY_BREAK
5841 case 88:
5842 YY_RULE_SETUP
5843 #line 374 "chuck.lex"
5844 { adjust(); return S_XOR_CHUCK; }
5845 YY_BREAK
5846 case 89:
5847 YY_RULE_SETUP
5848 #line 375 "chuck.lex"
5849 { adjust(); return SHIFT_RIGHT_CHUCK; }
5850 YY_BREAK
5851 case 90:
5852 YY_RULE_SETUP
5853 #line 376 "chuck.lex"
5854 { adjust(); return SHIFT_LEFT_CHUCK; }
5855 YY_BREAK
5856 case 91:
5857 YY_RULE_SETUP
5858 #line 377 "chuck.lex"
5859 { adjust(); return PERCENT_CHUCK; }
5860 YY_BREAK
5861 case 92:
5862 YY_RULE_SETUP
5863 #line 378 "chuck.lex"
5864 { adjust(); return AT_SYM; }
5865 YY_BREAK
5866 case 93:
5867 YY_RULE_SETUP
5868 #line 379 "chuck.lex"
5869 { adjust(); return ATAT_SYM; }
5870 YY_BREAK
5871 case 94:
5872 YY_RULE_SETUP
5873 #line 380 "chuck.lex"
5874 { adjust(); return AT_OP; }
5875 YY_BREAK
5876 case 95:
5877 YY_RULE_SETUP
5878 #line 381 "chuck.lex"
5879 { adjust(); return AT_CTOR; }
5880 YY_BREAK
5881 case 96:
5882 YY_RULE_SETUP
5883 #line 382 "chuck.lex"
5884 { adjust(); return AT_DTOR; }
5885 YY_BREAK
5886 case 97:
5887 YY_RULE_SETUP
5888 #line 383 "chuck.lex"
5889 { adjust(); return AT_IMPORT; }
5890 YY_BREAK
5891 case 98:
5892 YY_RULE_SETUP
5893 #line 384 "chuck.lex"
5894 { adjust(); return AT_DOC; }
5895 YY_BREAK
5896 case 99:
5897 YY_RULE_SETUP
5898 #line 385 "chuck.lex"
5899 { adjust(); return ARROW_RIGHT; }
5900 YY_BREAK
5901 case 100:
5902 YY_RULE_SETUP
5903 #line 386 "chuck.lex"
5904 { adjust(); return ARROW_LEFT; }
5905 YY_BREAK
5906 case 101:
5907 YY_RULE_SETUP
5908 #line 387 "chuck.lex"
5909 { adjust(); return GRUCK_RIGHT; }
5910 YY_BREAK
5911 case 102:
5912 YY_RULE_SETUP
5913 #line 388 "chuck.lex"
5914 { adjust(); return GRUCK_LEFT; }
5915 YY_BREAK
5916 case 103:
5917 YY_RULE_SETUP
5918 #line 389 "chuck.lex"
5919 { adjust(); return UNGRUCK_RIGHT; }
5920 YY_BREAK
5921 case 104:
5922 YY_RULE_SETUP
5923 #line 390 "chuck.lex"
5924 { adjust(); return UNGRUCK_LEFT; }
5925 YY_BREAK
5926 case 105:
5927 YY_RULE_SETUP
5928 #line 392 "chuck.lex"
5929 { adjust(); yylval.sval=alloc_str(yytext); return ID; }
5930 YY_BREAK
5931 case 106:
5932 YY_RULE_SETUP
5933 #line 394 "chuck.lex"
5934 { adjust(); yylval.ival=atoi(yytext); return INT_VAL; }
5935 YY_BREAK
5936 case 107:
5937 YY_RULE_SETUP
5938 #line 395 "chuck.lex"
5939 { adjust(); yylval.ival=atoi(yytext); return INT_VAL; }
5940 YY_BREAK
5941 case 108:
5942 YY_RULE_SETUP
5943 #line 396 "chuck.lex"
5944 { adjust(); yylval.ival=htol(yytext); return INT_VAL; }
5945 YY_BREAK
5946 case 109:
5947 YY_RULE_SETUP
5948 #line 398 "chuck.lex"
5949 { adjust(); yylval.fval=atof(yytext); return FLOAT_VAL; }
5950 YY_BREAK
5951 case 110:
5952 YY_RULE_SETUP
5953 #line 399 "chuck.lex"
5954 { adjust(); yylval.fval=atof(yytext); return FLOAT_VAL; }
5955 YY_BREAK
5956 case 111:
5957 YY_RULE_SETUP
5958 #line 400 "chuck.lex"
5959 { adjust(); yylval.fval=atof(yytext); return FLOAT_VAL; }
5960 YY_BREAK
5961 case 112:
5962 /* rule 112 can match eol */
5963 YY_RULE_SETUP
5964 #line 402 "chuck.lex"
5965 { adjust(); yylval.sval=alloc_str(strip_lit(yytext)); return STRING_LIT; }
5966 YY_BREAK
5967 case 113:
5968 /* rule 113 can match eol */
5969 YY_RULE_SETUP
5970 #line 403 "chuck.lex"
5971 { adjust(); yylval.sval=alloc_str(strip_lit(yytext)); return STRING_LIT; }
5972 YY_BREAK
5973 case 114:
5974 /* rule 114 can match eol */
5975 YY_RULE_SETUP
5976 #line 404 "chuck.lex"
5977 { adjust(); yylval.sval=alloc_str(strip_lit(yytext)); return CHAR_LIT; }
5978 YY_BREAK
5979 case 115:
5980 YY_RULE_SETUP
5981 #line 406 "chuck.lex"
5982 { adjust(); EM_error( EM_tokPos, "illegal token" ); }
5983 YY_BREAK
5984 case 116:
5985 YY_RULE_SETUP
5986 #line 408 "chuck.lex"
5987 ECHO;
5988 YY_BREAK
5989 #line 1877 "chuck.yy.c"
5990 case YY_STATE_EOF(INITIAL):
5991 yyterminate();
5992
5993 case YY_END_OF_BUFFER:
5994 {
5995 /* Amount of text matched not including the EOB char. */
5996 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
5997
5998 /* Undo the effects of YY_DO_BEFORE_ACTION. */
5999 *yy_cp = (yy_hold_char);
6000 YY_RESTORE_YY_MORE_OFFSET
6001
6002 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
6003 {
6004 /* We're scanning a new file or input source. It's
6005 * possible that this happened because the user
6006 * just pointed yyin at a new source and called
6007 * yylex(). If so, then we have to assure
6008 * consistency between YY_CURRENT_BUFFER and our
6009 * globals. Here is the right place to do so, because
6010 * this is the first action (other than possibly a
6011 * back-up) that will match for the new input source.
6012 */
6013 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
6014 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
6015 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
6016 }
6017
6018 /* Note that here we test for yy_c_buf_p "<=" to the position
6019 * of the first EOB in the buffer, since yy_c_buf_p will
6020 * already have been incremented past the NUL character
6021 * (since all states make transitions on EOB to the
6022 * end-of-buffer state). Contrast this with the test
6023 * in input().
6024 */
6025 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
6026 { /* This was really a NUL. */
6027 yy_state_type yy_next_state;
6028
6029 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
6030
6031 yy_current_state = yy_get_previous_state( );
6032
6033 /* Okay, we're now positioned to make the NUL
6034 * transition. We couldn't have
6035 * yy_get_previous_state() go ahead and do it
6036 * for us because it doesn't know how to deal
6037 * with the possibility of jamming (and we don't
6038 * want to build jamming into it because then it
6039 * will run more slowly).
6040 */
6041
6042 yy_next_state = yy_try_NUL_trans( yy_current_state );
6043
6044 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
6045
6046 if ( yy_next_state )
6047 {
6048 /* Consume the NUL. */
6049 yy_cp = ++(yy_c_buf_p);
6050 yy_current_state = yy_next_state;
6051 goto yy_match;
6052 }
6053
6054 else
6055 {
6056 yy_cp = (yy_last_accepting_cpos);
6057 yy_current_state = (yy_last_accepting_state);
6058 goto yy_find_action;
6059 }
6060 }
6061
6062 else switch ( yy_get_next_buffer( ) )
6063 {
6064 case EOB_ACT_END_OF_FILE:
6065 {
6066 (yy_did_buffer_switch_on_eof) = 0;
6067
6068 if ( yywrap( ) )
6069 {
6070 /* Note: because we've taken care in
6071 * yy_get_next_buffer() to have set up
6072 * yytext, we can now set up
6073 * yy_c_buf_p so that if some total
6074 * hoser (like flex itself) wants to
6075 * call the scanner after we return the
6076 * YY_NULL, it'll still work - another
6077 * YY_NULL will get returned.
6078 */
6079 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
6080
6081 yy_act = YY_STATE_EOF(YY_START);
6082 goto do_action;
6083 }
6084
6085 else
6086 {
6087 if ( ! (yy_did_buffer_switch_on_eof) )
6088 YY_NEW_FILE;
6089 }
6090 break;
6091 }
6092
6093 case EOB_ACT_CONTINUE_SCAN:
6094 (yy_c_buf_p) =
6095 (yytext_ptr) + yy_amount_of_matched_text;
6096
6097 yy_current_state = yy_get_previous_state( );
6098
6099 yy_cp = (yy_c_buf_p);
6100 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
6101 goto yy_match;
6102
6103 case EOB_ACT_LAST_MATCH:
6104 (yy_c_buf_p) =
6105 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
6106
6107 yy_current_state = yy_get_previous_state( );
6108
6109 yy_cp = (yy_c_buf_p);
6110 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
6111 goto yy_find_action;
6112 }
6113 break;
6114 }
6115
6116 default:
6117 YY_FATAL_ERROR(
6118 "fatal flex scanner internal error--no action found" );
6119 } /* end of action switch */
6120 } /* end of scanning one token */
6121 } /* end of user's declarations */
6122 } /* end of yylex */
6123
6124 /* yy_get_next_buffer - try to read in a new buffer
6125 *
6126 * Returns a code representing an action:
6127 * EOB_ACT_LAST_MATCH -
6128 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
6129 * EOB_ACT_END_OF_FILE - end of file
6130 */
6131 static int yy_get_next_buffer (void)
6132 {
6133 char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
6134 char *source = (yytext_ptr);
6135 int number_to_move, i;
6136 int ret_val;
6137
6138 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
6139 YY_FATAL_ERROR(
6140 "fatal flex scanner internal error--end of buffer missed" );
6141
6142 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
6143 { /* Don't try to fill the buffer, so this is an EOF. */
6144 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
6145 {
6146 /* We matched a single character, the EOB, so
6147 * treat this as a final EOF.
6148 */
6149 return EOB_ACT_END_OF_FILE;
6150 }
6151
6152 else
6153 {
6154 /* We matched some text prior to the EOB, first
6155 * process it.
6156 */
6157 return EOB_ACT_LAST_MATCH;
6158 }
6159 }
6160
6161 /* Try to read more data. */
6162
6163 /* First move last chars to start of buffer. */
6164 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
6165
6166 for ( i = 0; i < number_to_move; ++i )
6167 *(dest++) = *(source++);
6168
6169 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
6170 /* don't do the read, it's not guaranteed to return an EOF,
6171 * just force an EOF
6172 */
6173 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
6174
6175 else
6176 {
6177 yy_size_t num_to_read =
6178 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
6179
6180 while ( num_to_read <= 0 )
6181 { /* Not enough room in the buffer - grow it. */
6182
6183 /* just a shorter name for the current buffer */
6184 YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
6185
6186 int yy_c_buf_p_offset =
6187 (int) ((yy_c_buf_p) - b->yy_ch_buf);
6188
6189 if ( b->yy_is_our_buffer )
6190 {
6191 yy_size_t new_size = b->yy_buf_size * 2;
6192
6193 if ( new_size <= 0 )
6194 b->yy_buf_size += b->yy_buf_size / 8;
6195 else
6196 b->yy_buf_size *= 2;
6197
6198 b->yy_ch_buf = (char *)
6199 /* Include room in for 2 EOB chars. */
6200 yyrealloc( (void *) b->yy_ch_buf,
6201 (yy_size_t) (b->yy_buf_size + 2) );
6202 }
6203 else
6204 /* Can't grow it, we don't own it. */
6205 b->yy_ch_buf = NULL;
6206
6207 if ( ! b->yy_ch_buf )
6208 YY_FATAL_ERROR(
6209 "fatal error - scanner input buffer overflow" );
6210
6211 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
6212
6213 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
6214 number_to_move - 1;
6215
6216 }
6217
6218 if ( num_to_read > YY_READ_BUF_SIZE )
6219 num_to_read = YY_READ_BUF_SIZE;
6220
6221 /* Read in more data. */
6222 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
6223 (yy_n_chars), num_to_read );
6224
6225 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
6226 }
6227
6228 if ( (yy_n_chars) == 0 )
6229 {
6230 if ( number_to_move == YY_MORE_ADJ )
6231 {
6232 ret_val = EOB_ACT_END_OF_FILE;
6233 yyrestart( yyin );
6234 }
6235
6236 else
6237 {
6238 ret_val = EOB_ACT_LAST_MATCH;
6239 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
6240 YY_BUFFER_EOF_PENDING;
6241 }
6242 }
6243
6244 else
6245 ret_val = EOB_ACT_CONTINUE_SCAN;
6246
6247 if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
6248 /* Extend the array by 50%, plus the number we really need. */
6249 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
6250 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
6251 (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
6252 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
6253 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
6254 /* "- 2" to take care of EOB's */
6255 YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
6256 }
6257
6258 (yy_n_chars) += number_to_move;
6259 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
6260 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
6261
6262 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
6263
6264 return ret_val;
6265 }
6266
6267 /* yy_get_previous_state - get the state just before the EOB char was reached */
6268
6269 static yy_state_type yy_get_previous_state (void)
6270 {
6271 yy_state_type yy_current_state;
6272 char *yy_cp;
6273
6274 yy_current_state = (yy_start);
6275
6276 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
6277 {
6278 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
6279 if ( yy_accept[yy_current_state] )
6280 {
6281 (yy_last_accepting_state) = yy_current_state;
6282 (yy_last_accepting_cpos) = yy_cp;
6283 }
6284 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
6285 {
6286 yy_current_state = (int) yy_def[yy_current_state];
6287 if ( yy_current_state >= 352 )
6288 yy_c = yy_meta[yy_c];
6289 }
6290 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
6291 }
6292
6293 return yy_current_state;
6294 }
6295
6296 /* yy_try_NUL_trans - try to make a transition on the NUL character
6297 *
6298 * synopsis
6299 * next_state = yy_try_NUL_trans( current_state );
6300 */
6301 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
6302 {
6303 int yy_is_jam;
6304 char *yy_cp = (yy_c_buf_p);
6305
6306 YY_CHAR yy_c = 1;
6307 if ( yy_accept[yy_current_state] )
6308 {
6309 (yy_last_accepting_state) = yy_current_state;
6310 (yy_last_accepting_cpos) = yy_cp;
6311 }
6312 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
6313 {
6314 yy_current_state = (int) yy_def[yy_current_state];
6315 if ( yy_current_state >= 352 )
6316 yy_c = yy_meta[yy_c];
6317 }
6318 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
6319 yy_is_jam = (yy_current_state == 351);
6320
6321 return yy_is_jam ? 0 : yy_current_state;
6322 }
6323
6324 #ifndef YY_NO_UNPUT
6325
6326 static void yyunput (int c, char * yy_bp )
6327 {
6328 char *yy_cp;
6329
6330 yy_cp = (yy_c_buf_p);
6331
6332 /* undo effects of setting up yytext */
6333 *yy_cp = (yy_hold_char);
6334
6335 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
6336 { /* need to shift things up to make room */
6337 /* +2 for EOB chars. */
6338 yy_size_t number_to_move = (yy_n_chars) + 2;
6339 char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
6340 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
6341 char *source =
6342 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
6343
6344 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
6345 *--dest = *--source;
6346
6347 yy_cp += (int) (dest - source);
6348 yy_bp += (int) (dest - source);
6349 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
6350 (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
6351
6352 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
6353 YY_FATAL_ERROR( "flex scanner push-back overflow" );
6354 }
6355
6356 *--yy_cp = (char) c;
6357
6358 if ( c == '\n' ){
6359 --yylineno;
6360 }
6361
6362 (yytext_ptr) = yy_bp;
6363 (yy_hold_char) = *yy_cp;
6364 (yy_c_buf_p) = yy_cp;
6365 }
6366
6367 #endif
6368
6369 #ifndef YY_NO_INPUT
6370 #ifdef __cplusplus
6371 static int yyinput (void)
6372 #else
6373 static int input (void)
6374 #endif
6375
6376 {
6377 int c;
6378
6379 *(yy_c_buf_p) = (yy_hold_char);
6380
6381 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
6382 {
6383 /* yy_c_buf_p now points to the character we want to return.
6384 * If this occurs *before* the EOB characters, then it's a
6385 * valid NUL; if not, then we've hit the end of the buffer.
6386 */
6387 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
6388 /* This was really a NUL. */
6389 *(yy_c_buf_p) = '\0';
6390
6391 else
6392 { /* need more input */
6393 yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
6394 ++(yy_c_buf_p);
6395
6396 switch ( yy_get_next_buffer( ) )
6397 {
6398 case EOB_ACT_LAST_MATCH:
6399 /* This happens because yy_g_n_b()
6400 * sees that we've accumulated a
6401 * token and flags that we need to
6402 * try matching the token before
6403 * proceeding. But for input(),
6404 * there's no matching to consider.
6405 * So convert the EOB_ACT_LAST_MATCH
6406 * to EOB_ACT_END_OF_FILE.
6407 */
6408
6409 /* Reset buffer status. */
6410 yyrestart( yyin );
6411
6412 /*FALLTHROUGH*/
6413
6414 case EOB_ACT_END_OF_FILE:
6415 {
6416 if ( yywrap( ) )
6417 return 0;
6418
6419 if ( ! (yy_did_buffer_switch_on_eof) )
6420 YY_NEW_FILE;
6421 #ifdef __cplusplus
6422 return yyinput();
6423 #else
6424 return input();
6425 #endif
6426 }
6427
6428 case EOB_ACT_CONTINUE_SCAN:
6429 (yy_c_buf_p) = (yytext_ptr) + offset;
6430 break;
6431 }
6432 }
6433 }
6434
6435 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
6436 *(yy_c_buf_p) = '\0'; /* preserve yytext */
6437 (yy_hold_char) = *++(yy_c_buf_p);
6438
6439 if ( c == '\n' )
6440
6441 yylineno++;
6442 ;
6443
6444 return c;
6445 }
6446 #endif /* ifndef YY_NO_INPUT */
6447
6448 /** Immediately switch to a different input stream.
6449 * @param input_file A readable stream.
6450 *
6451 * @note This function does not reset the start condition to @c INITIAL .
6452 */
6453 void yyrestart (FILE * input_file )
6454 {
6455
6456 if ( ! YY_CURRENT_BUFFER ){
6457 yyensure_buffer_stack ();
6458 YY_CURRENT_BUFFER_LVALUE =
6459 yy_create_buffer( yyin, YY_BUF_SIZE );
6460 }
6461
6462 yy_init_buffer( YY_CURRENT_BUFFER, input_file );
6463 yy_load_buffer_state( );
6464 }
6465
6466 /** Switch to a different input buffer.
6467 * @param new_buffer The new input buffer.
6468 *
6469 */
6470 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
6471 {
6472
6473 /* TODO. We should be able to replace this entire function body
6474 * with
6475 * yypop_buffer_state();
6476 * yypush_buffer_state(new_buffer);
6477 */
6478 yyensure_buffer_stack ();
6479 if ( YY_CURRENT_BUFFER == new_buffer )
6480 return;
6481
6482 if ( YY_CURRENT_BUFFER )
6483 {
6484 /* Flush out information for old buffer. */
6485 *(yy_c_buf_p) = (yy_hold_char);
6486 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
6487 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
6488 }
6489
6490 YY_CURRENT_BUFFER_LVALUE = new_buffer;
6491 yy_load_buffer_state( );
6492
6493 /* We don't actually know whether we did this switch during
6494 * EOF (yywrap()) processing, but the only time this flag
6495 * is looked at is after yywrap() is called, so it's safe
6496 * to go ahead and always set it.
6497 */
6498 (yy_did_buffer_switch_on_eof) = 1;
6499 }
6500
6501 static void yy_load_buffer_state (void)
6502 {
6503 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
6504 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
6505 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
6506 (yy_hold_char) = *(yy_c_buf_p);
6507 }
6508
6509 /** Allocate and initialize an input buffer state.
6510 * @param file A readable stream.
6511 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
6512 *
6513 * @return the allocated buffer state.
6514 */
6515 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
6516 {
6517 YY_BUFFER_STATE b;
6518
6519 b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
6520 if ( ! b )
6521 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
6522
6523 b->yy_buf_size = size;
6524
6525 /* yy_ch_buf has to be 2 characters longer than the size given because
6526 * we need to put in 2 end-of-buffer characters.
6527 */
6528 b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
6529 if ( ! b->yy_ch_buf )
6530 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
6531
6532 b->yy_is_our_buffer = 1;
6533
6534 yy_init_buffer( b, file );
6535
6536 return b;
6537 }
6538
6539 /** Destroy the buffer.
6540 * @param b a buffer created with yy_create_buffer()
6541 *
6542 */
6543 void yy_delete_buffer (YY_BUFFER_STATE b )
6544 {
6545
6546 if ( ! b )
6547 return;
6548
6549 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
6550 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
6551
6552 if ( b->yy_is_our_buffer )
6553 yyfree( (void *) b->yy_ch_buf );
6554
6555 yyfree( (void *) b );
6556 }
6557
6558 /* Initializes or reinitializes a buffer.
6559 * This function is sometimes called more than once on the same buffer,
6560 * such as during a yyrestart() or at EOF.
6561 */
6562 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
6563
6564 {
6565 int oerrno = errno;
6566
6567 yy_flush_buffer( b );
6568
6569 b->yy_input_file = file;
6570 b->yy_fill_buffer = 1;
6571
6572 /* If b is the current buffer, then yy_init_buffer was _probably_
6573 * called from yyrestart() or through yy_get_next_buffer.
6574 * In that case, we don't want to reset the lineno or column.
6575 */
6576 if (b != YY_CURRENT_BUFFER){
6577 b->yy_bs_lineno = 1;
6578 b->yy_bs_column = 0;
6579 }
6580
6581 b->yy_is_interactive = 0;
6582
6583 errno = oerrno;
6584 }
6585
6586 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
6587 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
6588 *
6589 */
6590 void yy_flush_buffer (YY_BUFFER_STATE b )
6591 {
6592 if ( ! b )
6593 return;
6594
6595 b->yy_n_chars = 0;
6596
6597 /* We always need two end-of-buffer characters. The first causes
6598 * a transition to the end-of-buffer state. The second causes
6599 * a jam in that state.
6600 */
6601 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
6602 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
6603
6604 b->yy_buf_pos = &b->yy_ch_buf[0];
6605
6606 b->yy_at_bol = 1;
6607 b->yy_buffer_status = YY_BUFFER_NEW;
6608
6609 if ( b == YY_CURRENT_BUFFER )
6610 yy_load_buffer_state( );
6611 }
6612
6613 /** Pushes the new state onto the stack. The new state becomes
6614 * the current state. This function will allocate the stack
6615 * if necessary.
6616 * @param new_buffer The new state.
6617 *
6618 */
6619 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
6620 {
6621 if (new_buffer == NULL)
6622 return;
6623
6624 yyensure_buffer_stack();
6625
6626 /* This block is copied from yy_switch_to_buffer. */
6627 if ( YY_CURRENT_BUFFER )
6628 {
6629 /* Flush out information for old buffer. */
6630 *(yy_c_buf_p) = (yy_hold_char);
6631 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
6632 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
6633 }
6634
6635 /* Only push if top exists. Otherwise, replace top. */
6636 if (YY_CURRENT_BUFFER)
6637 (yy_buffer_stack_top)++;
6638 YY_CURRENT_BUFFER_LVALUE = new_buffer;
6639
6640 /* copied from yy_switch_to_buffer. */
6641 yy_load_buffer_state( );
6642 (yy_did_buffer_switch_on_eof) = 1;
6643 }
6644
6645 /** Removes and deletes the top of the stack, if present.
6646 * The next element becomes the new top.
6647 *
6648 */
6649 void yypop_buffer_state (void)
6650 {
6651 if (!YY_CURRENT_BUFFER)
6652 return;
6653
6654 yy_delete_buffer(YY_CURRENT_BUFFER );
6655 YY_CURRENT_BUFFER_LVALUE = NULL;
6656 if ((yy_buffer_stack_top) > 0)
6657 --(yy_buffer_stack_top);
6658
6659 if (YY_CURRENT_BUFFER) {
6660 yy_load_buffer_state( );
6661 (yy_did_buffer_switch_on_eof) = 1;
6662 }
6663 }
6664
6665 /* Allocates the stack if it does not exist.
6666 * Guarantees space for at least one push.
6667 */
6668 static void yyensure_buffer_stack (void)
6669 {
6670 yy_size_t num_to_alloc;
6671
6672 if (!(yy_buffer_stack)) {
6673
6674 /* First allocation is just for 2 elements, since we don't know if this
6675 * scanner will even need a stack. We use 2 instead of 1 to avoid an
6676 * immediate realloc on the next call.
6677 */
6678 num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
6679 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
6680 (num_to_alloc * sizeof(struct yy_buffer_state*)
6681 );
6682 if ( ! (yy_buffer_stack) )
6683 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
6684
6685 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
6686
6687 (yy_buffer_stack_max) = num_to_alloc;
6688 (yy_buffer_stack_top) = 0;
6689 return;
6690 }
6691
6692 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
6693
6694 /* Increase the buffer to prepare for a possible push. */
6695 yy_size_t grow_size = 8 /* arbitrary grow size */;
6696
6697 num_to_alloc = (yy_buffer_stack_max) + grow_size;
6698 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
6699 ((yy_buffer_stack),
6700 num_to_alloc * sizeof(struct yy_buffer_state*)
6701 );
6702 if ( ! (yy_buffer_stack) )
6703 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
6704
6705 /* zero only the new slots.*/
6706 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
6707 (yy_buffer_stack_max) = num_to_alloc;
6708 }
6709 }
6710
6711 /** Setup the input buffer state to scan directly from a user-specified character buffer.
6712 * @param base the character buffer
6713 * @param size the size in bytes of the character buffer
6714 *
6715 * @return the newly allocated buffer state object.
6716 */
6717 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
6718 {
6719 YY_BUFFER_STATE b;
6720
6721 if ( size < 2 ||
6722 base[size-2] != YY_END_OF_BUFFER_CHAR ||
6723 base[size-1] != YY_END_OF_BUFFER_CHAR )
6724 /* They forgot to leave room for the EOB's. */
6725 return NULL;
6726
6727 b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
6728 if ( ! b )
6729 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
6730
6731 b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
6732 b->yy_buf_pos = b->yy_ch_buf = base;
6733 b->yy_is_our_buffer = 0;
6734 b->yy_input_file = NULL;
6735 b->yy_n_chars = b->yy_buf_size;
6736 b->yy_is_interactive = 0;
6737 b->yy_at_bol = 1;
6738 b->yy_fill_buffer = 0;
6739 b->yy_buffer_status = YY_BUFFER_NEW;
6740
6741 yy_switch_to_buffer( b );
6742
6743 return b;
6744 }
6745
6746 /** Setup the input buffer state to scan a string. The next call to yylex() will
6747 * scan from a @e copy of @a str.
6748 * @param yystr a NUL-terminated string to scan
6749 *
6750 * @return the newly allocated buffer state object.
6751 * @note If you want to scan bytes that may contain NUL values, then use
6752 * yy_scan_bytes() instead.
6753 */
6754 YY_BUFFER_STATE yy_scan_string (const char * yystr )
6755 {
6756
6757 return yy_scan_bytes( yystr, (int) strlen(yystr) );
6758 }
6759
6760 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
6761 * scan from a @e copy of @a bytes.
6762 * @param yybytes the byte buffer to scan
6763 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
6764 *
6765 * @return the newly allocated buffer state object.
6766 */
6767 YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, yy_size_t _yybytes_len )
6768 {
6769 YY_BUFFER_STATE b;
6770 char *buf;
6771 yy_size_t n;
6772 yy_size_t i;
6773
6774 /* Get memory for full buffer, including space for trailing EOB's. */
6775 n = (yy_size_t) (_yybytes_len + 2);
6776 buf = (char *) yyalloc( n );
6777 if ( ! buf )
6778 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
6779
6780 for ( i = 0; i < _yybytes_len; ++i )
6781 buf[i] = yybytes[i];
6782
6783 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
6784
6785 b = yy_scan_buffer( buf, n );
6786 if ( ! b )
6787 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
6788
6789 /* It's okay to grow etc. this buffer, and we should throw it
6790 * away when we're done.
6791 */
6792 b->yy_is_our_buffer = 1;
6793
6794 return b;
6795 }
6796
6797 #ifndef YY_EXIT_FAILURE
6798 #define YY_EXIT_FAILURE 2
6799 #endif
6800
6801 static void yynoreturn yy_fatal_error (const char* msg )
6802 {
6803 fprintf( stderr, "%s\n", msg );
6804 exit( YY_EXIT_FAILURE );
6805 }
6806
6807 /* Redefine yyless() so it works in section 3 code. */
6808
6809 #undef yyless
6810 #define yyless(n) \
6811 do \
6812 { \
6813 /* Undo effects of setting up yytext. */ \
6814 yy_size_t yyless_macro_arg = (n); \
6815 YY_LESS_LINENO(yyless_macro_arg);\
6816 yytext[yyleng] = (yy_hold_char); \
6817 (yy_c_buf_p) = yytext + yyless_macro_arg; \
6818 (yy_hold_char) = *(yy_c_buf_p); \
6819 *(yy_c_buf_p) = '\0'; \
6820 yyleng = yyless_macro_arg; \
6821 } \
6822 while ( 0 )
6823
6824 /* Accessor methods (get/set functions) to struct members. */
6825
6826 /** Get the current line number.
6827 *
6828 */
6829 int yyget_lineno (void)
6830 {
6831
6832 return yylineno;
6833 }
6834
6835 /** Get the input stream.
6836 *
6837 */
6838 FILE *yyget_in (void)
6839 {
6840 return yyin;
6841 }
6842
6843 /** Get the output stream.
6844 *
6845 */
6846 FILE *yyget_out (void)
6847 {
6848 return yyout;
6849 }
6850
6851 /** Get the length of the current token.
6852 *
6853 */
6854 yy_size_t yyget_leng (void)
6855 {
6856 return yyleng;
6857 }
6858
6859 /** Get the current token.
6860 *
6861 */
6862
6863 char *yyget_text (void)
6864 {
6865 return yytext;
6866 }
6867
6868 /** Set the current line number.
6869 * @param _line_number line number
6870 *
6871 */
6872 void yyset_lineno (int _line_number )
6873 {
6874
6875 yylineno = _line_number;
6876 }
6877
6878 /** Set the input stream. This does not discard the current
6879 * input buffer.
6880 * @param _in_str A readable stream.
6881 *
6882 * @see yy_switch_to_buffer
6883 */
6884 void yyset_in (FILE * _in_str )
6885 {
6886 yyin = _in_str ;
6887 }
6888
6889 void yyset_out (FILE * _out_str )
6890 {
6891 yyout = _out_str ;
6892 }
6893
6894 int yyget_debug (void)
6895 {
6896 return yy_flex_debug;
6897 }
6898
6899 void yyset_debug (int _bdebug )
6900 {
6901 yy_flex_debug = _bdebug ;
6902 }
6903
6904 static int yy_init_globals (void)
6905 {
6906 /* Initialization is the same as for the non-reentrant scanner.
6907 * This function is called from yylex_destroy(), so don't allocate here.
6908 */
6909
6910 /* We do not touch yylineno unless the option is enabled. */
6911 yylineno = 1;
6912
6913 (yy_buffer_stack) = NULL;
6914 (yy_buffer_stack_top) = 0;
6915 (yy_buffer_stack_max) = 0;
6916 (yy_c_buf_p) = NULL;
6917 (yy_init) = 0;
6918 (yy_start) = 0;
6919
6920 /* Defined in main.c */
6921 #ifdef YY_STDINIT
6922 yyin = stdin;
6923 yyout = stdout;
6924 #else
6925 yyin = NULL;
6926 yyout = NULL;
6927 #endif
6928
6929 /* For future reference: Set errno on error, since we are called by
6930 * yylex_init()
6931 */
6932 return 0;
6933 }
6934
6935 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
6936 int yylex_destroy (void)
6937 {
6938
6939 /* Pop the buffer stack, destroying each element. */
6940 while(YY_CURRENT_BUFFER){
6941 yy_delete_buffer( YY_CURRENT_BUFFER );
6942 YY_CURRENT_BUFFER_LVALUE = NULL;
6943 yypop_buffer_state();
6944 }
6945
6946 /* Destroy the stack itself. */
6947 yyfree((yy_buffer_stack) );
6948 (yy_buffer_stack) = NULL;
6949
6950 /* Reset the globals. This is important in a non-reentrant scanner so the next time
6951 * yylex() is called, initialization will occur. */
6952 yy_init_globals( );
6953
6954 return 0;
6955 }
6956
6957 /*
6958 * Internal utility routines.
6959 */
6960
6961 #ifndef yytext_ptr
6962 static void yy_flex_strncpy (char* s1, const char * s2, int n )
6963 {
6964
6965 int i;
6966 for ( i = 0; i < n; ++i )
6967 s1[i] = s2[i];
6968 }
6969 #endif
6970
6971 #ifdef YY_NEED_STRLEN
6972 static int yy_flex_strlen (const char * s )
6973 {
6974 int n;
6975 for ( n = 0; s[n]; ++n )
6976 ;
6977
6978 return n;
6979 }
6980 #endif
6981
6982 void *yyalloc (yy_size_t size )
6983 {
6984 return malloc(size);
6985 }
6986
6987 void *yyrealloc (void * ptr, yy_size_t size )
6988 {
6989
6990 /* The cast to (char *) in the following accommodates both
6991 * implementations that use char* generic pointers, and those
6992 * that use void* generic pointers. It works with the latter
6993 * because both ANSI C and C++ allow castless assignment from
6994 * any pointer type to void*, and deal with argument conversions
6995 * as though doing an assignment.
6996 */
6997 return realloc(ptr, size);
6998 }
6999
7000 void yyfree (void * ptr )
7001 {
7002 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
7003 }
7004
7005 #define YYTABLES_NAME "yytables"
7006
7007 #line 408 "chuck.lex"
7008
7009
7010 // older
7011 // ([0-9]+"."[0-9]*)|([0-9]*"."[0-9]+) { adjust(); yylval.fval=atof(yytext); return FLOAT_VAL; }
7012 // \"(\\.|[^\\"])*\" { adjust(); yylval.sval=alloc_str(strip_lit(yytext)); return STRING_LIT; }
7013 // `(\\.|[^\\`])*` { adjust(); yylval.sval=alloc_str(strip_lit(yytext)); return STRING_LIT; }
7014 // '(\\.|[^\\'])' { adjust(); yylval.sval=alloc_str(strip_lit(yytext)); return CHAR_LIT; }
7015