-
Notifications
You must be signed in to change notification settings - Fork 0
/
c++2python.tab.c
2434 lines (2092 loc) · 80.6 KB
/
c++2python.tab.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
/* Identify Bison output. */
#define YYBISON 1
/* Bison version. */
#define YYBISON_VERSION "3.0.4"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 0
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1
/* Copy the first part of user declarations. */
#line 1 "c++2python.y" /* yacc.c:339 */
#include "c++2python.h"
#line 70 "c++2python.tab.c" /* yacc.c:339 */
# ifndef YY_NULLPTR
# if defined __cplusplus && 201103L <= __cplusplus
# define YY_NULLPTR nullptr
# else
# define YY_NULLPTR 0
# endif
# endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 1
#endif
/* In a future release of Bison, this section will be replaced
by #include "c++2python.tab.h". */
#ifndef YY_YY_C_2PYTHON_TAB_H_INCLUDED
# define YY_YY_C_2PYTHON_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
SHL_OP = 258,
SHR_OP = 259,
LE_OP = 260,
GE_OP = 261,
EQ_OP = 262,
NE_OP = 263,
AND_OP = 264,
OR_OP = 265,
ADD_ASSIGN = 266,
IDENTIFIER = 267,
CONSTANT = 268,
CONSTANT_STRING = 269,
CONSTANT_F = 270,
INT = 271,
FLOAT = 272,
STRING = 273,
CIN = 274,
COUT = 275,
IF = 276,
ELSE = 277,
FOR = 278,
CONTINUE = 279,
BREAK = 280,
RETURN = 281,
READ = 282,
DO = 283,
WHILE = 284,
EXTDEFS = 285,
PARAS = 286,
STMTS = 287,
DEFS = 288,
DECS = 289,
ARGS = 290,
LIB1 = 291,
LIB2 = 292
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 6 "c++2python.y" /* yacc.c:355 */
int i;
struct ast_node *n;
char* s;
float f;
#line 155 "c++2python.tab.c" /* yacc.c:355 */
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
/* Location type. */
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE YYLTYPE;
struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
};
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
extern YYSTYPE yylval;
extern YYLTYPE yylloc;
int yyparse (void);
#endif /* !YY_YY_C_2PYTHON_TAB_H_INCLUDED */
/* Copy the second part of user declarations. */
#line 186 "c++2python.tab.c" /* yacc.c:358 */
#ifdef short
# undef short
#endif
#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#else
typedef signed char yytype_int8;
#endif
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif
#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
# define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
# define YYSIZE_T size_t
# elif ! defined YYSIZE_T
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
# define YYSIZE_T unsigned int
# endif
#endif
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
# endif
# endif
# ifndef YY_
# define YY_(Msgid) Msgid
# endif
#endif
#ifndef YY_ATTRIBUTE
# if (defined __GNUC__ \
&& (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
|| defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
# define YY_ATTRIBUTE(Spec) __attribute__(Spec)
# else
# define YY_ATTRIBUTE(Spec) /* empty */
# endif
#endif
#ifndef YY_ATTRIBUTE_PURE
# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
#endif
#ifndef YY_ATTRIBUTE_UNUSED
# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
#endif
#if !defined _Noreturn \
&& (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
# if defined _MSC_VER && 1200 <= _MSC_VER
# define _Noreturn __declspec (noreturn)
# else
# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
# endif
#endif
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
# define YYUSE(E) ((void) (E))
#else
# define YYUSE(E) /* empty */
#endif
#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
_Pragma ("GCC diagnostic pop")
#else
# define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif
#if ! defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
# ifdef YYSTACK_USE_ALLOCA
# if YYSTACK_USE_ALLOCA
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
# elif defined __BUILTIN_VA_ARG_INCR
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
# elif defined _AIX
# define YYSTACK_ALLOC __alloca
# elif defined _MSC_VER
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
/* Pacify GCC's 'empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
to allow for a few compiler-allocated temporary stack slots. */
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
# endif
# else
# define YYSTACK_ALLOC YYMALLOC
# define YYSTACK_FREE YYFREE
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
&& ! ((defined YYMALLOC || defined malloc) \
&& (defined YYFREE || defined free)))
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
# if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
# if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
#if (! defined yyoverflow \
&& (! defined __cplusplus \
|| (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
&& defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
yytype_int16 yyss_alloc;
YYSTYPE yyvs_alloc;
YYLTYPE yyls_alloc;
};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
+ 2 * YYSTACK_GAP_MAXIMUM)
# define YYCOPY_NEEDED 1
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (0)
#endif
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST. The source and destination do
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(Dst, Src, Count) \
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
# else
# define YYCOPY(Dst, Src, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)
# endif
# endif
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 4
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 529
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 54
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 40
/* YYNRULES -- Number of rules. */
#define YYNRULES 106
/* YYNSTATES -- Number of states. */
#define YYNSTATES 224
/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
by yylex, with out-of-bounds checking. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 292
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
as returned by yylex, without out-of-bounds checking. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 53, 2, 2, 2, 2, 2, 2,
38, 39, 51, 49, 40, 50, 2, 52, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 45,
48, 46, 47, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 41, 2, 42, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 43, 2, 44, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37
};
#if YYDEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
0, 40, 40, 41, 45, 46, 50, 51, 52, 53,
58, 59, 63, 64, 68, 69, 70, 74, 75, 79,
80, 84, 85, 86, 87, 88, 89, 90, 91, 92,
93, 97, 98, 99, 100, 101, 105, 106, 107, 108,
109, 113, 117, 121, 122, 126, 130, 131, 135, 136,
137, 138, 139, 140, 141, 142, 146, 150, 154, 155,
159, 160, 161, 165, 166, 167, 171, 172, 177, 178,
182, 183, 187, 191, 195, 196, 197, 201, 202, 206,
207, 211, 212, 213, 217, 218, 219, 220, 221, 225,
229, 230, 231, 235, 236, 237, 241, 242, 246, 247,
248, 252, 253, 254, 255, 259, 260
};
#endif
#if YYDEBUG || YYERROR_VERBOSE || 1
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
"$end", "error", "$undefined", "SHL_OP", "SHR_OP", "LE_OP", "GE_OP",
"EQ_OP", "NE_OP", "AND_OP", "OR_OP", "ADD_ASSIGN", "IDENTIFIER",
"CONSTANT", "CONSTANT_STRING", "CONSTANT_F", "INT", "FLOAT", "STRING",
"CIN", "COUT", "IF", "ELSE", "FOR", "CONTINUE", "BREAK", "RETURN",
"READ", "DO", "WHILE", "EXTDEFS", "PARAS", "STMTS", "DEFS", "DECS",
"ARGS", "LIB1", "LIB2", "'('", "')'", "','", "'['", "']'", "'{'", "'}'",
"';'", "'='", "'>'", "'<'", "'+'", "'-'", "'*'", "'/'", "'!'", "$accept",
"program", "extdefs", "extdef", "func", "paras", "para", "var", "stmts",
"stmt", "compound_stmt", "compound_stmt_func", "jump_stmt", "in_stmt",
"out_stmt", "expr_stmt", "selection_stmt", "iteration_stmt", "do_stmt",
"while_stmt", "defs", "def", "real", "str", "decs", "dec", "init",
"expr", "assignment", "logical_or", "logical_and", "equality",
"relational", "shift", "additive", "multi", "unary", "postfix",
"primary", "args", YY_NULLPTR
};
#endif
# ifdef YYPRINT
/* YYTOKNUM[NUM] -- (External) token number corresponding to the
(internal) symbol number NUM (which must be that of a token). */
static const yytype_uint16 yytoknum[] =
{
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
285, 286, 287, 288, 289, 290, 291, 292, 40, 41,
44, 91, 93, 123, 125, 59, 61, 62, 60, 43,
45, 42, 47, 33
};
# endif
#define YYPACT_NINF -61
#define yypact_value_is_default(Yystate) \
(!!((Yystate) == (-61)))
#define YYTABLE_NINF -1
#define yytable_value_is_error(Yytable_value) \
0
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
static const yytype_int16 yypact[] =
{
-18, 1, 48, 97, -61, 46, 46, 46, 97, -61,
-61, 21, 38, 17, 4, -61, 38, 24, 8, 38,
29, 62, -61, -6, 73, 164, -61, -61, -61, 238,
99, -61, -61, 95, -61, -61, 114, -61, 99, 99,
99, -61, -15, -61, 79, -61, -61, -61, 99, 99,
99, 128, 135, 110, 117, 238, 476, 121, 238, 203,
-61, 238, 242, -61, -61, -61, -61, -61, -61, -61,
-61, -61, -61, 281, -61, 116, -61, 158, 162, 35,
3, -61, 52, 90, 10, 148, -61, -61, -61, 150,
-61, -61, -61, -61, -61, -61, -61, -61, 113, -61,
182, 125, 238, 7, 154, 238, 171, 118, 238, 165,
320, 359, -61, 238, -61, -61, 238, -61, 398, -61,
-61, 238, 238, 238, 238, 238, 238, 238, 238, 238,
238, 238, 238, 238, 238, 2, -61, 156, 160, 161,
174, 19, 180, 159, 183, 189, -61, 191, -61, 437,
188, 190, 238, -61, 162, -61, 35, 3, 3, -61,
-61, -61, -61, 90, 90, -61, -61, -61, -61, -61,
-61, 77, -61, -61, -61, 476, 65, 194, 112, -61,
-61, 238, 476, 192, 196, 197, -61, 238, 212, 476,
204, 107, 157, 200, 205, -61, -61, -61, 220, -61,
476, -61, 476, 476, 210, 476, 227, 199, 222, -61,
-61, -61, -61, 476, -61, 476, 476, 230, -61, -61,
-61, -61, 476, -61
};
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
Performed when YYTABLE does not specify something else to do. Zero
means the default is an error. */
static const yytype_uint8 yydefact[] =
{
2, 0, 0, 0, 1, 0, 0, 0, 3, 4,
6, 17, 0, 70, 0, 68, 0, 63, 0, 0,
66, 0, 5, 0, 0, 0, 35, 36, 7, 0,
0, 60, 8, 0, 61, 9, 0, 62, 0, 0,
0, 11, 0, 12, 0, 101, 102, 103, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
34, 0, 0, 19, 21, 29, 22, 23, 24, 25,
26, 27, 28, 0, 58, 0, 73, 74, 77, 79,
81, 84, 89, 90, 93, 96, 98, 71, 72, 17,
69, 65, 64, 67, 14, 15, 16, 10, 0, 18,
0, 0, 0, 0, 0, 0, 0, 30, 0, 0,
0, 0, 97, 0, 33, 20, 0, 32, 0, 58,
45, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 13, 0, 0, 0,
0, 0, 0, 41, 0, 0, 59, 0, 104, 0,
0, 0, 0, 31, 78, 93, 80, 82, 83, 88,
86, 85, 87, 91, 92, 94, 95, 76, 75, 100,
105, 0, 42, 43, 44, 0, 0, 0, 0, 40,
41, 0, 0, 41, 41, 0, 99, 0, 46, 0,
0, 0, 0, 0, 0, 57, 39, 38, 41, 106,
0, 55, 0, 0, 0, 0, 0, 0, 0, 37,
47, 54, 53, 0, 51, 0, 0, 0, 56, 52,
50, 49, 0, 48
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
-61, -61, -61, 264, 137, -61, 175, -3, -57, -49,
11, 66, -61, -61, -61, -61, -61, -61, -61, -61,
-20, -2, -61, -61, -61, 244, -61, -29, 41, -61,
163, 153, 74, -60, -61, 59, -33, -61, -61, -61
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
-1, 2, 8, 9, 12, 42, 43, 13, 62, 63,
64, 28, 65, 66, 67, 68, 69, 70, 71, 72,
107, 74, 18, 21, 14, 15, 87, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 171
};
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule whose
number is the opposite. If YYTABLE_NINF, syntax error. */
static const yytype_uint8 yytable[] =
{
88, 10, 110, 17, 20, 73, 10, 106, 125, 126,
38, 39, 40, 115, 45, 46, 118, 47, 1, 45,
46, 133, 47, 27, 97, 98, 104, 27, 112, 109,
27, 45, 46, 41, 47, 94, 95, 96, 3, 111,
58, 169, 123, 124, 30, 58, 17, 20, 4, 31,
127, 128, 141, 34, 149, 61, 134, 58, 11, 23,
61, 115, 24, 29, 176, 159, 160, 161, 162, 115,
33, 119, 61, 140, 142, 36, 144, 45, 46, 147,
47, 25, 32, 26, 150, 35, 44, 151, 155, 155,
155, 155, 155, 155, 155, 155, 155, 155, 165, 166,
115, 129, 130, 58, 189, 146, 170, 37, 91, 119,
92, 89, 177, 5, 6, 7, 186, 187, 61, 45,
46, 99, 47, 185, 45, 46, 188, 47, 93, 38,
39, 40, 100, 195, 48, 49, 50, 138, 101, 139,
201, 131, 132, 16, 19, 58, 203, 190, 102, 193,
58, 210, 194, 211, 212, 103, 214, 192, 199, 108,
61, 120, 204, 206, 219, 61, 220, 221, 121, 45,
46, 122, 47, 223, 167, 168, 45, 46, 217, 47,
48, 49, 50, 51, 52, 53, 135, 54, 163, 164,
55, 24, 56, 57, 137, 58, 205, 157, 158, 143,
145, 172, 58, 179, 148, 173, 174, 59, 60, 26,
61, 45, 46, 175, 47, 45, 46, 61, 47, 48,
49, 50, 51, 52, 53, 178, 54, 181, 180, 105,
182, 56, 57, 183, 200, 184, 196, 58, 216, 191,
197, 58, 198, 202, 208, 207, 59, 60, 26, 213,
45, 46, 61, 47, 45, 46, 61, 47, 48, 49,
50, 51, 52, 53, 209, 54, 215, 218, 113, 222,
56, 57, 22, 136, 90, 156, 58, 0, 0, 0,
58, 0, 0, 0, 154, 59, 114, 26, 0, 0,
0, 61, 0, 45, 46, 61, 47, 48, 49, 50,
51, 52, 53, 0, 54, 0, 0, 116, 0, 56,
57, 0, 0, 0, 0, 0, 0, 0, 0, 58,
0, 0, 0, 0, 59, 117, 26, 0, 0, 0,
0, 0, 45, 46, 61, 47, 48, 49, 50, 51,
52, 53, 0, 54, 0, 0, 105, 0, 56, 57,
0, 0, 0, 0, 0, 0, 0, 0, 58, 0,
0, 0, 0, 59, 114, 26, 0, 0, 0, 0,
0, 45, 46, 61, 47, 48, 49, 50, 51, 52,
53, 0, 54, 0, 0, 105, 0, 56, 57, 0,
0, 0, 0, 0, 0, 0, 0, 58, 0, 0,
0, 0, 59, 117, 26, 0, 0, 0, 0, 0,
45, 46, 61, 47, 48, 49, 50, 51, 52, 53,
0, 54, 0, 0, 152, 0, 56, 57, 0, 0,
0, 0, 0, 0, 0, 0, 58, 0, 0, 0,
0, 59, 153, 26, 0, 0, 0, 0, 0, 45,
46, 61, 47, 48, 49, 50, 51, 52, 53, 0,
54, 0, 0, 105, 0, 56, 57, 0, 0, 0,
0, 0, 0, 0, 0, 58, 0, 0, 0, 0,
59, 153, 26, 0, 0, 0, 0, 0, 45, 46,
61, 47, 48, 49, 50, 51, 52, 53, 0, 54,
0, 0, 105, 0, 56, 57, 0, 0, 0, 0,
0, 0, 0, 0, 58, 0, 0, 0, 0, 59,
0, 26, 0, 0, 0, 0, 0, 0, 0, 61
};
static const yytype_int16 yycheck[] =
{
29, 3, 59, 6, 7, 25, 8, 56, 5, 6,
16, 17, 18, 62, 12, 13, 73, 15, 36, 12,
13, 11, 15, 12, 39, 40, 55, 16, 61, 58,
19, 12, 13, 39, 15, 38, 39, 40, 37, 59,
38, 39, 7, 8, 40, 38, 49, 50, 0, 45,
47, 48, 45, 45, 111, 53, 46, 38, 12, 38,
53, 110, 41, 46, 45, 125, 126, 127, 128, 118,
46, 73, 53, 102, 103, 46, 105, 12, 13, 108,
15, 43, 16, 45, 113, 19, 13, 116, 121, 122,
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
149, 49, 50, 38, 39, 107, 135, 45, 13, 111,
15, 12, 141, 16, 17, 18, 39, 40, 53, 12,
13, 42, 15, 152, 12, 13, 175, 15, 14, 16,
17, 18, 4, 182, 16, 17, 18, 12, 3, 14,
189, 51, 52, 6, 7, 38, 39, 176, 38, 178,
38, 200, 181, 202, 203, 38, 205, 45, 187, 38,
53, 45, 191, 192, 213, 53, 215, 216, 10, 12,
13, 9, 15, 222, 133, 134, 12, 13, 207, 15,
16, 17, 18, 19, 20, 21, 38, 23, 129, 130,
26, 41, 28, 29, 12, 38, 39, 123, 124, 45,
29, 45, 38, 44, 39, 45, 45, 43, 44, 45,
53, 12, 13, 39, 15, 12, 13, 53, 15, 16,
17, 18, 19, 20, 21, 45, 23, 38, 45, 26,
39, 28, 29, 45, 22, 45, 44, 38, 39, 45,
44, 38, 45, 39, 39, 45, 43, 44, 45, 39,
12, 13, 53, 15, 12, 13, 53, 15, 16, 17,
18, 19, 20, 21, 44, 23, 39, 45, 26, 39,
28, 29, 8, 98, 30, 122, 38, -1, -1, -1,
38, -1, -1, -1, 121, 43, 44, 45, -1, -1,
-1, 53, -1, 12, 13, 53, 15, 16, 17, 18,
19, 20, 21, -1, 23, -1, -1, 26, -1, 28,
29, -1, -1, -1, -1, -1, -1, -1, -1, 38,
-1, -1, -1, -1, 43, 44, 45, -1, -1, -1,
-1, -1, 12, 13, 53, 15, 16, 17, 18, 19,
20, 21, -1, 23, -1, -1, 26, -1, 28, 29,
-1, -1, -1, -1, -1, -1, -1, -1, 38, -1,
-1, -1, -1, 43, 44, 45, -1, -1, -1, -1,
-1, 12, 13, 53, 15, 16, 17, 18, 19, 20,
21, -1, 23, -1, -1, 26, -1, 28, 29, -1,
-1, -1, -1, -1, -1, -1, -1, 38, -1, -1,
-1, -1, 43, 44, 45, -1, -1, -1, -1, -1,
12, 13, 53, 15, 16, 17, 18, 19, 20, 21,
-1, 23, -1, -1, 26, -1, 28, 29, -1, -1,
-1, -1, -1, -1, -1, -1, 38, -1, -1, -1,
-1, 43, 44, 45, -1, -1, -1, -1, -1, 12,
13, 53, 15, 16, 17, 18, 19, 20, 21, -1,
23, -1, -1, 26, -1, 28, 29, -1, -1, -1,
-1, -1, -1, -1, -1, 38, -1, -1, -1, -1,
43, 44, 45, -1, -1, -1, -1, -1, 12, 13,
53, 15, 16, 17, 18, 19, 20, 21, -1, 23,
-1, -1, 26, -1, 28, 29, -1, -1, -1, -1,
-1, -1, -1, -1, 38, -1, -1, -1, -1, 43,
-1, 45, -1, -1, -1, -1, -1, -1, -1, 53
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
static const yytype_uint8 yystos[] =
{
0, 36, 55, 37, 0, 16, 17, 18, 56, 57,
75, 12, 58, 61, 78, 79, 58, 61, 76, 58,
61, 77, 57, 38, 41, 43, 45, 64, 65, 46,
40, 45, 65, 46, 45, 65, 46, 45, 16, 17,
18, 39, 59, 60, 13, 12, 13, 15, 16, 17,
18, 19, 20, 21, 23, 26, 28, 29, 38, 43,
44, 53, 62, 63, 64, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 81, 82, 83, 84, 85,
86, 87, 88, 89, 90, 91, 92, 80, 81, 12,
79, 13, 15, 14, 61, 61, 61, 39, 40, 42,
4, 3, 38, 38, 81, 26, 63, 74, 38, 81,
62, 74, 90, 26, 44, 63, 26, 44, 62, 75,
45, 10, 9, 7, 8, 5, 6, 47, 48, 49,
50, 51, 52, 11, 46, 38, 60, 12, 12, 14,
81, 45, 81, 45, 81, 29, 75, 81, 39, 62,
81, 81, 26, 44, 84, 90, 85, 86, 86, 87,
87, 87, 87, 89, 89, 90, 90, 82, 82, 39,
81, 93, 45, 45, 45, 39, 45, 81, 45, 44,
45, 38, 39, 45, 45, 81, 39, 40, 63, 39,
81, 45, 45, 81, 81, 63, 44, 44, 45, 81,
22, 63, 39, 39, 81, 39, 81, 45, 39, 44,
63, 63, 63, 39, 63, 39, 39, 81, 45, 63,
63, 63, 39, 63
};
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint8 yyr1[] =
{
0, 54, 55, 55, 56, 56, 57, 57, 57, 57,
58, 58, 59, 59, 60, 60, 60, 61, 61, 62,
62, 63, 63, 63, 63, 63, 63, 63, 63, 63,
63, 64, 64, 64, 64, 64, 65, 65, 65, 65,
65, 66, 67, 68, 68, 69, 70, 70, 71, 71,
71, 71, 71, 71, 71, 71, 72, 73, 74, 74,
75, 75, 75, 76, 76, 76, 77, 77, 78, 78,
79, 79, 80, 81, 82, 82, 82, 83, 83, 84,
84, 85, 85, 85, 86, 86, 86, 86, 86, 87,
88, 88, 88, 89, 89, 89, 90, 90, 91, 91,
91, 92, 92, 92, 92, 93, 93
};
/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
static const yytype_uint8 yyr2[] =
{
0, 2, 0, 3, 1, 2, 1, 3, 3, 3,
4, 3, 1, 3, 2, 2, 2, 1, 4, 1,
2, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 4, 3, 3, 2, 1, 1, 7, 6, 6,
5, 3, 4, 4, 4, 2, 5, 7, 9, 8,
8, 7, 8, 7, 7, 6, 7, 5, 1, 2,
3, 3, 3, 1, 3, 3, 1, 3, 1, 3,
1, 3, 1, 1, 1, 3, 3, 1, 3, 1,
3, 1, 3, 3, 1, 3, 3, 3, 3, 1,
1, 3, 3, 1, 3, 3, 1, 2, 1, 4,
3, 1, 1, 1, 3, 1, 3
};
#define yyerrok (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY)
#define YYEMPTY (-2)
#define YYEOF 0
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrorlab
#define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
/* Error token number */
#define YYTERROR 1
#define YYERRCODE 256
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
If N is 0, then set CURRENT to the empty location which ends
the previous symbol: RHS[0] (always defined). */
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N) \
do \
if (N) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (0)
#endif
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
/* Enable debugging if requested. */
#if YYDEBUG
# ifndef YYFPRINTF
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
# define YYFPRINTF fprintf
# endif
# define YYDPRINTF(Args) \
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (0)
/* YY_LOCATION_PRINT -- Print the location on the stream.
This macro was not mandated originally: define only if we know
we won't break user code: when these are the locations we know. */
#ifndef YY_LOCATION_PRINT
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
/* Print *YYLOCP on YYO. Private, do not rely on its existence. */
YY_ATTRIBUTE_UNUSED
static unsigned
yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
{
unsigned res = 0;
int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
if (0 <= yylocp->first_line)
{
res += YYFPRINTF (yyo, "%d", yylocp->first_line);
if (0 <= yylocp->first_column)
res += YYFPRINTF (yyo, ".%d", yylocp->first_column);
}
if (0 <= yylocp->last_line)
{
if (yylocp->first_line < yylocp->last_line)
{
res += YYFPRINTF (yyo, "-%d", yylocp->last_line);
if (0 <= end_col)
res += YYFPRINTF (yyo, ".%d", end_col);
}
else if (0 <= end_col && yylocp->first_column < end_col)
res += YYFPRINTF (yyo, "-%d", end_col);
}
return res;
}
# define YY_LOCATION_PRINT(File, Loc) \
yy_location_print_ (File, &(Loc))
# else
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
#endif
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
do { \
if (yydebug) \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \
Type, Value, Location); \
YYFPRINTF (stderr, "\n"); \
} \
} while (0)
/*----------------------------------------.
| Print this symbol's value on YYOUTPUT. |
`----------------------------------------*/
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
{
FILE *yyo = yyoutput;
YYUSE (yyo);
YYUSE (yylocationp);
if (!yyvaluep)
return;
# ifdef YYPRINT
if (yytype < YYNTOKENS)
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# endif
YYUSE (yytype);
}
/*--------------------------------.
| Print this symbol on YYOUTPUT. |
`--------------------------------*/
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
{
YYFPRINTF (yyoutput, "%s %s (",
yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
YY_LOCATION_PRINT (yyoutput, *yylocationp);
YYFPRINTF (yyoutput, ": ");
yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp);
YYFPRINTF (yyoutput, ")");
}
/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included). |
`------------------------------------------------------------------*/
static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
{
YYFPRINTF (stderr, "Stack now");
for (; yybottom <= yytop; yybottom++)
{
int yybot = *yybottom;
YYFPRINTF (stderr, " %d", yybot);
}
YYFPRINTF (stderr, "\n");
}
# define YY_STACK_PRINT(Bottom, Top) \
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (0)
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
static void