4068 lines
151 KiB
C
4068 lines
151 KiB
C
|
||
/* A Bison parser, made from objc-parse.y */
|
||
|
||
#define YYBISON 1 /* Identify Bison output. */
|
||
|
||
#define IDENTIFIER 258
|
||
#define TYPENAME 259
|
||
#define SCSPEC 260
|
||
#define TYPESPEC 261
|
||
#define TYPE_QUAL 262
|
||
#define CONSTANT 263
|
||
#define STRING 264
|
||
#define ELLIPSIS 265
|
||
#define SIZEOF 266
|
||
#define ENUM 267
|
||
#define STRUCT 268
|
||
#define UNION 269
|
||
#define IF 270
|
||
#define ELSE 271
|
||
#define WHILE 272
|
||
#define DO 273
|
||
#define FOR 274
|
||
#define SWITCH 275
|
||
#define CASE 276
|
||
#define DEFAULT 277
|
||
#define BREAK 278
|
||
#define CONTINUE 279
|
||
#define RETURN 280
|
||
#define GOTO 281
|
||
#define ASM_KEYWORD 282
|
||
#define TYPEOF 283
|
||
#define ALIGNOF 284
|
||
#define ALIGN 285
|
||
#define ATTRIBUTE 286
|
||
#define EXTENSION 287
|
||
#define LABEL 288
|
||
#define ASSIGN 289
|
||
#define OROR 290
|
||
#define ANDAND 291
|
||
#define EQCOMPARE 292
|
||
#define ARITHCOMPARE 293
|
||
#define LSHIFT 294
|
||
#define RSHIFT 295
|
||
#define UNARY 296
|
||
#define PLUSPLUS 297
|
||
#define MINUSMINUS 298
|
||
#define HYPERUNARY 299
|
||
#define POINTSAT 300
|
||
#define INTERFACE 301
|
||
#define IMPLEMENTATION 302
|
||
#define END 303
|
||
#define SELECTOR 304
|
||
#define DEFS 305
|
||
#define ENCODE 306
|
||
#define CLASSNAME 307
|
||
#define PUBLIC 308
|
||
|
||
#line 40 "objc-parse.y"
|
||
|
||
#include <stdio.h>
|
||
#include <errno.h>
|
||
#include <setjmp.h>
|
||
|
||
#include "config.h"
|
||
#include "tree.h"
|
||
#include "input.h"
|
||
#include "c-lex.h"
|
||
#include "c-tree.h"
|
||
#include "flags.h"
|
||
|
||
#include "objc-actions.h"
|
||
|
||
#ifndef errno
|
||
extern int errno;
|
||
#endif
|
||
|
||
void yyerror ();
|
||
|
||
/* Like YYERROR but do call yyerror. */
|
||
#define YYERROR1 { yyerror ("syntax error"); YYERROR; }
|
||
|
||
/* Cause the `yydebug' variable to be defined. */
|
||
#define YYDEBUG 1
|
||
|
||
#line 69 "objc-parse.y"
|
||
typedef union {long itype; tree ttype; enum tree_code code;
|
||
char *filename; int lineno; } YYSTYPE;
|
||
#line 182 "objc-parse.y"
|
||
|
||
/* Number of statements (loosely speaking) seen so far. */
|
||
static int stmt_count;
|
||
|
||
/* Input file and line number of the end of the body of last simple_if;
|
||
used by the stmt-rule immediately after simple_if returns. */
|
||
static char *if_stmt_file;
|
||
static int if_stmt_line;
|
||
|
||
/* List of types and structure classes of the current declaration. */
|
||
static tree current_declspecs;
|
||
|
||
/* Stack of saved values of current_declspecs. */
|
||
static tree declspec_stack;
|
||
|
||
/* 1 if we explained undeclared var errors. */
|
||
static int undeclared_variable_notice;
|
||
|
||
/* Objective-C specific information */
|
||
|
||
tree objc_interface_context;
|
||
tree objc_implementation_context;
|
||
tree objc_method_context;
|
||
tree objc_ivar_chain;
|
||
tree objc_ivar_context;
|
||
enum tree_code objc_inherit_code;
|
||
int objc_receiver_context;
|
||
int objc_public_flag;
|
||
|
||
/* Tell yyparse how to print a token's value, if yydebug is set. */
|
||
|
||
#define YYPRINT(FILE,YYCHAR,YYLVAL) yyprint(FILE,YYCHAR,YYLVAL)
|
||
extern void yyprint ();
|
||
|
||
#ifndef YYLTYPE
|
||
typedef
|
||
struct yyltype
|
||
{
|
||
int timestamp;
|
||
int first_line;
|
||
int first_column;
|
||
int last_line;
|
||
int last_column;
|
||
char *text;
|
||
}
|
||
yyltype;
|
||
|
||
#define YYLTYPE yyltype
|
||
#endif
|
||
|
||
#include <stdio.h>
|
||
|
||
#ifndef __STDC__
|
||
#define const
|
||
#endif
|
||
|
||
|
||
|
||
#define YYFINAL 797
|
||
#define YYFLAG -32768
|
||
#define YYNTBASE 76
|
||
|
||
#define YYTRANSLATE(x) ((unsigned)(x) <= 308 ? yytranslate[x] : 257)
|
||
|
||
static const char 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, 72, 2, 2, 2, 51, 42, 2, 58,
|
||
68, 49, 47, 73, 48, 57, 50, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 37, 69, 2,
|
||
35, 2, 36, 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,
|
||
59, 2, 75, 41, 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, 74, 40, 70, 71, 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, 38,
|
||
39, 43, 44, 45, 46, 52, 53, 54, 55, 56,
|
||
60, 61, 62, 63, 64, 65, 66, 67
|
||
};
|
||
|
||
static const short yyprhs[] = { 0,
|
||
0, 1, 3, 4, 7, 8, 12, 14, 16, 18,
|
||
24, 28, 33, 38, 41, 44, 47, 50, 52, 53,
|
||
54, 62, 67, 68, 69, 77, 82, 83, 84, 91,
|
||
95, 97, 99, 101, 103, 105, 107, 109, 111, 113,
|
||
115, 117, 118, 120, 122, 126, 128, 131, 132, 136,
|
||
139, 142, 145, 150, 153, 158, 160, 165, 173, 175,
|
||
179, 183, 187, 191, 195, 199, 203, 207, 211, 215,
|
||
219, 223, 227, 231, 237, 241, 245, 247, 249, 251,
|
||
255, 259, 260, 265, 270, 275, 279, 283, 286, 289,
|
||
291, 293, 295, 297, 300, 301, 303, 306, 310, 312,
|
||
314, 317, 320, 321, 326, 331, 335, 339, 342, 345,
|
||
348, 352, 353, 356, 359, 361, 363, 366, 369, 372,
|
||
376, 377, 380, 382, 384, 386, 388, 393, 398, 400,
|
||
402, 404, 406, 410, 412, 416, 417, 422, 423, 430,
|
||
434, 435, 442, 446, 447, 454, 456, 460, 462, 467,
|
||
476, 478, 481, 485, 490, 492, 494, 498, 503, 510,
|
||
514, 520, 521, 525, 526, 530, 532, 534, 538, 542,
|
||
547, 551, 555, 557, 561, 566, 570, 574, 576, 580,
|
||
584, 588, 593, 597, 599, 600, 607, 612, 615, 616,
|
||
623, 628, 631, 632, 640, 641, 648, 651, 652, 654,
|
||
655, 657, 659, 662, 663, 667, 670, 675, 679, 681,
|
||
685, 687, 689, 691, 695, 700, 707, 712, 714, 718,
|
||
720, 724, 727, 730, 731, 733, 735, 738, 739, 742,
|
||
746, 750, 753, 757, 762, 766, 769, 773, 776, 778,
|
||
781, 784, 785, 787, 790, 791, 792, 794, 796, 799,
|
||
803, 805, 808, 811, 818, 824, 830, 831, 838, 839,
|
||
840, 844, 846, 849, 850, 855, 857, 858, 859, 867,
|
||
868, 869, 879, 880, 881, 882, 895, 896, 903, 904,
|
||
910, 911, 919, 920, 925, 928, 931, 934, 938, 945,
|
||
954, 965, 978, 982, 987, 988, 993, 995, 996, 998,
|
||
999, 1001, 1002, 1004, 1006, 1010, 1015, 1017, 1021, 1022,
|
||
1025, 1026, 1029, 1032, 1035, 1038, 1041, 1044, 1045, 1047,
|
||
1051, 1053, 1057, 1060, 1063, 1066, 1069, 1072, 1074, 1078,
|
||
1080, 1082, 1084, 1085, 1086, 1096, 1097, 1103, 1104, 1105,
|
||
1117, 1118, 1126, 1127, 1134, 1137, 1138, 1147, 1152, 1153,
|
||
1162, 1168, 1169, 1174, 1176, 1177, 1181, 1184, 1188, 1192,
|
||
1194, 1195, 1197, 1201, 1203, 1207, 1210, 1211, 1212, 1213,
|
||
1221, 1222, 1223, 1224, 1232, 1233, 1234, 1237, 1239, 1241,
|
||
1244, 1245, 1249, 1251, 1253, 1254, 1255, 1261, 1262, 1263,
|
||
1269, 1274, 1276, 1282, 1285, 1286, 1289, 1290, 1292, 1294,
|
||
1296, 1299, 1302, 1307, 1310, 1313, 1315, 1319, 1321, 1323,
|
||
1325, 1326, 1329, 1330, 1334, 1336, 1338, 1341, 1343, 1345,
|
||
1347, 1349, 1351, 1353, 1355, 1357, 1359, 1361, 1363, 1365,
|
||
1367, 1369, 1371, 1373, 1375, 1377, 1379, 1381, 1383, 1385,
|
||
1387, 1389, 1396, 1400, 1406, 1409, 1411, 1413, 1415, 1418,
|
||
1420, 1424, 1427, 1429, 1431, 1432, 1433, 1440, 1442, 1444,
|
||
1446, 1449, 1452, 1454, 1459
|
||
};
|
||
|
||
static const short yyrhs[] = { -1,
|
||
77, 0, 0, 78, 80, 0, 0, 77, 79, 80,
|
||
0, 82, 0, 81, 0, 196, 0, 27, 58, 100,
|
||
68, 69, 0, 104, 114, 69, 0, 108, 104, 114,
|
||
69, 0, 106, 104, 113, 69, 0, 108, 69, 0,
|
||
106, 69, 0, 1, 69, 0, 1, 70, 0, 69,
|
||
0, 0, 0, 106, 104, 129, 83, 101, 84, 159,
|
||
0, 106, 104, 129, 1, 0, 0, 0, 108, 104,
|
||
132, 85, 101, 86, 159, 0, 108, 104, 132, 1,
|
||
0, 0, 0, 104, 132, 87, 101, 88, 159, 0,
|
||
104, 132, 1, 0, 3, 0, 4, 0, 66, 0,
|
||
42, 0, 48, 0, 47, 0, 53, 0, 54, 0,
|
||
71, 0, 72, 0, 93, 0, 0, 93, 0, 97,
|
||
0, 93, 73, 97, 0, 98, 0, 49, 96, 0,
|
||
0, 32, 95, 96, 0, 90, 96, 0, 39, 89,
|
||
0, 11, 94, 0, 11, 58, 147, 68, 0, 29,
|
||
94, 0, 29, 58, 147, 68, 0, 94, 0, 58,
|
||
147, 68, 96, 0, 58, 147, 68, 74, 124, 138,
|
||
70, 0, 96, 0, 97, 47, 97, 0, 97, 48,
|
||
97, 0, 97, 49, 97, 0, 97, 50, 97, 0,
|
||
97, 51, 97, 0, 97, 45, 97, 0, 97, 46,
|
||
97, 0, 97, 44, 97, 0, 97, 43, 97, 0,
|
||
97, 42, 97, 0, 97, 40, 97, 0, 97, 41,
|
||
97, 0, 97, 39, 97, 0, 97, 38, 97, 0,
|
||
97, 36, 181, 37, 97, 0, 97, 35, 97, 0,
|
||
97, 34, 97, 0, 3, 0, 8, 0, 100, 0,
|
||
58, 91, 68, 0, 58, 1, 68, 0, 0, 58,
|
||
99, 160, 68, 0, 98, 58, 92, 68, 0, 98,
|
||
59, 91, 75, 0, 98, 57, 89, 0, 98, 56,
|
||
89, 0, 98, 53, 0, 98, 54, 0, 249, 0,
|
||
255, 0, 256, 0, 9, 0, 100, 9, 0, 0,
|
||
103, 0, 103, 10, 0, 163, 164, 105, 0, 102,
|
||
0, 154, 0, 103, 102, 0, 102, 154, 0, 0,
|
||
106, 104, 113, 69, 0, 108, 104, 114, 69, 0,
|
||
106, 104, 125, 0, 108, 104, 127, 0, 106, 69,
|
||
0, 108, 69, 0, 111, 107, 0, 108, 111, 107,
|
||
0, 0, 107, 112, 0, 107, 5, 0, 7, 0,
|
||
5, 0, 108, 7, 0, 108, 5, 0, 111, 110,
|
||
0, 149, 111, 110, 0, 0, 110, 112, 0, 6,
|
||
0, 133, 0, 4, 0, 66, 0, 28, 58, 91,
|
||
68, 0, 28, 58, 147, 68, 0, 6, 0, 7,
|
||
0, 133, 0, 116, 0, 113, 73, 116, 0, 118,
|
||
0, 114, 73, 116, 0, 0, 27, 58, 100, 68,
|
||
0, 0, 129, 115, 120, 35, 117, 123, 0, 129,
|
||
115, 120, 0, 0, 132, 115, 120, 35, 119, 123,
|
||
0, 132, 115, 120, 0, 0, 31, 58, 58, 121,
|
||
68, 68, 0, 122, 0, 121, 73, 122, 0, 3,
|
||
0, 3, 58, 8, 68, 0, 3, 58, 3, 73,
|
||
8, 73, 8, 68, 0, 97, 0, 74, 70, 0,
|
||
74, 124, 70, 0, 74, 124, 73, 70, 0, 1,
|
||
0, 123, 0, 124, 73, 123, 0, 59, 97, 75,
|
||
123, 0, 124, 73, 21, 97, 37, 123, 0, 89,
|
||
37, 123, 0, 124, 73, 89, 37, 123, 0, 0,
|
||
129, 126, 160, 0, 0, 132, 128, 160, 0, 130,
|
||
0, 132, 0, 58, 130, 68, 0, 130, 58, 188,
|
||
0, 130, 59, 91, 75, 0, 130, 59, 75, 0,
|
||
49, 150, 130, 0, 4, 0, 131, 58, 188, 0,
|
||
131, 59, 91, 75, 0, 131, 59, 75, 0, 49,
|
||
150, 131, 0, 4, 0, 132, 58, 188, 0, 58,
|
||
132, 68, 0, 49, 150, 132, 0, 132, 59, 91,
|
||
75, 0, 132, 59, 75, 0, 3, 0, 0, 13,
|
||
89, 74, 134, 140, 70, 0, 13, 74, 140, 70,
|
||
0, 13, 89, 0, 0, 14, 89, 74, 135, 140,
|
||
70, 0, 14, 74, 140, 70, 0, 14, 89, 0,
|
||
0, 12, 89, 74, 136, 145, 139, 70, 0, 0,
|
||
12, 74, 137, 145, 139, 70, 0, 12, 89, 0,
|
||
0, 73, 0, 0, 73, 0, 141, 0, 141, 142,
|
||
0, 0, 141, 142, 69, 0, 141, 69, 0, 64,
|
||
58, 66, 68, 0, 109, 104, 143, 0, 109, 0,
|
||
149, 104, 143, 0, 149, 0, 1, 0, 144, 0,
|
||
143, 73, 144, 0, 163, 164, 129, 120, 0, 163,
|
||
164, 129, 37, 97, 120, 0, 163, 164, 37, 97,
|
||
0, 146, 0, 145, 73, 146, 0, 89, 0, 89,
|
||
35, 97, 0, 109, 148, 0, 149, 148, 0, 0,
|
||
151, 0, 7, 0, 149, 7, 0, 0, 150, 7,
|
||
0, 58, 151, 68, 0, 49, 150, 151, 0, 49,
|
||
150, 0, 151, 58, 186, 0, 151, 59, 91, 75,
|
||
0, 151, 59, 75, 0, 58, 186, 0, 59, 91,
|
||
75, 0, 59, 75, 0, 165, 0, 152, 165, 0,
|
||
152, 154, 0, 0, 152, 0, 1, 69, 0, 0,
|
||
0, 157, 0, 158, 0, 157, 158, 0, 33, 195,
|
||
69, 0, 160, 0, 1, 160, 0, 74, 70, 0,
|
||
74, 155, 156, 103, 153, 70, 0, 74, 155, 156,
|
||
1, 70, 0, 74, 155, 156, 152, 70, 0, 0,
|
||
15, 58, 91, 68, 162, 165, 0, 0, 0, 163,
|
||
164, 166, 0, 160, 0, 91, 69, 0, 0, 161,
|
||
16, 167, 165, 0, 161, 0, 0, 0, 17, 168,
|
||
58, 91, 68, 169, 165, 0, 0, 0, 18, 170,
|
||
165, 17, 171, 58, 91, 68, 69, 0, 0, 0,
|
||
0, 19, 58, 181, 69, 172, 181, 69, 173, 181,
|
||
68, 174, 165, 0, 0, 20, 58, 91, 68, 175,
|
||
165, 0, 0, 21, 91, 37, 176, 165, 0, 0,
|
||
21, 91, 10, 91, 37, 177, 165, 0, 0, 22,
|
||
37, 178, 165, 0, 23, 69, 0, 24, 69, 0,
|
||
25, 69, 0, 25, 91, 69, 0, 27, 180, 58,
|
||
100, 68, 69, 0, 27, 180, 58, 100, 37, 182,
|
||
68, 69, 0, 27, 180, 58, 100, 37, 182, 37,
|
||
182, 68, 69, 0, 27, 180, 58, 100, 37, 182,
|
||
37, 182, 37, 185, 68, 69, 0, 26, 89, 69,
|
||
0, 26, 49, 91, 69, 0, 0, 89, 37, 179,
|
||
165, 0, 69, 0, 0, 7, 0, 0, 91, 0,
|
||
0, 183, 0, 184, 0, 183, 73, 184, 0, 9,
|
||
58, 91, 68, 0, 100, 0, 185, 73, 100, 0,
|
||
0, 187, 191, 0, 0, 189, 190, 0, 192, 68,
|
||
0, 195, 68, 0, 1, 68, 0, 192, 68, 0,
|
||
1, 68, 0, 0, 193, 0, 193, 73, 10, 0,
|
||
194, 0, 193, 73, 194, 0, 106, 131, 0, 106,
|
||
132, 0, 106, 148, 0, 108, 132, 0, 108, 148,
|
||
0, 3, 0, 195, 73, 3, 0, 197, 0, 213,
|
||
0, 62, 0, 0, 0, 60, 89, 74, 198, 207,
|
||
70, 199, 220, 62, 0, 0, 60, 89, 200, 220,
|
||
62, 0, 0, 0, 60, 89, 37, 89, 74, 201,
|
||
207, 70, 202, 220, 62, 0, 0, 60, 89, 37,
|
||
89, 203, 220, 62, 0, 0, 61, 89, 74, 204,
|
||
207, 70, 0, 61, 89, 0, 0, 61, 89, 37,
|
||
89, 74, 205, 207, 70, 0, 61, 89, 37, 89,
|
||
0, 0, 60, 89, 58, 89, 68, 206, 220, 62,
|
||
0, 61, 89, 58, 89, 68, 0, 0, 209, 67,
|
||
208, 209, 0, 209, 0, 0, 209, 210, 69, 0,
|
||
209, 69, 0, 109, 104, 211, 0, 149, 104, 211,
|
||
0, 1, 0, 0, 212, 0, 211, 73, 212, 0,
|
||
129, 0, 129, 37, 97, 0, 37, 97, 0, 0,
|
||
0, 0, 47, 214, 230, 215, 231, 216, 159, 0,
|
||
0, 0, 0, 48, 217, 230, 218, 231, 219, 159,
|
||
0, 0, 0, 221, 222, 0, 225, 0, 81, 0,
|
||
222, 225, 0, 0, 222, 223, 81, 0, 69, 0,
|
||
1, 0, 0, 0, 47, 226, 230, 227, 224, 0,
|
||
0, 0, 48, 228, 230, 229, 224, 0, 58, 147,
|
||
68, 239, 0, 239, 0, 58, 147, 68, 240, 237,
|
||
0, 240, 237, 0, 0, 69, 232, 0, 0, 233,
|
||
0, 234, 0, 154, 0, 233, 234, 0, 234, 154,
|
||
0, 106, 104, 235, 69, 0, 106, 69, 0, 108,
|
||
69, 0, 236, 0, 235, 73, 236, 0, 131, 0,
|
||
132, 0, 148, 0, 0, 73, 10, 0, 0, 73,
|
||
238, 192, 0, 241, 0, 243, 0, 240, 243, 0,
|
||
3, 0, 4, 0, 242, 0, 12, 0, 13, 0,
|
||
14, 0, 15, 0, 16, 0, 17, 0, 18, 0,
|
||
19, 0, 20, 0, 21, 0, 22, 0, 23, 0,
|
||
24, 0, 25, 0, 26, 0, 27, 0, 11, 0,
|
||
28, 0, 29, 0, 6, 0, 7, 0, 241, 37,
|
||
58, 147, 68, 89, 0, 241, 37, 89, 0, 37,
|
||
58, 147, 68, 89, 0, 37, 89, 0, 241, 0,
|
||
245, 0, 247, 0, 245, 247, 0, 93, 0, 241,
|
||
37, 246, 0, 37, 246, 0, 91, 0, 66, 0,
|
||
0, 0, 59, 250, 248, 251, 244, 75, 0, 241,
|
||
0, 253, 0, 254, 0, 253, 254, 0, 241, 37,
|
||
0, 37, 0, 63, 58, 252, 68, 0, 65, 58,
|
||
147, 68, 0
|
||
};
|
||
|
||
#if YYDEBUG != 0
|
||
static const short yyrline[] = { 0,
|
||
218, 222, 230, 232, 232, 233, 235, 237, 238, 239,
|
||
246, 252, 254, 256, 258, 260, 261, 262, 267, 273,
|
||
275, 276, 278, 283, 285, 286, 288, 293, 295, 296,
|
||
300, 302, 303, 307, 309, 311, 313, 315, 317, 319,
|
||
323, 327, 330, 333, 336, 340, 342, 345, 348, 351,
|
||
354, 373, 378, 380, 382, 386, 388, 391, 405, 407,
|
||
409, 411, 413, 415, 417, 419, 421, 423, 425, 427,
|
||
429, 431, 433, 435, 437, 439, 443, 540, 541, 543,
|
||
549, 551, 564, 577, 579, 581, 593, 607, 609, 611,
|
||
613, 615, 620, 622, 626, 628, 629, 640, 645, 647,
|
||
648, 649, 656, 664, 669, 673, 677, 681, 683, 691,
|
||
694, 698, 700, 702, 710, 713, 715, 717, 726, 729,
|
||
733, 735, 743, 744, 745, 746, 748, 752, 760, 761,
|
||
762, 765, 767, 770, 772, 775, 778, 786, 791, 793,
|
||
799, 804, 806, 813, 816, 821, 823, 828, 832, 843,
|
||
857, 859, 863, 865, 867, 873, 876, 879, 881, 883,
|
||
885, 889, 906, 910, 927, 934, 936, 941, 944, 949,
|
||
951, 953, 955, 963, 969, 971, 973, 975, 981, 987,
|
||
989, 991, 993, 995, 998, 1003, 1007, 1010, 1012, 1014,
|
||
1016, 1019, 1021, 1024, 1027, 1030, 1033, 1037, 1039, 1042,
|
||
1044, 1048, 1051, 1056, 1058, 1060, 1064, 1077, 1083, 1088,
|
||
1093, 1098, 1102, 1104, 1108, 1112, 1116, 1125, 1127, 1132,
|
||
1135, 1139, 1142, 1146, 1149, 1152, 1155, 1159, 1162, 1166,
|
||
1170, 1172, 1174, 1176, 1178, 1180, 1182, 1184, 1192, 1194,
|
||
1195, 1198, 1200, 1203, 1206, 1218, 1220, 1225, 1227, 1230,
|
||
1247, 1250, 1253, 1255, 1260, 1265, 1273, 1282, 1284, 1288,
|
||
1292, 1297, 1300, 1305, 1310, 1313, 1318, 1323, 1328, 1329,
|
||
1335, 1337, 1342, 1349, 1353, 1359, 1365, 1374, 1376, 1401,
|
||
1401, 1430, 1430, 1446, 1446, 1451, 1456, 1460, 1464, 1470,
|
||
1478, 1486, 1494, 1505, 1509, 1517, 1517, 1522, 1527, 1533,
|
||
1536, 1541, 1543, 1546, 1548, 1552, 1557, 1560, 1566, 1570,
|
||
1577, 1581, 1586, 1588, 1590, 1594, 1596, 1602, 1604, 1606,
|
||
1610, 1613, 1619, 1622, 1624, 1626, 1628, 1633, 1636, 1643,
|
||
1645, 1646, 1659, 1666, 1671, 1677, 1684, 1690, 1696, 1701,
|
||
1707, 1714, 1720, 1726, 1732, 1740, 1746, 1752, 1760, 1767,
|
||
1773, 1782, 1784, 1784, 1787, 1792, 1793, 1810, 1816, 1821,
|
||
1825, 1828, 1829, 1832, 1840, 1846, 1855, 1864, 1870, 1874,
|
||
1879, 1887, 1893, 1897, 1907, 1909, 1910, 1912, 1914, 1915,
|
||
1916, 1917, 1919, 1921, 1924, 1930, 1935, 1935, 1940, 1944,
|
||
1946, 1952, 1957, 1962, 1971, 1973, 1979, 1981, 1984, 1986,
|
||
1987, 1988, 1991, 1994, 1996, 2000, 2003, 2010, 2013, 2015,
|
||
2019, 2024, 2029, 2034, 2041, 2045, 2048, 2054, 2056, 2057,
|
||
2060, 2062, 2063, 2064, 2065, 2066, 2067, 2068, 2069, 2070,
|
||
2071, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2079, 2080,
|
||
2080, 2083, 2089, 2094, 2099, 2105, 2107, 2110, 2112, 2119,
|
||
2131, 2136, 2142, 2144, 2150, 2154, 2155, 2161, 2163, 2166,
|
||
2168, 2174, 2179, 2185, 2194
|
||
};
|
||
|
||
static const char * const yytname[] = { "$","error","$illegal.","IDENTIFIER",
|
||
"TYPENAME","SCSPEC","TYPESPEC","TYPE_QUAL","CONSTANT","STRING","ELLIPSIS","SIZEOF",
|
||
"ENUM","STRUCT","UNION","IF","ELSE","WHILE","DO","FOR","SWITCH","CASE","DEFAULT",
|
||
"BREAK","CONTINUE","RETURN","GOTO","ASM_KEYWORD","TYPEOF","ALIGNOF","ALIGN",
|
||
"ATTRIBUTE","EXTENSION","LABEL","ASSIGN","'='","'?'","':'","OROR","ANDAND","'|'",
|
||
"'^'","'&'","EQCOMPARE","ARITHCOMPARE","LSHIFT","RSHIFT","'+'","'-'","'*'","'/'",
|
||
"'%'","UNARY","PLUSPLUS","MINUSMINUS","HYPERUNARY","POINTSAT","'.'","'('","'['",
|
||
"INTERFACE","IMPLEMENTATION","END","SELECTOR","DEFS","ENCODE","CLASSNAME","PUBLIC",
|
||
"')'","';'","'}'","'~'","'!'","','","'{'","']'","program","extdefs","@1","@2",
|
||
"extdef","datadef","fndef","@3","@4","@5","@6","@7","@8","identifier","unop",
|
||
"expr","exprlist","nonnull_exprlist","unary_expr","@9","cast_expr","expr_no_commas",
|
||
"primary","@10","string","xdecls","lineno_decl","decls","setspecs","decl","typed_declspecs",
|
||
"reserved_declspecs","declmods","typed_typespecs","reserved_typespecquals","typespec",
|
||
"typespecqual_reserved","initdecls","notype_initdecls","maybeasm","initdcl",
|
||
"@11","notype_initdcl","@12","maybe_attribute","attribute_list","attrib","init",
|
||
"initlist","nested_function","@13","notype_nested_function","@14","declarator",
|
||
"after_type_declarator","parm_declarator","notype_declarator","structsp","@15",
|
||
"@16","@17","@18","maybecomma","maybecomma_warn","component_decl_list","component_decl_list2",
|
||
"component_decl","components","component_declarator","enumlist","enumerator",
|
||
"typename","absdcl","nonempty_type_quals","type_quals","absdcl1","stmts","xstmts",
|
||
"errstmt","pushlevel","maybe_label_decls","label_decls","label_decl","compstmt_or_error",
|
||
"compstmt","simple_if","@19","save_filename","save_lineno","lineno_stmt","stmt",
|
||
"@20","@21","@22","@23","@24","@25","@26","@27","@28","@29","@30","@31","@32",
|
||
"maybe_type_qual","xexpr","asm_operands","nonnull_asm_operands","asm_operand",
|
||
"asm_clobbers","parmlist","@33","parmlist_or_identifiers","@34","parmlist_or_identifiers_1",
|
||
"parmlist_1","parmlist_2","parms","parm","identifiers","objcdef","classdef",
|
||
"@35","@36","@37","@38","@39","@40","@41","@42","@43","ivar_decl_list","@44",
|
||
"ivar_decls","ivar_decl","ivars","ivar_declarator","methoddef","@45","@46","@47",
|
||
"@48","@49","@50","methodprotolist","@51","methodprotolist2","@52","semi_or_error",
|
||
"methodproto","@53","@54","@55","@56","methoddecl","optarglist","myxdecls","mydecls",
|
||
"mydecl","myparms","myparm","optparmlist","@57","unaryselector","keywordselector",
|
||
"selector","reservedwords","keyworddecl","messageargs","keywordarglist","keywordexpr",
|
||
"keywordarg","receiver","objcmessageexpr","@58","@59","selectorarg","keywordnamelist",
|
||
"keywordname","objcselectorexpr","objcencodeexpr",""
|
||
};
|
||
#endif
|
||
|
||
static const short yyr1[] = { 0,
|
||
76, 76, 78, 77, 79, 77, 80, 80, 80, 80,
|
||
81, 81, 81, 81, 81, 81, 81, 81, 83, 84,
|
||
82, 82, 85, 86, 82, 82, 87, 88, 82, 82,
|
||
89, 89, 89, 90, 90, 90, 90, 90, 90, 90,
|
||
91, 92, 92, 93, 93, 94, 94, 95, 94, 94,
|
||
94, 94, 94, 94, 94, 96, 96, 96, 97, 97,
|
||
97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
|
||
97, 97, 97, 97, 97, 97, 98, 98, 98, 98,
|
||
98, 99, 98, 98, 98, 98, 98, 98, 98, 98,
|
||
98, 98, 100, 100, 101, 101, 101, 102, 103, 103,
|
||
103, 103, 104, 105, 105, 105, 105, 105, 105, 106,
|
||
106, 107, 107, 107, 108, 108, 108, 108, 109, 109,
|
||
110, 110, 111, 111, 111, 111, 111, 111, 112, 112,
|
||
112, 113, 113, 114, 114, 115, 115, 117, 116, 116,
|
||
119, 118, 118, 120, 120, 121, 121, 122, 122, 122,
|
||
123, 123, 123, 123, 123, 124, 124, 124, 124, 124,
|
||
124, 126, 125, 128, 127, 129, 129, 130, 130, 130,
|
||
130, 130, 130, 131, 131, 131, 131, 131, 132, 132,
|
||
132, 132, 132, 132, 134, 133, 133, 133, 135, 133,
|
||
133, 133, 136, 133, 137, 133, 133, 138, 138, 139,
|
||
139, 140, 140, 141, 141, 141, 141, 142, 142, 142,
|
||
142, 142, 143, 143, 144, 144, 144, 145, 145, 146,
|
||
146, 147, 147, 148, 148, 149, 149, 150, 150, 151,
|
||
151, 151, 151, 151, 151, 151, 151, 151, 152, 152,
|
||
152, 153, 153, 154, 155, 156, 156, 157, 157, 158,
|
||
159, 159, 160, 160, 160, 160, 162, 161, 163, 164,
|
||
165, 166, 166, 167, 166, 166, 168, 169, 166, 170,
|
||
171, 166, 172, 173, 174, 166, 175, 166, 176, 166,
|
||
177, 166, 178, 166, 166, 166, 166, 166, 166, 166,
|
||
166, 166, 166, 166, 179, 166, 166, 180, 180, 181,
|
||
181, 182, 182, 183, 183, 184, 185, 185, 187, 186,
|
||
189, 188, 190, 190, 190, 191, 191, 192, 192, 192,
|
||
193, 193, 194, 194, 194, 194, 194, 195, 195, 196,
|
||
196, 196, 198, 199, 197, 200, 197, 201, 202, 197,
|
||
203, 197, 204, 197, 197, 205, 197, 197, 206, 197,
|
||
197, 208, 207, 207, 209, 209, 209, 210, 210, 210,
|
||
211, 211, 211, 212, 212, 212, 214, 215, 216, 213,
|
||
217, 218, 219, 213, 220, 221, 220, 222, 222, 222,
|
||
223, 222, 224, 224, 226, 227, 225, 228, 229, 225,
|
||
230, 230, 230, 230, 231, 231, 232, 232, 233, 233,
|
||
233, 233, 234, 234, 234, 235, 235, 236, 236, 236,
|
||
237, 237, 238, 237, 239, 240, 240, 241, 241, 241,
|
||
242, 242, 242, 242, 242, 242, 242, 242, 242, 242,
|
||
242, 242, 242, 242, 242, 242, 242, 242, 242, 242,
|
||
242, 243, 243, 243, 243, 244, 244, 245, 245, 246,
|
||
247, 247, 248, 248, 250, 251, 249, 252, 252, 253,
|
||
253, 254, 254, 255, 256
|
||
};
|
||
|
||
static const short yyr2[] = { 0,
|
||
0, 1, 0, 2, 0, 3, 1, 1, 1, 5,
|
||
3, 4, 4, 2, 2, 2, 2, 1, 0, 0,
|
||
7, 4, 0, 0, 7, 4, 0, 0, 6, 3,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 0, 1, 1, 3, 1, 2, 0, 3, 2,
|
||
2, 2, 4, 2, 4, 1, 4, 7, 1, 3,
|
||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||
3, 3, 3, 5, 3, 3, 1, 1, 1, 3,
|
||
3, 0, 4, 4, 4, 3, 3, 2, 2, 1,
|
||
1, 1, 1, 2, 0, 1, 2, 3, 1, 1,
|
||
2, 2, 0, 4, 4, 3, 3, 2, 2, 2,
|
||
3, 0, 2, 2, 1, 1, 2, 2, 2, 3,
|
||
0, 2, 1, 1, 1, 1, 4, 4, 1, 1,
|
||
1, 1, 3, 1, 3, 0, 4, 0, 6, 3,
|
||
0, 6, 3, 0, 6, 1, 3, 1, 4, 8,
|
||
1, 2, 3, 4, 1, 1, 3, 4, 6, 3,
|
||
5, 0, 3, 0, 3, 1, 1, 3, 3, 4,
|
||
3, 3, 1, 3, 4, 3, 3, 1, 3, 3,
|
||
3, 4, 3, 1, 0, 6, 4, 2, 0, 6,
|
||
4, 2, 0, 7, 0, 6, 2, 0, 1, 0,
|
||
1, 1, 2, 0, 3, 2, 4, 3, 1, 3,
|
||
1, 1, 1, 3, 4, 6, 4, 1, 3, 1,
|
||
3, 2, 2, 0, 1, 1, 2, 0, 2, 3,
|
||
3, 2, 3, 4, 3, 2, 3, 2, 1, 2,
|
||
2, 0, 1, 2, 0, 0, 1, 1, 2, 3,
|
||
1, 2, 2, 6, 5, 5, 0, 6, 0, 0,
|
||
3, 1, 2, 0, 4, 1, 0, 0, 7, 0,
|
||
0, 9, 0, 0, 0, 12, 0, 6, 0, 5,
|
||
0, 7, 0, 4, 2, 2, 2, 3, 6, 8,
|
||
10, 12, 3, 4, 0, 4, 1, 0, 1, 0,
|
||
1, 0, 1, 1, 3, 4, 1, 3, 0, 2,
|
||
0, 2, 2, 2, 2, 2, 2, 0, 1, 3,
|
||
1, 3, 2, 2, 2, 2, 2, 1, 3, 1,
|
||
1, 1, 0, 0, 9, 0, 5, 0, 0, 11,
|
||
0, 7, 0, 6, 2, 0, 8, 4, 0, 8,
|
||
5, 0, 4, 1, 0, 3, 2, 3, 3, 1,
|
||
0, 1, 3, 1, 3, 2, 0, 0, 0, 7,
|
||
0, 0, 0, 7, 0, 0, 2, 1, 1, 2,
|
||
0, 3, 1, 1, 0, 0, 5, 0, 0, 5,
|
||
4, 1, 5, 2, 0, 2, 0, 1, 1, 1,
|
||
2, 2, 4, 2, 2, 1, 3, 1, 1, 1,
|
||
0, 2, 0, 3, 1, 1, 2, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 6, 3, 5, 2, 1, 1, 1, 2, 1,
|
||
3, 2, 1, 1, 0, 0, 6, 1, 1, 1,
|
||
2, 2, 1, 4, 4
|
||
};
|
||
|
||
static const short yydefact[] = { 3,
|
||
5, 0, 0, 0, 125, 116, 123, 115, 0, 0,
|
||
0, 0, 0, 367, 371, 0, 0, 332, 126, 18,
|
||
4, 8, 7, 0, 103, 103, 112, 124, 9, 330,
|
||
331, 6, 16, 17, 31, 32, 33, 195, 197, 204,
|
||
188, 204, 192, 0, 0, 0, 0, 336, 345, 184,
|
||
228, 0, 0, 134, 0, 15, 0, 118, 117, 14,
|
||
0, 112, 110, 0, 193, 0, 0, 0, 185, 0,
|
||
189, 93, 0, 77, 226, 78, 0, 0, 48, 0,
|
||
34, 36, 35, 0, 37, 38, 0, 455, 0, 0,
|
||
39, 40, 0, 0, 41, 56, 59, 44, 46, 79,
|
||
224, 121, 0, 224, 90, 91, 92, 418, 419, 440,
|
||
441, 437, 421, 422, 423, 424, 425, 426, 427, 428,
|
||
429, 430, 431, 432, 433, 434, 435, 436, 438, 439,
|
||
0, 0, 368, 392, 411, 415, 420, 416, 372, 0,
|
||
0, 333, 376, 0, 0, 343, 0, 0, 11, 0,
|
||
30, 0, 311, 0, 0, 144, 173, 228, 0, 0,
|
||
132, 0, 166, 167, 0, 0, 111, 114, 129, 130,
|
||
113, 131, 220, 200, 218, 0, 0, 187, 212, 206,
|
||
103, 203, 103, 204, 191, 204, 94, 0, 0, 52,
|
||
0, 54, 0, 51, 47, 0, 0, 0, 0, 0,
|
||
0, 0, 50, 127, 0, 0, 0, 300, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 88, 89, 0, 0, 42, 0, 228, 309,
|
||
0, 222, 225, 119, 128, 227, 121, 223, 0, 445,
|
||
0, 395, 413, 394, 0, 417, 0, 395, 341, 0,
|
||
355, 0, 0, 348, 0, 355, 229, 181, 180, 135,
|
||
136, 0, 179, 0, 183, 0, 0, 28, 0, 259,
|
||
100, 260, 0, 143, 0, 0, 13, 0, 22, 0,
|
||
144, 311, 0, 12, 26, 0, 0, 201, 0, 200,
|
||
0, 259, 205, 259, 0, 0, 10, 0, 0, 49,
|
||
81, 80, 245, 0, 0, 454, 453, 456, 463, 458,
|
||
0, 459, 460, 0, 45, 76, 75, 301, 0, 73,
|
||
72, 70, 71, 69, 68, 67, 65, 66, 60, 61,
|
||
62, 63, 64, 87, 86, 0, 43, 0, 232, 0,
|
||
236, 0, 238, 0, 309, 0, 122, 120, 0, 0,
|
||
0, 369, 412, 318, 0, 443, 373, 338, 376, 349,
|
||
0, 0, 337, 385, 388, 379, 0, 103, 103, 381,
|
||
378, 346, 351, 0, 0, 0, 328, 224, 224, 312,
|
||
0, 319, 321, 0, 182, 244, 0, 102, 97, 101,
|
||
0, 0, 141, 172, 168, 133, 20, 140, 169, 171,
|
||
0, 24, 221, 219, 196, 0, 207, 208, 213, 260,
|
||
210, 186, 190, 53, 55, 253, 246, 83, 0, 57,
|
||
0, 462, 464, 0, 461, 465, 0, 84, 85, 231,
|
||
230, 0, 310, 0, 237, 233, 235, 0, 0, 391,
|
||
411, 103, 0, 400, 396, 398, 0, 0, 414, 0,
|
||
0, 355, 0, 376, 334, 360, 352, 357, 103, 103,
|
||
0, 0, 0, 136, 0, 0, 0, 380, 355, 344,
|
||
137, 315, 178, 228, 309, 323, 324, 325, 228, 326,
|
||
327, 313, 0, 314, 0, 0, 29, 251, 98, 103,
|
||
103, 0, 0, 0, 138, 170, 0, 194, 259, 0,
|
||
0, 0, 247, 248, 155, 77, 455, 0, 0, 151,
|
||
156, 198, 0, 446, 0, 447, 448, 74, 317, 316,
|
||
234, 444, 393, 404, 224, 405, 401, 402, 370, 0,
|
||
374, 0, 342, 0, 376, 355, 361, 361, 356, 386,
|
||
389, 382, 0, 232, 311, 0, 232, 320, 322, 329,
|
||
252, 108, 0, 109, 0, 148, 0, 146, 142, 21,
|
||
0, 25, 214, 0, 144, 0, 0, 259, 0, 260,
|
||
239, 249, 0, 152, 0, 0, 0, 0, 450, 452,
|
||
0, 457, 0, 449, 408, 409, 410, 0, 406, 442,
|
||
339, 350, 0, 0, 0, 364, 358, 362, 359, 0,
|
||
0, 347, 177, 174, 176, 0, 0, 106, 136, 0,
|
||
107, 136, 0, 0, 0, 139, 217, 0, 215, 250,
|
||
255, 0, 0, 256, 241, 260, 240, 0, 0, 153,
|
||
0, 160, 0, 0, 157, 58, 451, 403, 224, 376,
|
||
335, 366, 0, 0, 384, 383, 387, 390, 175, 104,
|
||
0, 105, 0, 0, 0, 145, 147, 144, 254, 0,
|
||
125, 0, 267, 270, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 298, 126, 297, 0, 0, 262, 266, 261,
|
||
158, 154, 0, 0, 407, 0, 365, 363, 163, 165,
|
||
0, 149, 216, 0, 0, 259, 300, 0, 0, 283,
|
||
285, 286, 287, 0, 0, 0, 299, 0, 295, 263,
|
||
264, 0, 161, 340, 0, 0, 0, 0, 0, 0,
|
||
0, 279, 259, 288, 0, 293, 0, 259, 259, 159,
|
||
0, 257, 0, 271, 273, 277, 0, 259, 284, 294,
|
||
0, 296, 265, 0, 259, 268, 0, 300, 259, 281,
|
||
280, 302, 0, 150, 258, 259, 0, 0, 278, 259,
|
||
0, 0, 303, 304, 289, 269, 0, 274, 282, 0,
|
||
302, 0, 0, 0, 300, 0, 0, 290, 305, 272,
|
||
0, 306, 0, 0, 275, 307, 0, 291, 259, 0,
|
||
0, 276, 292, 308, 0, 0, 0
|
||
};
|
||
|
||
static const short yydefgoto[] = { 795,
|
||
1, 2, 3, 21, 22, 23, 280, 494, 286, 497,
|
||
155, 387, 173, 93, 318, 336, 95, 96, 193, 97,
|
||
98, 99, 198, 100, 268, 269, 270, 24, 489, 378,
|
||
63, 379, 101, 234, 27, 171, 160, 53, 156, 161,
|
||
561, 54, 493, 274, 557, 558, 511, 512, 608, 651,
|
||
611, 653, 261, 163, 585, 164, 28, 184, 186, 176,
|
||
64, 578, 289, 67, 68, 182, 408, 409, 174, 175,
|
||
103, 587, 104, 147, 233, 569, 623, 271, 417, 502,
|
||
503, 504, 487, 488, 679, 745, 626, 391, 571, 680,
|
||
729, 695, 756, 696, 747, 748, 775, 789, 749, 738,
|
||
760, 723, 728, 708, 319, 762, 763, 764, 787, 341,
|
||
342, 263, 264, 380, 433, 381, 382, 383, 384, 29,
|
||
30, 251, 535, 143, 452, 640, 359, 256, 469, 454,
|
||
361, 536, 362, 461, 597, 598, 31, 46, 242, 448,
|
||
47, 248, 451, 252, 253, 370, 467, 647, 371, 462,
|
||
600, 463, 601, 133, 352, 445, 446, 447, 588, 589,
|
||
244, 354, 134, 135, 136, 137, 138, 515, 516, 580,
|
||
517, 308, 105, 200, 421, 311, 312, 313, 106, 107
|
||
};
|
||
|
||
static const short yypact[] = { 62,
|
||
96, 2160, 2160, 191,-32768,-32768,-32768,-32768, 84, 97,
|
||
173, 46, 72,-32768,-32768, 52, 52,-32768,-32768,-32768,
|
||
-32768,-32768,-32768, 134, 85, 635,-32768,-32768,-32768,-32768,
|
||
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 91, 56,
|
||
113, 56, 124, 217, 1878, 2302, 2302, 159, 179,-32768,
|
||
-32768, 134, 16,-32768, 1336,-32768, 267,-32768,-32768,-32768,
|
||
134,-32768, 507, 52,-32768, 151, 172, 541,-32768, 188,
|
||
-32768,-32768, 51,-32768,-32768,-32768, 2001, 2036,-32768, 52,
|
||
-32768,-32768,-32768, 2071,-32768,-32768, 1039,-32768, 219, 239,
|
||
-32768,-32768, 2071, 237, 261,-32768,-32768, 2465, 542, 327,
|
||
328,-32768, 291, 408,-32768,-32768,-32768,-32768,-32768,-32768,
|
||
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
||
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
||
139, 1135,-32768,-32768, 1851, 324,-32768,-32768,-32768, 52,
|
||
52,-32768, 304, 52, 52,-32768, 187, 330,-32768, 267,
|
||
-32768, 320,-32768, 1476, 66, 352,-32768,-32768, 267, 154,
|
||
-32768, 1440, 264, 326, 200, 1407, 507,-32768,-32768,-32768,
|
||
-32768,-32768, 355, 334,-32768, 52, 350,-32768,-32768,-32768,
|
||
424, 331, 523, 56,-32768, 56,-32768, 354, 1039,-32768,
|
||
1039,-32768, 2071,-32768,-32768, 363, 374, 371, 383, 1931,
|
||
2371, 1135,-32768,-32768, 2071, 2071, 2071, 2071, 2071, 2071,
|
||
2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
|
||
2071, 2071,-32768,-32768, 52, 52, 2071, 2071,-32768, 328,
|
||
1529,-32768, 440, 561,-32768,-32768,-32768,-32768, 1135,-32768,
|
||
386, 368, 449,-32768, 324,-32768, 166, 368, 395, 407,
|
||
-32768, 415, 2227, 410, 427,-32768,-32768, 326,-32768,-32768,
|
||
462, 217,-32768, 1488,-32768, 426, 435,-32768, 751, 49,
|
||
-32768,-32768, 457, 488, 207, 351,-32768, 267,-32768, 66,
|
||
352,-32768, 1564,-32768,-32768, 66, 2071, 52, 437, 334,
|
||
460,-32768,-32768,-32768, 461, 468,-32768, 475, 478,-32768,
|
||
-32768,-32768, 487, 492, 677,-32768,-32768,-32768,-32768, 524,
|
||
497, 2371,-32768, 511, 2465, 2465, 2465,-32768, 535, 1854,
|
||
1382, 2108, 1413, 1908, 2166, 2148, 609, 609, 292, 292,
|
||
-32768,-32768,-32768,-32768,-32768, 512, 261, 506, 243, 397,
|
||
-32768, 325,-32768, 515,-32768, 1599,-32768, 561, 514, 2398,
|
||
101,-32768,-32768, 434, 1135,-32768,-32768,-32768, 304,-32768,
|
||
516, 1207,-32768,-32768,-32768,-32768, 134, 85, 635, 271,
|
||
-32768,-32768,-32768, 521, 54, 537,-32768, 369, 2245,-32768,
|
||
538, 539,-32768, -7,-32768,-32768, 53,-32768,-32768,-32768,
|
||
434, 557,-32768, 264,-32768,-32768,-32768, 581,-32768,-32768,
|
||
544,-32768, 2465,-32768,-32768, 553,-32768, 558,-32768,-32768,
|
||
558,-32768,-32768,-32768,-32768,-32768, 602,-32768, 555,-32768,
|
||
2425,-32768,-32768, 524,-32768,-32768, 2071,-32768,-32768, 440,
|
||
-32768, 569,-32768, 570,-32768,-32768,-32768, 568, 52,-32768,
|
||
1851, 575, 663,-32768,-32768, 434, 504, 53,-32768, 582,
|
||
53,-32768, 590, 304,-32768,-32768,-32768,-32768,-32768, 1279,
|
||
584, 2302, 2302, 240, 267, 134, 2178,-32768,-32768,-32768,
|
||
-32768,-32768,-32768,-32768, 163, 467, 326,-32768,-32768, 326,
|
||
-32768,-32768, 1123,-32768, 658, 371,-32768,-32768,-32768, 596,
|
||
1052, 668, 1327, 53,-32768,-32768, 53,-32768,-32768, 343,
|
||
669, 823, 602,-32768,-32768, 636, 2071, 1255, 642, 2465,
|
||
-32768, 608, 2071, 645, 614, 2425,-32768, 2481,-32768,-32768,
|
||
-32768,-32768,-32768,-32768, 369,-32768,-32768,-32768,-32768, 52,
|
||
-32768, 620,-32768, 622, 304,-32768, 421, 421,-32768,-32768,
|
||
-32768,-32768, 623, 345,-32768, 1634, 347,-32768,-32768,-32768,
|
||
-32768,-32768, 267,-32768, 134, 634, -4,-32768,-32768,-32768,
|
||
1327,-32768,-32768, 2071, 263, 298, 464, 624, 895,-32768,
|
||
-32768,-32768, 2306,-32768, 116, 1327, 1111, 625, 261,-32768,
|
||
2071,-32768, 645,-32768, 467, 326,-32768, 357,-32768,-32768,
|
||
-32768,-32768, 637, 2134, 2071, 659, 630,-32768, 630, 40,
|
||
40,-32768, 467,-32768,-32768, 632, 414,-32768, 59, 417,
|
||
-32768, 24, 222, 629, 668,-32768, 2465, 2071,-32768,-32768,
|
||
-32768, 967, 638,-32768,-32768,-32768,-32768, 1707, 1327,-32768,
|
||
1183,-32768, 2071, 673,-32768,-32768,-32768,-32768, 369, 304,
|
||
-32768, 2465, 2071, 421,-32768,-32768,-32768,-32768,-32768,-32768,
|
||
371,-32768, 371, 640, 643,-32768,-32768, 2429,-32768, 1779,
|
||
678, 647,-32768,-32768, 660, 662, 2071, 680, 652, 653,
|
||
1966, 197, 716, 691,-32768, 696, 665,-32768, 721,-32768,
|
||
-32768,-32768, 2447, 1327,-32768, 676, 2465,-32768,-32768,-32768,
|
||
733,-32768,-32768, 2071, 685,-32768, 2071, 2071, 80,-32768,
|
||
-32768,-32768,-32768, 675, 2071, 681,-32768, 687,-32768,-32768,
|
||
-32768, 1327,-32768,-32768, 694, 714, 2071, 729, 715, 717,
|
||
2071,-32768,-32768,-32768, 718,-32768, 217,-32768,-32768,-32768,
|
||
778,-32768, 720,-32768,-32768,-32768, 752,-32768,-32768,-32768,
|
||
44,-32768,-32768, 723,-32768,-32768, 734, 2071,-32768,-32768,
|
||
-32768, 785, 726,-32768,-32768,-32768, 2071, 727,-32768,-32768,
|
||
739, 31, 728,-32768,-32768,-32768, 735,-32768,-32768, 2071,
|
||
785, 737, 785, 738, 2071, 740, 136,-32768,-32768,-32768,
|
||
743,-32768, 217, 744,-32768, 327, 170,-32768,-32768, 746,
|
||
217,-32768,-32768, 327, 802, 812,-32768
|
||
};
|
||
|
||
static const short yypgoto[] = {-32768,
|
||
-32768,-32768,-32768, 815, -215,-32768,-32768,-32768,-32768,-32768,
|
||
-32768,-32768, -6,-32768, -43,-32768, -207, 472,-32768, -41,
|
||
69,-32768,-32768, -44, 41, -248, 317, 1,-32768, 4,
|
||
771, 6, -55, 616, -11, -189, 286, -49, -145, -110,
|
||
-32768,-32768,-32768, -256,-32768, 241, -416, 346,-32768,-32768,
|
||
-32768,-32768, -56, -111, -336, -3, -31,-32768,-32768,-32768,
|
||
-32768,-32768, 567, -5,-32768,-32768, 564, 360, 684, 573,
|
||
-40, -65, -54, -134, -165, 295,-32768, -241,-32768,-32768,
|
||
-32768, 361, -86, -175,-32768,-32768, -139, -377, -494,-32768,
|
||
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
||
-32768,-32768,-32768,-32768, -651, 95,-32768, 94,-32768, 528,
|
||
-32768, -252,-32768,-32768,-32768, -251,-32768, 385, 373,-32768,
|
||
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
||
-221,-32768, 333,-32768, 337, 234,-32768,-32768,-32768,-32768,
|
||
-32768,-32768,-32768, -328,-32768,-32768,-32768, 278, 510,-32768,
|
||
-32768,-32768,-32768, -28, 639,-32768,-32768, 438,-32768, 244,
|
||
444,-32768, 540, 543, -117,-32768, -106,-32768,-32768, 310,
|
||
384,-32768,-32768,-32768,-32768,-32768,-32768, 589,-32768,-32768
|
||
};
|
||
|
||
|
||
#define YYLAST 2532
|
||
|
||
|
||
static const short yytable[] = { 73,
|
||
162, 94, 39, 41, 43, 25, 25, 26, 26, 48,
|
||
49, 165, 181, 183, 62, 272, 281, 245, 139, 337,
|
||
55, 390, 304, 275, 398, 57, 61, 388, 246, 399,
|
||
453, 172, 500, 102, 374, 232, 70, 366, 238, 260,
|
||
645, 476, 195, 197, 347, 719, 199, 276, 148, -96,
|
||
152, 203, 187, 486, 35, 36, 102, 166, 389, 187,
|
||
484, -1, 187, 614, 340, 485, 267, 771, 615, -259,
|
||
-259, -259, -259, 194, 627, 102, 559, -259, -259, -259,
|
||
752, 153, 154, 310, 149, 152, 35, 36, 150, 721,
|
||
434, 241, 237, -259, 339, -2, 758, -164, 772, 35,
|
||
36, 267, 449, 44, 5, 6, 7, 8, 646, 444,
|
||
266, 753, 9, 10, 11, 281, 722, 37, 188, 66,
|
||
102, 471, -96, 781, 240, 534, 303, 627, 13, 45,
|
||
272, -259, -162, 249, 250, 172, 50, 254, 255, -95,
|
||
272, 35, 36, 258, 616, 197, 272, 197, 298, 37,
|
||
299, 300, 410, 56, 410, 148, 307, 38, 347, 632,
|
||
635, 314, 37, 394, 65, 50, 19, 396, 35, 36,
|
||
40, 237, 783, 430, -397, 35, 36, 102, 295, 102,
|
||
296, 292, 51, 294, 338, 630, 69, 344, 631, 50,
|
||
102, 52, 628, 257, 424, 140, 239, 71, 349, 35,
|
||
36, 718, 172, 784, 37, 528, 593, 603, 177, 50,
|
||
157, 479, 681, 257, 635, 144, 141, 375, 334, 335,
|
||
475, 231, 277, 355, 654, 72, 278, 102, 739, 655,
|
||
532, 37, 142, 742, 743, 51, 145, 790, 37, 401,
|
||
356, 178, 791, 751, 52, 705, 42, 543, 660, 257,
|
||
755, 542, 146, 367, 759, 158, 368, 185, 369, 33,
|
||
34, 766, 37, 420, 159, 769, 152, 713, 284, 50,
|
||
157, 258, 150, 315, 316, 317, 201, 320, 321, 322,
|
||
323, 324, 325, 326, 327, 328, 329, 330, 331, 332,
|
||
333, 229, 604, 273, 792, 730, 202, 153, 154, 618,
|
||
230, 231, 438, 514, 204, 579, 459, 460, 619, 340,
|
||
551, 686, 478, 481, 450, 158, 172, 364, 365, 390,
|
||
397, 282, 283, 245, 159, 432, 402, 625, 5, 6,
|
||
7, 8, -377, 205, 246, 187, 9, 10, 11, 544,
|
||
220, 221, 222, 102, 547, 50, 157, 50, 473, 50,
|
||
102, 257, 13, 257, 442, 403, 443, 62, 235, 410,
|
||
247, 529, 570, 464, 531, -375, 620, 62, 465, 466,
|
||
485, 50, 473, 579, 477, 480, 229, 262, 430, 564,
|
||
625, 430, 273, 153, 154, 230, 231, 153, 154, 287,
|
||
19, 158, -318, 474, 490, 479, 491, 259, 583, 293,
|
||
159, 693, 475, 231, 475, 231, 288, 560, 282, 283,
|
||
562, 5, 509, 7, 236, 291, 165, 474, 395, 9,
|
||
10, 11, 297, 50, 157, 638, 475, 231, 570, 639,
|
||
301, 62, 522, 540, 541, 13, 351, 5, 6, 7,
|
||
8, 302, 525, 565, 303, 9, 10, 11, 237, 442,
|
||
305, 443, 678, 350, 345, 346, 229, 595, 353, 537,
|
||
538, 13, 464, 281, 431, 230, 231, 367, 358, 158,
|
||
368, 148, 369, 19, 360, 689, 363, 690, 159, 62,
|
||
596, 596, 650, 372, 678, 652, 278, 510, 152, 150,
|
||
553, 555, -209, -209, 373, 518, 609, 345, 346, 19,
|
||
385, 509, 606, 386, 267, 610, 405, -399, -399, -399,
|
||
-399, 168, 169, 170, 392, -399, -399, -399, 9, 10,
|
||
11, 586, 393, 590, 545, 546, 5, 407, 7, 236,
|
||
412, -399, 386, 621, 9, 10, 11, 413, 459, 460,
|
||
258, 179, 414, 258, 5, 415, 7, 75, 190, 192,
|
||
13, 612, 9, 10, 11, 505, 416, 506, 36, 418,
|
||
422, 510, 76, 72, 423, 77, 169, 170, 13, -399,
|
||
634, 427, 9, 10, 11, 573, 510, -399, 426, 428,
|
||
429, 439, 102, 78, 677, 455, 79, 596, 19, 435,
|
||
470, -211, -211, 80, 223, 224, 81, 225, 226, 227,
|
||
228, 82, 83, 84, 472, 482, 19, 85, 86, 180,
|
||
-202, 483, 87, 507, 492, 495, 677, 89, 496, 90,
|
||
37, 676, 498, 699, 634, 91, 92, 704, 508, 510,
|
||
499, 490, 617, 491, 501, 586, 519, 520, 5, 58,
|
||
7, 59, 521, 524, 510, 510, 9, 10, 11, 530,
|
||
716, 533, 539, 676, 720, 218, 219, 220, 221, 222,
|
||
550, 725, 13, 642, 552, 706, 5, 58, 7, 59,
|
||
556, 377, -31, 733, 9, 10, 11, 737, 576, 74,
|
||
577, 581, 741, 592, 76, 72, 658, 77, 582, 591,
|
||
13, 613, 602, -242, 636, 643, 656, 510, 641, 510,
|
||
19, 683, 644, 60, 694, 78, 649, 659, 79, 684,
|
||
692, 687, 691, 767, -32, 80, 700, 697, 81, 698,
|
||
701, 702, 707, 82, 83, 84, 776, -33, 19, 85,
|
||
86, 526, 709, 710, 87, 88, 711, 714, 786, 89,
|
||
715, 90, 717, 724, 727, 734, 794, 91, 92, 726,
|
||
419, 267, 510, -99, -99, -99, -99, -99, -99, -99,
|
||
-99, -99, -99, -99, -99, -99, 731, -99, -99, -99,
|
||
-99, -99, -99, -99, -99, -99, -99, -99, -99, -99,
|
||
510, 732, -99, 735, 736, 744, 740, 746, 750, -99,
|
||
754, 757, -99, 761, 765, 768, 770, -99, -99, -99,
|
||
773, 796, 774, -99, -99, 778, 780, 782, -99, -99,
|
||
785, 797, 788, -99, 793, -99, -99, 32, 568, -99,
|
||
-99, -99, -99, 567, -99, -259, -259, -259, -259, -259,
|
||
-259, -259, 167, -259, -259, -259, -259, -259, 607, -259,
|
||
-259, -259, -259, -259, -259, -259, -259, -259, -259, -259,
|
||
-259, -259, 348, 575, -259, 657, 406, 411, 563, 290,
|
||
404, -259, 622, 572, -259, 777, 779, 549, 594, -259,
|
||
-259, -259, 436, 566, 599, -259, -259, 688, 648, 468,
|
||
-259, -259, 685, 527, 523, -259, 357, -259, -259, 440,
|
||
637, -259, 441, -259, -259, 267, -259, -259, -259, 584,
|
||
425, 0, -259, -259, 0, -259, 0, 0, 0, -259,
|
||
0, -259, -259, -259, -259, -259, -259, -259, -259, -259,
|
||
-259, -259, 0, -259, 0, 0, -259, 0, 0, 0,
|
||
0, 0, 0, -259, 0, 0, -259, 0, 0, 0,
|
||
0, -259, -259, -259, 0, 0, 0, -259, -259, 0,
|
||
0, 0, -259, -259, 0, 0, 0, -259, 0, -259,
|
||
-259, 0, 0, -259, 624, -259, -259, 267, -259, -259,
|
||
-259, 0, 0, 0, -259, -259, 0, -259, 0, 0,
|
||
0, -259, 0, -259, -259, -259, -259, -259, -259, -259,
|
||
-259, -259, -259, -259, 0, -259, 0, 0, -259, 0,
|
||
0, 0, 0, 0, 0, -259, 0, 0, -259, 0,
|
||
0, 0, 0, -259, -259, -259, 0, 0, 0, -259,
|
||
-259, 0, 0, 0, -259, -259, 0, 0, 0, -259,
|
||
0, -259, -259, 0, 0, -259, -243, -259, -259, 196,
|
||
-259, 74, 5, 0, 7, 75, 76, 72, 0, 77,
|
||
9, 10, 11, 0, 0, 5, 58, 7, 59, 0,
|
||
0, 0, 0, 9, 10, 11, 13, 78, 0, 0,
|
||
79, 0, 0, 0, 0, 0, 0, 80, 0, 13,
|
||
81, 0, 0, 0, 0, 82, 83, 84, 0, 0,
|
||
0, 85, 86, 0, 0, 0, 87, 88, 0, 0,
|
||
0, 89, 0, 90, 19, 0, 0, 0, 0, 91,
|
||
92, 505, -82, 506, 36, 0, 0, 19, 76, 72,
|
||
554, 77, 0, 0, 0, 0, 5, 6, 7, 8,
|
||
0, 633, 548, 0, 9, 10, 11, 0, 5, 78,
|
||
7, 75, 79, 0, 0, 0, 9, 10, 11, 80,
|
||
13, 0, 81, 0, 0, 0, 0, 82, 83, 84,
|
||
0, 0, 13, 85, 86, 0, 0, 0, 87, 88,
|
||
0, 0, 0, 89, 0, 90, 37, 0, 0, 0,
|
||
-199, 91, 92, 505, 508, 506, 36, 0, 19, 0,
|
||
76, 72, 0, 77, 0, 0, 0, 0, 0, 0,
|
||
19, 0, 0, 633, 0, 0, 0, 456, 0, 0,
|
||
5, 78, 7, 75, 79, 0, 0, 0, 9, 10,
|
||
11, 80, 0, 0, 81, 0, 0, 0, 0, 82,
|
||
83, 84, 0, 0, 13, 85, 86, 0, 0, 0,
|
||
87, 88, 0, 0, 0, 89, 0, 90, 37, 0,
|
||
0, 0, 682, 91, 92, 505, 508, 506, 36, 0,
|
||
0, 0, 76, 72, 0, 77, 0, 0, 0, 0,
|
||
0, 0, 19, 457, 0, 458, -354, 0, 0, 0,
|
||
0, 0, 5, 78, 7, 236, 79, 0, 0, 0,
|
||
9, 10, 11, 80, 0, 0, 81, 0, 0, 0,
|
||
0, 82, 83, 84, 0, 0, 13, 85, 86, 0,
|
||
0, 0, 87, 507, 0, 0, 0, 89, 0, 90,
|
||
37, 0, 0, 0, 574, 91, 92, 505, 508, 74,
|
||
0, 0, 0, 0, 76, 72, 151, 77, 0, -27,
|
||
-27, -27, -27, 0, 19, 0, 0, -27, -27, -27,
|
||
0, 0, 0, 0, 0, 78, 0, 0, 79, 0,
|
||
0, 0, 152, -27, 0, 80, -136, 0, 81, 0,
|
||
-136, 0, 0, 82, 83, 84, 0, 0, 0, 85,
|
||
86, 0, 0, 0, 87, 88, 0, 0, 0, 89,
|
||
0, 90, 0, 153, 154, 0, 0, 91, 92, 0,
|
||
508, -27, 0, 0, -136, 0, 0, 285, -136, -27,
|
||
-23, -23, -23, -23, 0, 0, 0, 0, -23, -23,
|
||
-23, 211, 212, 213, 214, 215, 216, 217, 218, 219,
|
||
220, 221, 222, 152, -23, 0, 0, -136, 0, 0,
|
||
279, -136, 0, -19, -19, -19, -19, 0, 0, 0,
|
||
0, -19, -19, -19, 213, 214, 215, 216, 217, 218,
|
||
219, 220, 221, 222, 153, 154, 152, -19, 0, 0,
|
||
-136, 0, -23, 0, -136, -136, 0, 0, 74, -136,
|
||
-23, 0, 0, 76, 72, 0, 77, 0, 376, 0,
|
||
377, 5, 6, 7, 8, 0, 0, 0, 0, 9,
|
||
10, 11, 0, 0, 78, -19, 0, 79, -136, 0,
|
||
0, 0, -136, -19, 80, 13, 0, 81, 0, 0,
|
||
0, 0, 82, 83, 84, 0, 0, 0, 85, 86,
|
||
0, 74, 0, 87, 88, 0, 76, 72, 89, 77,
|
||
90, 0, 0, 0, 0, 0, 91, 92, 0, 0,
|
||
265, 0, 0, 19, 0, -318, 0, 78, 0, 0,
|
||
79, 0, 0, 0, 0, 0, 74, 80, 0, 0,
|
||
81, 76, 72, 0, 77, 82, 83, 84, 0, 0,
|
||
0, 85, 86, 0, 0, 0, 87, 88, 0, 0,
|
||
0, 89, 78, 90, 0, 79, 0, 0, 0, 91,
|
||
92, 74, 80, 343, 0, 81, 76, 72, 0, 77,
|
||
82, 83, 84, 0, 0, 0, 85, 86, 0, 0,
|
||
0, 87, 88, 0, 0, 0, 89, 78, 90, 0,
|
||
79, 0, 0, 0, 91, 92, 74, 80, 400, 0,
|
||
81, 76, 72, 0, 77, 82, 83, 84, 0, 0,
|
||
0, 85, 86, 0, 0, 0, 87, 88, 0, 0,
|
||
0, 89, 78, 90, 0, 79, 0, 0, 0, 91,
|
||
92, 0, 80, 437, 0, 81, 0, 0, 0, 0,
|
||
82, 83, 84, 0, 0, 0, 85, 86, 0, 0,
|
||
0, 87, 88, 0, 0, 0, 89, 0, 90, 0,
|
||
0, 0, 0, 0, 91, 92, 0, 0, 605, 506,
|
||
661, 6, 7, 8, 76, 72, 0, 77, 9, 10,
|
||
11, 662, 0, 663, 664, 665, 666, 667, 668, 669,
|
||
670, 671, 672, 673, 13, 78, 0, 0, 79, 0,
|
||
0, 0, 0, 0, 0, 80, 0, 0, 81, 0,
|
||
0, 0, 0, 82, 83, 84, 0, 0, 0, 85,
|
||
86, 0, 0, 0, 87, 88, 0, 0, 0, 89,
|
||
0, 90, 674, 0, 0, 675, 0, 91, 92, 0,
|
||
303, 506, 36, 0, 0, 0, 76, 72, 0, 77,
|
||
0, 0, 0, 662, 0, 663, 664, 665, 666, 667,
|
||
668, 669, 670, 671, 672, 673, 0, 78, 0, 0,
|
||
79, 0, 0, 0, 0, 0, 0, 80, 0, 0,
|
||
81, 0, 0, 0, 0, 82, 83, 84, 0, 0,
|
||
0, 85, 86, 0, 0, 0, 87, 88, 0, 0,
|
||
0, 89, 0, 90, 37, 0, 0, 675, 0, 91,
|
||
92, 0, 303, 108, 109, 0, 110, 111, 0, 0,
|
||
0, 112, 113, 114, 115, 116, 117, 118, 119, 120,
|
||
121, 122, 123, 124, 125, 126, 127, 128, 129, 130,
|
||
74, 5, 0, 7, 75, 76, 72, 131, 77, 9,
|
||
10, 11, 210, 211, 212, 213, 214, 215, 216, 217,
|
||
218, 219, 220, 221, 222, 13, 78, 0, 0, 79,
|
||
0, 0, 0, 0, 0, 0, 80, 0, 0, 81,
|
||
0, 0, 0, 243, 82, 83, 84, 0, 0, 0,
|
||
85, 86, 0, 74, 0, 87, 88, 0, 76, 72,
|
||
89, 77, 90, 19, 0, 0, 0, 0, 91, 92,
|
||
214, 215, 216, 217, 218, 219, 220, 221, 222, 78,
|
||
0, 0, 79, 0, 0, 0, 0, 0, 74, 80,
|
||
0, 0, 81, 76, 72, 0, 77, 82, 83, 84,
|
||
0, 0, 0, 85, 86, 0, 0, 0, 87, 88,
|
||
0, 0, 0, 89, 78, 90, 306, 79, 0, 0,
|
||
0, 91, 92, 74, 80, 0, 0, 81, 76, 72,
|
||
0, 77, 82, 83, 84, 0, 0, 0, 85, 86,
|
||
0, 0, 0, 87, 88, 0, 0, 0, 89, 78,
|
||
90, 0, 79, 0, 703, 0, 91, 92, 74, 80,
|
||
0, 0, 81, 76, 72, 0, 77, 82, 83, 84,
|
||
0, 0, 0, 85, 86, 0, 0, 0, 189, 88,
|
||
0, 0, 0, 89, 78, 90, 0, 79, 0, 0,
|
||
0, 91, 92, 74, 80, 0, 0, 81, 76, 72,
|
||
0, 77, 82, 83, 84, 0, 0, 0, 85, 86,
|
||
0, 0, 0, 191, 88, 0, 0, 0, 89, 78,
|
||
90, 0, 79, 0, 0, 0, 91, 92, 0, 80,
|
||
0, 0, 81, 0, 0, 0, 0, 82, 83, 84,
|
||
0, 0, 0, 85, 86, 0, 0, 0, 87, 88,
|
||
0, 0, 0, 89, 456, 90, 0, 5, 0, 7,
|
||
75, 91, 92, 0, 0, 9, 10, 11, 212, 213,
|
||
214, 215, 216, 217, 218, 219, 220, 221, 222, 0,
|
||
4, 13, -103, 5, 6, 7, 8, 0, 0, 0,
|
||
0, 9, 10, 11, 0, 0, 0, 0, 4, 0,
|
||
-103, 5, 6, 7, 8, 0, 12, 13, 0, 9,
|
||
10, 11, 216, 217, 218, 219, 220, 221, 222, 19,
|
||
0, 0, 458, -353, 0, 13, 14, 15, -103, 215,
|
||
216, 217, 218, 219, 220, 221, 222, -103, 0, 16,
|
||
17, 18, 0, 0, 0, 19, -103, 4, 20, -103,
|
||
5, 6, 7, 8, 0, -103, 0, 0, 9, 10,
|
||
11, 0, 0, 19, 0, 0, 20, 50, 5, 58,
|
||
7, 59, 0, 0, 13, 0, 9, 10, 11, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 13, 364, 365, -103, 0, 0, 0, 0,
|
||
0, 0, 0, 0, -103, 0, 0, 0, 0, 0,
|
||
0, 0, 19, 479, 0, 20, 0, 0, 0, 0,
|
||
0, 0, 475, 231, 108, 109, 0, 110, 111, 0,
|
||
19, 0, 112, 113, 114, 115, 116, 117, 118, 119,
|
||
120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
|
||
130, 0, 0, 0, 0, 0, 0, 0, 131, 206,
|
||
207, 208, 0, 209, 210, 211, 212, 213, 214, 215,
|
||
216, 217, 218, 219, 220, 221, 222, 0, 0, 132,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 108, 109, 0, 110, 111, 0, 0,
|
||
629, 112, 113, 114, 115, 116, 117, 118, 119, 120,
|
||
121, 122, 123, 124, 125, 126, 127, 128, 129, 130,
|
||
108, 109, 0, 110, 111, 0, 0, 309, 112, 113,
|
||
114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
|
||
124, 125, 126, 127, 128, 129, 130, 108, 109, 0,
|
||
110, 111, 0, 0, 131, 112, 113, 114, 115, 116,
|
||
117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
|
||
127, 128, 129, 130, 0, 0, 0, 0, 0, 273,
|
||
0, 513, 206, 207, 208, 0, 209, 210, 211, 212,
|
||
213, 214, 215, 216, 217, 218, 219, 220, 221, 222,
|
||
206, 207, 208, 712, 209, 210, 211, 212, 213, 214,
|
||
215, 216, 217, 218, 219, 220, 221, 222, 206, 207,
|
||
208, 0, 209, 210, 211, 212, 213, 214, 215, 216,
|
||
217, 218, 219, 220, 221, 222, 208, 0, 209, 210,
|
||
211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
|
||
221, 222
|
||
};
|
||
|
||
static const short yycheck[] = { 44,
|
||
57, 45, 9, 10, 11, 2, 3, 2, 3, 16,
|
||
17, 61, 68, 68, 26, 155, 162, 135, 47, 227,
|
||
24, 270, 198, 158, 281, 25, 26, 269, 135, 282,
|
||
359, 63, 410, 45, 256, 101, 42, 253, 104, 150,
|
||
1, 378, 84, 87, 234, 697, 87, 159, 52, 1,
|
||
27, 93, 9, 1, 3, 4, 68, 61, 10, 9,
|
||
68, 0, 9, 68, 230, 73, 1, 37, 73, 4,
|
||
5, 6, 7, 80, 569, 87, 493, 12, 13, 14,
|
||
37, 58, 59, 201, 69, 27, 3, 4, 73, 10,
|
||
342, 132, 104, 28, 229, 0, 748, 74, 68, 3,
|
||
4, 1, 354, 58, 4, 5, 6, 7, 69, 351,
|
||
154, 68, 12, 13, 14, 261, 37, 66, 68, 64,
|
||
132, 68, 74, 775, 131, 454, 74, 622, 28, 58,
|
||
270, 66, 74, 140, 141, 167, 3, 144, 145, 74,
|
||
280, 3, 4, 147, 561, 189, 286, 191, 189, 66,
|
||
191, 193, 292, 69, 294, 159, 200, 74, 348, 576,
|
||
577, 202, 66, 275, 74, 3, 66, 278, 3, 4,
|
||
74, 183, 37, 339, 74, 3, 4, 189, 184, 191,
|
||
186, 181, 49, 183, 228, 70, 74, 231, 73, 3,
|
||
202, 58, 570, 7, 312, 37, 58, 74, 239, 3,
|
||
4, 696, 234, 68, 66, 447, 535, 544, 58, 3,
|
||
4, 49, 629, 7, 631, 37, 58, 262, 225, 226,
|
||
58, 59, 69, 58, 3, 9, 73, 239, 723, 8,
|
||
452, 66, 74, 728, 729, 49, 58, 68, 66, 283,
|
||
247, 70, 73, 738, 58, 49, 74, 469, 626, 7,
|
||
745, 467, 74, 253, 749, 49, 253, 70, 253, 69,
|
||
70, 756, 66, 305, 58, 760, 27, 684, 69, 3,
|
||
4, 275, 73, 205, 206, 207, 58, 209, 210, 211,
|
||
212, 213, 214, 215, 216, 217, 218, 219, 220, 221,
|
||
222, 49, 545, 31, 789, 712, 58, 58, 59, 37,
|
||
58, 59, 346, 421, 68, 513, 362, 362, 565, 475,
|
||
486, 640, 378, 379, 355, 49, 348, 47, 48, 568,
|
||
280, 58, 59, 441, 58, 1, 286, 569, 4, 5,
|
||
6, 7, 62, 73, 441, 9, 12, 13, 14, 474,
|
||
49, 50, 51, 355, 479, 3, 4, 3, 4, 3,
|
||
362, 7, 28, 7, 351, 287, 351, 369, 68, 499,
|
||
37, 448, 502, 367, 451, 62, 69, 379, 368, 369,
|
||
73, 3, 4, 581, 378, 379, 49, 58, 544, 37,
|
||
622, 547, 31, 58, 59, 58, 59, 58, 59, 35,
|
||
66, 49, 68, 49, 391, 49, 391, 68, 516, 69,
|
||
58, 658, 58, 59, 58, 59, 73, 494, 58, 59,
|
||
497, 4, 419, 6, 7, 66, 466, 49, 68, 12,
|
||
13, 14, 69, 3, 4, 69, 58, 59, 568, 73,
|
||
68, 443, 439, 462, 463, 28, 69, 4, 5, 6,
|
||
7, 68, 442, 500, 74, 12, 13, 14, 460, 446,
|
||
68, 446, 628, 68, 58, 59, 49, 37, 10, 459,
|
||
460, 28, 466, 609, 68, 58, 59, 467, 74, 49,
|
||
467, 475, 467, 66, 68, 651, 62, 653, 58, 491,
|
||
537, 538, 69, 74, 660, 69, 73, 419, 27, 73,
|
||
490, 491, 69, 70, 68, 427, 553, 58, 59, 66,
|
||
75, 508, 546, 69, 1, 555, 70, 4, 5, 6,
|
||
7, 5, 6, 7, 58, 12, 13, 14, 12, 13,
|
||
14, 525, 35, 530, 58, 59, 4, 68, 6, 7,
|
||
70, 28, 69, 70, 12, 13, 14, 70, 594, 594,
|
||
544, 1, 68, 547, 4, 68, 6, 7, 77, 78,
|
||
28, 555, 12, 13, 14, 1, 70, 3, 4, 68,
|
||
37, 493, 8, 9, 68, 11, 6, 7, 28, 66,
|
||
577, 37, 12, 13, 14, 507, 508, 74, 68, 68,
|
||
75, 68, 594, 29, 628, 70, 32, 644, 66, 75,
|
||
70, 69, 70, 39, 53, 54, 42, 56, 57, 58,
|
||
59, 47, 48, 49, 68, 68, 66, 53, 54, 69,
|
||
70, 73, 58, 59, 58, 35, 660, 63, 75, 65,
|
||
66, 628, 70, 667, 631, 71, 72, 671, 74, 561,
|
||
73, 628, 564, 628, 33, 639, 68, 68, 4, 5,
|
||
6, 7, 75, 69, 576, 577, 12, 13, 14, 68,
|
||
694, 62, 69, 660, 698, 47, 48, 49, 50, 51,
|
||
3, 705, 28, 595, 69, 672, 4, 5, 6, 7,
|
||
3, 3, 37, 717, 12, 13, 14, 721, 37, 3,
|
||
73, 37, 727, 62, 8, 9, 618, 11, 75, 70,
|
||
28, 58, 70, 70, 70, 37, 68, 629, 62, 631,
|
||
66, 633, 73, 69, 58, 29, 75, 70, 32, 37,
|
||
68, 643, 73, 757, 37, 39, 37, 58, 42, 58,
|
||
69, 69, 7, 47, 48, 49, 770, 37, 66, 53,
|
||
54, 69, 37, 69, 58, 59, 16, 62, 783, 63,
|
||
8, 65, 58, 69, 58, 17, 791, 71, 72, 69,
|
||
74, 1, 684, 3, 4, 5, 6, 7, 8, 9,
|
||
10, 11, 12, 13, 14, 15, 73, 17, 18, 19,
|
||
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
||
712, 68, 32, 69, 68, 8, 69, 68, 37, 39,
|
||
68, 58, 42, 9, 69, 69, 58, 47, 48, 49,
|
||
73, 0, 68, 53, 54, 69, 69, 68, 58, 59,
|
||
68, 0, 69, 63, 69, 65, 66, 3, 502, 69,
|
||
70, 71, 72, 1, 74, 3, 4, 5, 6, 7,
|
||
8, 9, 62, 11, 12, 13, 14, 15, 553, 17,
|
||
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
|
||
28, 29, 237, 508, 32, 615, 290, 294, 499, 176,
|
||
288, 39, 568, 503, 42, 771, 773, 483, 536, 47,
|
||
48, 49, 345, 501, 538, 53, 54, 644, 601, 370,
|
||
58, 59, 639, 446, 441, 63, 248, 65, 66, 350,
|
||
581, 69, 350, 71, 72, 1, 74, 3, 4, 516,
|
||
312, -1, 8, 9, -1, 11, -1, -1, -1, 15,
|
||
-1, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
||
26, 27, -1, 29, -1, -1, 32, -1, -1, -1,
|
||
-1, -1, -1, 39, -1, -1, 42, -1, -1, -1,
|
||
-1, 47, 48, 49, -1, -1, -1, 53, 54, -1,
|
||
-1, -1, 58, 59, -1, -1, -1, 63, -1, 65,
|
||
66, -1, -1, 69, 70, 71, 72, 1, 74, 3,
|
||
4, -1, -1, -1, 8, 9, -1, 11, -1, -1,
|
||
-1, 15, -1, 17, 18, 19, 20, 21, 22, 23,
|
||
24, 25, 26, 27, -1, 29, -1, -1, 32, -1,
|
||
-1, -1, -1, -1, -1, 39, -1, -1, 42, -1,
|
||
-1, -1, -1, 47, 48, 49, -1, -1, -1, 53,
|
||
54, -1, -1, -1, 58, 59, -1, -1, -1, 63,
|
||
-1, 65, 66, -1, -1, 69, 70, 71, 72, 1,
|
||
74, 3, 4, -1, 6, 7, 8, 9, -1, 11,
|
||
12, 13, 14, -1, -1, 4, 5, 6, 7, -1,
|
||
-1, -1, -1, 12, 13, 14, 28, 29, -1, -1,
|
||
32, -1, -1, -1, -1, -1, -1, 39, -1, 28,
|
||
42, -1, -1, -1, -1, 47, 48, 49, -1, -1,
|
||
-1, 53, 54, -1, -1, -1, 58, 59, -1, -1,
|
||
-1, 63, -1, 65, 66, -1, -1, -1, -1, 71,
|
||
72, 1, 74, 3, 4, -1, -1, 66, 8, 9,
|
||
69, 11, -1, -1, -1, -1, 4, 5, 6, 7,
|
||
-1, 21, 10, -1, 12, 13, 14, -1, 4, 29,
|
||
6, 7, 32, -1, -1, -1, 12, 13, 14, 39,
|
||
28, -1, 42, -1, -1, -1, -1, 47, 48, 49,
|
||
-1, -1, 28, 53, 54, -1, -1, -1, 58, 59,
|
||
-1, -1, -1, 63, -1, 65, 66, -1, -1, -1,
|
||
70, 71, 72, 1, 74, 3, 4, -1, 66, -1,
|
||
8, 9, -1, 11, -1, -1, -1, -1, -1, -1,
|
||
66, -1, -1, 21, -1, -1, -1, 1, -1, -1,
|
||
4, 29, 6, 7, 32, -1, -1, -1, 12, 13,
|
||
14, 39, -1, -1, 42, -1, -1, -1, -1, 47,
|
||
48, 49, -1, -1, 28, 53, 54, -1, -1, -1,
|
||
58, 59, -1, -1, -1, 63, -1, 65, 66, -1,
|
||
-1, -1, 70, 71, 72, 1, 74, 3, 4, -1,
|
||
-1, -1, 8, 9, -1, 11, -1, -1, -1, -1,
|
||
-1, -1, 66, 67, -1, 69, 70, -1, -1, -1,
|
||
-1, -1, 4, 29, 6, 7, 32, -1, -1, -1,
|
||
12, 13, 14, 39, -1, -1, 42, -1, -1, -1,
|
||
-1, 47, 48, 49, -1, -1, 28, 53, 54, -1,
|
||
-1, -1, 58, 59, -1, -1, -1, 63, -1, 65,
|
||
66, -1, -1, -1, 70, 71, 72, 1, 74, 3,
|
||
-1, -1, -1, -1, 8, 9, 1, 11, -1, 4,
|
||
5, 6, 7, -1, 66, -1, -1, 12, 13, 14,
|
||
-1, -1, -1, -1, -1, 29, -1, -1, 32, -1,
|
||
-1, -1, 27, 28, -1, 39, 31, -1, 42, -1,
|
||
35, -1, -1, 47, 48, 49, -1, -1, -1, 53,
|
||
54, -1, -1, -1, 58, 59, -1, -1, -1, 63,
|
||
-1, 65, -1, 58, 59, -1, -1, 71, 72, -1,
|
||
74, 66, -1, -1, 69, -1, -1, 1, 73, 74,
|
||
4, 5, 6, 7, -1, -1, -1, -1, 12, 13,
|
||
14, 40, 41, 42, 43, 44, 45, 46, 47, 48,
|
||
49, 50, 51, 27, 28, -1, -1, 31, -1, -1,
|
||
1, 35, -1, 4, 5, 6, 7, -1, -1, -1,
|
||
-1, 12, 13, 14, 42, 43, 44, 45, 46, 47,
|
||
48, 49, 50, 51, 58, 59, 27, 28, -1, -1,
|
||
31, -1, 66, -1, 35, 69, -1, -1, 3, 73,
|
||
74, -1, -1, 8, 9, -1, 11, -1, 1, -1,
|
||
3, 4, 5, 6, 7, -1, -1, -1, -1, 12,
|
||
13, 14, -1, -1, 29, 66, -1, 32, 69, -1,
|
||
-1, -1, 73, 74, 39, 28, -1, 42, -1, -1,
|
||
-1, -1, 47, 48, 49, -1, -1, -1, 53, 54,
|
||
-1, 3, -1, 58, 59, -1, 8, 9, 63, 11,
|
||
65, -1, -1, -1, -1, -1, 71, 72, -1, -1,
|
||
75, -1, -1, 66, -1, 68, -1, 29, -1, -1,
|
||
32, -1, -1, -1, -1, -1, 3, 39, -1, -1,
|
||
42, 8, 9, -1, 11, 47, 48, 49, -1, -1,
|
||
-1, 53, 54, -1, -1, -1, 58, 59, -1, -1,
|
||
-1, 63, 29, 65, -1, 32, -1, -1, -1, 71,
|
||
72, 3, 39, 75, -1, 42, 8, 9, -1, 11,
|
||
47, 48, 49, -1, -1, -1, 53, 54, -1, -1,
|
||
-1, 58, 59, -1, -1, -1, 63, 29, 65, -1,
|
||
32, -1, -1, -1, 71, 72, 3, 39, 75, -1,
|
||
42, 8, 9, -1, 11, 47, 48, 49, -1, -1,
|
||
-1, 53, 54, -1, -1, -1, 58, 59, -1, -1,
|
||
-1, 63, 29, 65, -1, 32, -1, -1, -1, 71,
|
||
72, -1, 39, 75, -1, 42, -1, -1, -1, -1,
|
||
47, 48, 49, -1, -1, -1, 53, 54, -1, -1,
|
||
-1, 58, 59, -1, -1, -1, 63, -1, 65, -1,
|
||
-1, -1, -1, -1, 71, 72, -1, -1, 75, 3,
|
||
4, 5, 6, 7, 8, 9, -1, 11, 12, 13,
|
||
14, 15, -1, 17, 18, 19, 20, 21, 22, 23,
|
||
24, 25, 26, 27, 28, 29, -1, -1, 32, -1,
|
||
-1, -1, -1, -1, -1, 39, -1, -1, 42, -1,
|
||
-1, -1, -1, 47, 48, 49, -1, -1, -1, 53,
|
||
54, -1, -1, -1, 58, 59, -1, -1, -1, 63,
|
||
-1, 65, 66, -1, -1, 69, -1, 71, 72, -1,
|
||
74, 3, 4, -1, -1, -1, 8, 9, -1, 11,
|
||
-1, -1, -1, 15, -1, 17, 18, 19, 20, 21,
|
||
22, 23, 24, 25, 26, 27, -1, 29, -1, -1,
|
||
32, -1, -1, -1, -1, -1, -1, 39, -1, -1,
|
||
42, -1, -1, -1, -1, 47, 48, 49, -1, -1,
|
||
-1, 53, 54, -1, -1, -1, 58, 59, -1, -1,
|
||
-1, 63, -1, 65, 66, -1, -1, 69, -1, 71,
|
||
72, -1, 74, 3, 4, -1, 6, 7, -1, -1,
|
||
-1, 11, 12, 13, 14, 15, 16, 17, 18, 19,
|
||
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
||
3, 4, -1, 6, 7, 8, 9, 37, 11, 12,
|
||
13, 14, 39, 40, 41, 42, 43, 44, 45, 46,
|
||
47, 48, 49, 50, 51, 28, 29, -1, -1, 32,
|
||
-1, -1, -1, -1, -1, -1, 39, -1, -1, 42,
|
||
-1, -1, -1, 73, 47, 48, 49, -1, -1, -1,
|
||
53, 54, -1, 3, -1, 58, 59, -1, 8, 9,
|
||
63, 11, 65, 66, -1, -1, -1, -1, 71, 72,
|
||
43, 44, 45, 46, 47, 48, 49, 50, 51, 29,
|
||
-1, -1, 32, -1, -1, -1, -1, -1, 3, 39,
|
||
-1, -1, 42, 8, 9, -1, 11, 47, 48, 49,
|
||
-1, -1, -1, 53, 54, -1, -1, -1, 58, 59,
|
||
-1, -1, -1, 63, 29, 65, 66, 32, -1, -1,
|
||
-1, 71, 72, 3, 39, -1, -1, 42, 8, 9,
|
||
-1, 11, 47, 48, 49, -1, -1, -1, 53, 54,
|
||
-1, -1, -1, 58, 59, -1, -1, -1, 63, 29,
|
||
65, -1, 32, -1, 69, -1, 71, 72, 3, 39,
|
||
-1, -1, 42, 8, 9, -1, 11, 47, 48, 49,
|
||
-1, -1, -1, 53, 54, -1, -1, -1, 58, 59,
|
||
-1, -1, -1, 63, 29, 65, -1, 32, -1, -1,
|
||
-1, 71, 72, 3, 39, -1, -1, 42, 8, 9,
|
||
-1, 11, 47, 48, 49, -1, -1, -1, 53, 54,
|
||
-1, -1, -1, 58, 59, -1, -1, -1, 63, 29,
|
||
65, -1, 32, -1, -1, -1, 71, 72, -1, 39,
|
||
-1, -1, 42, -1, -1, -1, -1, 47, 48, 49,
|
||
-1, -1, -1, 53, 54, -1, -1, -1, 58, 59,
|
||
-1, -1, -1, 63, 1, 65, -1, 4, -1, 6,
|
||
7, 71, 72, -1, -1, 12, 13, 14, 41, 42,
|
||
43, 44, 45, 46, 47, 48, 49, 50, 51, -1,
|
||
1, 28, 3, 4, 5, 6, 7, -1, -1, -1,
|
||
-1, 12, 13, 14, -1, -1, -1, -1, 1, -1,
|
||
3, 4, 5, 6, 7, -1, 27, 28, -1, 12,
|
||
13, 14, 45, 46, 47, 48, 49, 50, 51, 66,
|
||
-1, -1, 69, 70, -1, 28, 47, 48, 49, 44,
|
||
45, 46, 47, 48, 49, 50, 51, 58, -1, 60,
|
||
61, 62, -1, -1, -1, 66, 49, 1, 69, 3,
|
||
4, 5, 6, 7, -1, 58, -1, -1, 12, 13,
|
||
14, -1, -1, 66, -1, -1, 69, 3, 4, 5,
|
||
6, 7, -1, -1, 28, -1, 12, 13, 14, -1,
|
||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, 28, 47, 48, 49, -1, -1, -1, -1,
|
||
-1, -1, -1, -1, 58, -1, -1, -1, -1, -1,
|
||
-1, -1, 66, 49, -1, 69, -1, -1, -1, -1,
|
||
-1, -1, 58, 59, 3, 4, -1, 6, 7, -1,
|
||
66, -1, 11, 12, 13, 14, 15, 16, 17, 18,
|
||
19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
|
||
29, -1, -1, -1, -1, -1, -1, -1, 37, 34,
|
||
35, 36, -1, 38, 39, 40, 41, 42, 43, 44,
|
||
45, 46, 47, 48, 49, 50, 51, -1, -1, 58,
|
||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, -1, 3, 4, -1, 6, 7, -1, -1,
|
||
75, 11, 12, 13, 14, 15, 16, 17, 18, 19,
|
||
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
||
3, 4, -1, 6, 7, -1, -1, 37, 11, 12,
|
||
13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
|
||
23, 24, 25, 26, 27, 28, 29, 3, 4, -1,
|
||
6, 7, -1, -1, 37, 11, 12, 13, 14, 15,
|
||
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
||
26, 27, 28, 29, -1, -1, -1, -1, -1, 31,
|
||
-1, 37, 34, 35, 36, -1, 38, 39, 40, 41,
|
||
42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
|
||
34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
|
||
44, 45, 46, 47, 48, 49, 50, 51, 34, 35,
|
||
36, -1, 38, 39, 40, 41, 42, 43, 44, 45,
|
||
46, 47, 48, 49, 50, 51, 36, -1, 38, 39,
|
||
40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
|
||
50, 51
|
||
};
|
||
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
|
||
#line 3 "bison.simple"
|
||
|
||
/* Skeleton output parser for bison,
|
||
Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
|
||
|
||
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 1, 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, write to the Free Software
|
||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||
|
||
|
||
#ifndef alloca
|
||
#ifdef __GNUC__
|
||
#define alloca __builtin_alloca
|
||
#else /* not GNU C. */
|
||
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__)
|
||
#include <alloca.h>
|
||
#else /* not sparc */
|
||
#if defined (MSDOS) && !defined (__TURBOC__)
|
||
#include <malloc.h>
|
||
#else /* not MSDOS, or __TURBOC__ */
|
||
#if defined(_AIX)
|
||
#include <malloc.h>
|
||
#pragma alloca
|
||
#endif /* not _AIX */
|
||
#endif /* not MSDOS, or __TURBOC__ */
|
||
#endif /* not sparc. */
|
||
#endif /* not GNU C. */
|
||
#endif /* alloca not defined. */
|
||
|
||
/* This is the parser code that is written into each bison parser
|
||
when the %semantic_parser declaration is not specified in the grammar.
|
||
It was written by Richard Stallman by simplifying the hairy parser
|
||
used when %semantic_parser is specified. */
|
||
|
||
/* Note: there must be only one dollar sign in this file.
|
||
It is replaced by the list of actions, each action
|
||
as one case of the switch. */
|
||
|
||
#define yyerrok (yyerrstatus = 0)
|
||
#define yyclearin (yychar = YYEMPTY)
|
||
#define YYEMPTY -2
|
||
#define YYEOF 0
|
||
#define YYACCEPT return(0)
|
||
#define YYABORT return(1)
|
||
#define YYERROR goto yyerrlab1
|
||
/* Like YYERROR except do call yyerror.
|
||
This remains here temporarily to ease the
|
||
transition to the new meaning of YYERROR, for GCC.
|
||
Once GCC version 2 has supplanted version 1, this can go. */
|
||
#define YYFAIL goto yyerrlab
|
||
#define YYRECOVERING() (!!yyerrstatus)
|
||
#define YYBACKUP(token, value) \
|
||
do \
|
||
if (yychar == YYEMPTY && yylen == 1) \
|
||
{ yychar = (token), yylval = (value); \
|
||
yychar1 = YYTRANSLATE (yychar); \
|
||
YYPOPSTACK; \
|
||
goto yybackup; \
|
||
} \
|
||
else \
|
||
{ yyerror ("syntax error: cannot back up"); YYERROR; } \
|
||
while (0)
|
||
|
||
#define YYTERROR 1
|
||
#define YYERRCODE 256
|
||
|
||
#ifndef YYPURE
|
||
#define YYLEX yylex()
|
||
#endif
|
||
|
||
#ifdef YYPURE
|
||
#ifdef YYLSP_NEEDED
|
||
#define YYLEX yylex(&yylval, &yylloc)
|
||
#else
|
||
#define YYLEX yylex(&yylval)
|
||
#endif
|
||
#endif
|
||
|
||
/* If nonreentrant, generate the variables here */
|
||
|
||
#ifndef YYPURE
|
||
|
||
int yychar; /* the lookahead symbol */
|
||
YYSTYPE yylval; /* the semantic value of the */
|
||
/* lookahead symbol */
|
||
|
||
#ifdef YYLSP_NEEDED
|
||
YYLTYPE yylloc; /* location data for the lookahead */
|
||
/* symbol */
|
||
#endif
|
||
|
||
int yynerrs; /* number of parse errors so far */
|
||
#endif /* not YYPURE */
|
||
|
||
#if YYDEBUG != 0
|
||
int yydebug; /* nonzero means print parse trace */
|
||
/* Since this is uninitialized, it does not stop multiple parsers
|
||
from coexisting. */
|
||
#endif
|
||
|
||
/* YYINITDEPTH indicates the initial size of the parser's stacks */
|
||
|
||
#ifndef YYINITDEPTH
|
||
#define YYINITDEPTH 200
|
||
#endif
|
||
|
||
/* YYMAXDEPTH is the maximum size the stacks can grow to
|
||
(effective only if the built-in stack extension method is used). */
|
||
|
||
#if YYMAXDEPTH == 0
|
||
#undef YYMAXDEPTH
|
||
#endif
|
||
|
||
#ifndef YYMAXDEPTH
|
||
#define YYMAXDEPTH 10000
|
||
#endif
|
||
|
||
#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
|
||
#define __yy_bcopy(FROM,TO,COUNT) __builtin_memcpy(TO,FROM,COUNT)
|
||
#else /* not GNU C or C++ */
|
||
#ifndef __cplusplus
|
||
|
||
/* This is the most reliable way to avoid incompatibilities
|
||
in available built-in functions on various systems. */
|
||
static void
|
||
__yy_bcopy (from, to, count)
|
||
char *from;
|
||
char *to;
|
||
int count;
|
||
{
|
||
register char *f = from;
|
||
register char *t = to;
|
||
register int i = count;
|
||
|
||
while (i-- > 0)
|
||
*t++ = *f++;
|
||
}
|
||
|
||
#else /* __cplusplus */
|
||
|
||
/* This is the most reliable way to avoid incompatibilities
|
||
in available built-in functions on various systems. */
|
||
static void
|
||
__yy_bcopy (char *from, char *to, int count)
|
||
{
|
||
register char *f = from;
|
||
register char *t = to;
|
||
register int i = count;
|
||
|
||
while (i-- > 0)
|
||
*t++ = *f++;
|
||
}
|
||
|
||
#endif
|
||
#endif
|
||
|
||
#line 169 "bison.simple"
|
||
int
|
||
yyparse()
|
||
{
|
||
register int yystate;
|
||
register int yyn;
|
||
register short *yyssp;
|
||
register YYSTYPE *yyvsp;
|
||
int yyerrstatus; /* number of tokens to shift before error messages enabled */
|
||
int yychar1; /* lookahead token as an internal (translated) token number */
|
||
|
||
short yyssa[YYINITDEPTH]; /* the state stack */
|
||
YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
|
||
|
||
short *yyss = yyssa; /* refer to the stacks thru separate pointers */
|
||
YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
|
||
|
||
#ifdef YYLSP_NEEDED
|
||
YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
|
||
YYLTYPE *yyls = yylsa;
|
||
YYLTYPE *yylsp;
|
||
|
||
#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
|
||
#else
|
||
#define YYPOPSTACK (yyvsp--, yyssp--)
|
||
#endif
|
||
|
||
int yystacksize = YYINITDEPTH;
|
||
|
||
#ifdef YYPURE
|
||
int yychar;
|
||
YYSTYPE yylval;
|
||
int yynerrs;
|
||
#ifdef YYLSP_NEEDED
|
||
YYLTYPE yylloc;
|
||
#endif
|
||
#endif
|
||
|
||
YYSTYPE yyval; /* the variable used to return */
|
||
/* semantic values from the action */
|
||
/* routines */
|
||
|
||
int yylen;
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
fprintf(stderr, "Starting parse\n");
|
||
#endif
|
||
|
||
yystate = 0;
|
||
yyerrstatus = 0;
|
||
yynerrs = 0;
|
||
yychar = YYEMPTY; /* Cause a token to be read. */
|
||
|
||
/* Initialize stack pointers.
|
||
Waste one element of value and location stack
|
||
so that they stay on the same level as the state stack. */
|
||
|
||
yyssp = yyss - 1;
|
||
yyvsp = yyvs;
|
||
#ifdef YYLSP_NEEDED
|
||
yylsp = yyls;
|
||
#endif
|
||
|
||
/* Push a new state, which is found in yystate . */
|
||
/* In all cases, when you get here, the value and location stacks
|
||
have just been pushed. so pushing a state here evens the stacks. */
|
||
yynewstate:
|
||
|
||
*++yyssp = yystate;
|
||
|
||
if (yyssp >= yyss + yystacksize - 1)
|
||
{
|
||
/* Give user a chance to reallocate the stack */
|
||
/* Use copies of these so that the &'s don't force the real ones into memory. */
|
||
YYSTYPE *yyvs1 = yyvs;
|
||
short *yyss1 = yyss;
|
||
#ifdef YYLSP_NEEDED
|
||
YYLTYPE *yyls1 = yyls;
|
||
#endif
|
||
|
||
/* Get the current used size of the three stacks, in elements. */
|
||
int size = yyssp - yyss + 1;
|
||
|
||
#ifdef yyoverflow
|
||
/* Each stack pointer address is followed by the size of
|
||
the data in use in that stack, in bytes. */
|
||
yyoverflow("parser stack overflow",
|
||
&yyss1, size * sizeof (*yyssp),
|
||
&yyvs1, size * sizeof (*yyvsp),
|
||
#ifdef YYLSP_NEEDED
|
||
&yyls1, size * sizeof (*yylsp),
|
||
#endif
|
||
&yystacksize);
|
||
|
||
yyss = yyss1; yyvs = yyvs1;
|
||
#ifdef YYLSP_NEEDED
|
||
yyls = yyls1;
|
||
#endif
|
||
#else /* no yyoverflow */
|
||
/* Extend the stack our own way. */
|
||
if (yystacksize >= YYMAXDEPTH)
|
||
{
|
||
yyerror("parser stack overflow");
|
||
return 2;
|
||
}
|
||
yystacksize *= 2;
|
||
if (yystacksize > YYMAXDEPTH)
|
||
yystacksize = YYMAXDEPTH;
|
||
yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
|
||
__yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
|
||
yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
|
||
__yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
|
||
#ifdef YYLSP_NEEDED
|
||
yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
|
||
__yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
|
||
#endif
|
||
#endif /* no yyoverflow */
|
||
|
||
yyssp = yyss + size - 1;
|
||
yyvsp = yyvs + size - 1;
|
||
#ifdef YYLSP_NEEDED
|
||
yylsp = yyls + size - 1;
|
||
#endif
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
fprintf(stderr, "Stack size increased to %d\n", yystacksize);
|
||
#endif
|
||
|
||
if (yyssp >= yyss + yystacksize - 1)
|
||
YYABORT;
|
||
}
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
fprintf(stderr, "Entering state %d\n", yystate);
|
||
#endif
|
||
|
||
yybackup:
|
||
|
||
/* Do appropriate processing given the current state. */
|
||
/* Read a lookahead token if we need one and don't already have one. */
|
||
/* yyresume: */
|
||
|
||
/* First try to decide what to do without reference to lookahead token. */
|
||
|
||
yyn = yypact[yystate];
|
||
if (yyn == YYFLAG)
|
||
goto yydefault;
|
||
|
||
/* Not known => get a lookahead token if don't already have one. */
|
||
|
||
/* yychar is either YYEMPTY or YYEOF
|
||
or a valid token in external form. */
|
||
|
||
if (yychar == YYEMPTY)
|
||
{
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
fprintf(stderr, "Reading a token: ");
|
||
#endif
|
||
yychar = YYLEX;
|
||
}
|
||
|
||
/* Convert token to internal form (in yychar1) for indexing tables with */
|
||
|
||
if (yychar <= 0) /* This means end of input. */
|
||
{
|
||
yychar1 = 0;
|
||
yychar = YYEOF; /* Don't call YYLEX any more */
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
fprintf(stderr, "Now at end of input.\n");
|
||
#endif
|
||
}
|
||
else
|
||
{
|
||
yychar1 = YYTRANSLATE(yychar);
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
{
|
||
fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
|
||
/* Give the individual parser a way to print the precise meaning
|
||
of a token, for further debugging info. */
|
||
#ifdef YYPRINT
|
||
YYPRINT (stderr, yychar, yylval);
|
||
#endif
|
||
fprintf (stderr, ")\n");
|
||
}
|
||
#endif
|
||
}
|
||
|
||
yyn += yychar1;
|
||
if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
|
||
goto yydefault;
|
||
|
||
yyn = yytable[yyn];
|
||
|
||
/* yyn is what to do for this token type in this state.
|
||
Negative => reduce, -yyn is rule number.
|
||
Positive => shift, yyn is new state.
|
||
New state is final state => don't bother to shift,
|
||
just return success.
|
||
0, or most negative number => error. */
|
||
|
||
if (yyn < 0)
|
||
{
|
||
if (yyn == YYFLAG)
|
||
goto yyerrlab;
|
||
yyn = -yyn;
|
||
goto yyreduce;
|
||
}
|
||
else if (yyn == 0)
|
||
goto yyerrlab;
|
||
|
||
if (yyn == YYFINAL)
|
||
YYACCEPT;
|
||
|
||
/* Shift the lookahead token. */
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
|
||
#endif
|
||
|
||
/* Discard the token being shifted unless it is eof. */
|
||
if (yychar != YYEOF)
|
||
yychar = YYEMPTY;
|
||
|
||
*++yyvsp = yylval;
|
||
#ifdef YYLSP_NEEDED
|
||
*++yylsp = yylloc;
|
||
#endif
|
||
|
||
/* count tokens shifted since error; after three, turn off error status. */
|
||
if (yyerrstatus) yyerrstatus--;
|
||
|
||
yystate = yyn;
|
||
goto yynewstate;
|
||
|
||
/* Do the default action for the current state. */
|
||
yydefault:
|
||
|
||
yyn = yydefact[yystate];
|
||
if (yyn == 0)
|
||
goto yyerrlab;
|
||
|
||
/* Do a reduction. yyn is the number of a rule to reduce with. */
|
||
yyreduce:
|
||
yylen = yyr2[yyn];
|
||
yyval = yyvsp[1-yylen]; /* implement default value of the action */
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
{
|
||
int i;
|
||
|
||
fprintf (stderr, "Reducing via rule %d (line %d), ",
|
||
yyn, yyrline[yyn]);
|
||
|
||
/* Print the symboles being reduced, and their result. */
|
||
for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
|
||
fprintf (stderr, "%s ", yytname[yyrhs[i]]);
|
||
fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
|
||
}
|
||
#endif
|
||
|
||
|
||
switch (yyn) {
|
||
|
||
case 1:
|
||
#line 219 "objc-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids an empty source file");
|
||
objc_finish (); ;
|
||
break;}
|
||
case 2:
|
||
#line 223 "objc-parse.y"
|
||
{ objc_finish (); ;
|
||
break;}
|
||
case 3:
|
||
#line 231 "objc-parse.y"
|
||
{yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 5:
|
||
#line 232 "objc-parse.y"
|
||
{yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 10:
|
||
#line 240 "objc-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids use of `asm' keyword");
|
||
if (TREE_CHAIN (yyvsp[-2].ttype)) yyvsp[-2].ttype = combine_strings (yyvsp[-2].ttype);
|
||
assemble_asm (yyvsp[-2].ttype); ;
|
||
break;}
|
||
case 11:
|
||
#line 248 "objc-parse.y"
|
||
{ if (pedantic)
|
||
error ("ANSI C forbids data definition with no type or storage class");
|
||
else if (!flag_traditional)
|
||
warning ("data definition has no type or storage class"); ;
|
||
break;}
|
||
case 12:
|
||
#line 253 "objc-parse.y"
|
||
{;
|
||
break;}
|
||
case 13:
|
||
#line 255 "objc-parse.y"
|
||
{;
|
||
break;}
|
||
case 14:
|
||
#line 257 "objc-parse.y"
|
||
{ error ("empty declaration"); ;
|
||
break;}
|
||
case 15:
|
||
#line 259 "objc-parse.y"
|
||
{ shadow_tag (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 18:
|
||
#line 263 "objc-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C does not allow extra `;' outside of a function"); ;
|
||
break;}
|
||
case 19:
|
||
#line 269 "objc-parse.y"
|
||
{ if (! start_function (yyvsp[-2].ttype, yyvsp[0].ttype, 0))
|
||
YYERROR1;
|
||
reinit_parse_for_function (); ;
|
||
break;}
|
||
case 20:
|
||
#line 273 "objc-parse.y"
|
||
{ store_parm_decls (); ;
|
||
break;}
|
||
case 21:
|
||
#line 275 "objc-parse.y"
|
||
{ finish_function (0); ;
|
||
break;}
|
||
case 22:
|
||
#line 277 "objc-parse.y"
|
||
{ ;
|
||
break;}
|
||
case 23:
|
||
#line 279 "objc-parse.y"
|
||
{ if (! start_function (yyvsp[-2].ttype, yyvsp[0].ttype, 0))
|
||
YYERROR1;
|
||
reinit_parse_for_function (); ;
|
||
break;}
|
||
case 24:
|
||
#line 283 "objc-parse.y"
|
||
{ store_parm_decls (); ;
|
||
break;}
|
||
case 25:
|
||
#line 285 "objc-parse.y"
|
||
{ finish_function (0); ;
|
||
break;}
|
||
case 26:
|
||
#line 287 "objc-parse.y"
|
||
{ ;
|
||
break;}
|
||
case 27:
|
||
#line 289 "objc-parse.y"
|
||
{ if (! start_function (0, yyvsp[0].ttype, 0))
|
||
YYERROR1;
|
||
reinit_parse_for_function (); ;
|
||
break;}
|
||
case 28:
|
||
#line 293 "objc-parse.y"
|
||
{ store_parm_decls (); ;
|
||
break;}
|
||
case 29:
|
||
#line 295 "objc-parse.y"
|
||
{ finish_function (0); ;
|
||
break;}
|
||
case 30:
|
||
#line 297 "objc-parse.y"
|
||
{ ;
|
||
break;}
|
||
case 33:
|
||
#line 304 "objc-parse.y"
|
||
{ yyval.ttype = CLASS_NAME (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 34:
|
||
#line 308 "objc-parse.y"
|
||
{ yyval.code = ADDR_EXPR; ;
|
||
break;}
|
||
case 35:
|
||
#line 310 "objc-parse.y"
|
||
{ yyval.code = NEGATE_EXPR; ;
|
||
break;}
|
||
case 36:
|
||
#line 312 "objc-parse.y"
|
||
{ yyval.code = CONVERT_EXPR; ;
|
||
break;}
|
||
case 37:
|
||
#line 314 "objc-parse.y"
|
||
{ yyval.code = PREINCREMENT_EXPR; ;
|
||
break;}
|
||
case 38:
|
||
#line 316 "objc-parse.y"
|
||
{ yyval.code = PREDECREMENT_EXPR; ;
|
||
break;}
|
||
case 39:
|
||
#line 318 "objc-parse.y"
|
||
{ yyval.code = BIT_NOT_EXPR; ;
|
||
break;}
|
||
case 40:
|
||
#line 320 "objc-parse.y"
|
||
{ yyval.code = TRUTH_NOT_EXPR; ;
|
||
break;}
|
||
case 41:
|
||
#line 324 "objc-parse.y"
|
||
{ yyval.ttype = build_compound_expr (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 42:
|
||
#line 329 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 44:
|
||
#line 335 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 45:
|
||
#line 337 "objc-parse.y"
|
||
{ chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
|
||
break;}
|
||
case 47:
|
||
#line 343 "objc-parse.y"
|
||
{ yyval.ttype = build_indirect_ref (yyvsp[0].ttype, "unary *"); ;
|
||
break;}
|
||
case 48:
|
||
#line 346 "objc-parse.y"
|
||
{ yyvsp[0].itype = pedantic;
|
||
pedantic = 0; ;
|
||
break;}
|
||
case 49:
|
||
#line 349 "objc-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
pedantic = yyvsp[-2].itype; ;
|
||
break;}
|
||
case 50:
|
||
#line 352 "objc-parse.y"
|
||
{ yyval.ttype = build_unary_op (yyvsp[-1].code, yyvsp[0].ttype, 0); ;
|
||
break;}
|
||
case 51:
|
||
#line 355 "objc-parse.y"
|
||
{ tree label = lookup_label (yyvsp[0].ttype);
|
||
TREE_USED (label) = 1;
|
||
yyval.ttype = build1 (ADDR_EXPR, ptr_type_node, label);
|
||
TREE_CONSTANT (yyval.ttype) = 1; ;
|
||
break;}
|
||
case 52:
|
||
#line 374 "objc-parse.y"
|
||
{ if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF
|
||
&& DECL_BIT_FIELD (TREE_OPERAND (yyvsp[0].ttype, 1)))
|
||
error ("`sizeof' applied to a bit-field");
|
||
yyval.ttype = c_sizeof (TREE_TYPE (yyvsp[0].ttype)); ;
|
||
break;}
|
||
case 53:
|
||
#line 379 "objc-parse.y"
|
||
{ yyval.ttype = c_sizeof (groktypename (yyvsp[-1].ttype)); ;
|
||
break;}
|
||
case 54:
|
||
#line 381 "objc-parse.y"
|
||
{ yyval.ttype = c_alignof_expr (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 55:
|
||
#line 383 "objc-parse.y"
|
||
{ yyval.ttype = c_alignof (groktypename (yyvsp[-1].ttype)); ;
|
||
break;}
|
||
case 57:
|
||
#line 389 "objc-parse.y"
|
||
{ tree type = groktypename (yyvsp[-2].ttype);
|
||
yyval.ttype = build_c_cast (type, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 58:
|
||
#line 392 "objc-parse.y"
|
||
{ tree type = groktypename (yyvsp[-5].ttype);
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids constructor expressions");
|
||
yyval.ttype = digest_init (type, build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)), 0, 0, 0);
|
||
if (TREE_CODE (type) == ARRAY_TYPE && TYPE_SIZE (type) == 0)
|
||
{
|
||
int failure = complete_array_type (type, yyval.ttype, 1);
|
||
if (failure)
|
||
abort ();
|
||
}
|
||
;
|
||
break;}
|
||
case 60:
|
||
#line 408 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 61:
|
||
#line 410 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 62:
|
||
#line 412 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 63:
|
||
#line 414 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 64:
|
||
#line 416 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 65:
|
||
#line 418 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 66:
|
||
#line 420 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 67:
|
||
#line 422 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 68:
|
||
#line 424 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 69:
|
||
#line 426 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 70:
|
||
#line 428 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 71:
|
||
#line 430 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 72:
|
||
#line 432 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (TRUTH_ANDIF_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 73:
|
||
#line 434 "objc-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (TRUTH_ORIF_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 74:
|
||
#line 436 "objc-parse.y"
|
||
{ yyval.ttype = build_conditional_expr (yyvsp[-4].ttype, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 75:
|
||
#line 438 "objc-parse.y"
|
||
{ yyval.ttype = build_modify_expr (yyvsp[-2].ttype, NOP_EXPR, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 76:
|
||
#line 440 "objc-parse.y"
|
||
{ yyval.ttype = build_modify_expr (yyvsp[-2].ttype, yyvsp[-1].code, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 77:
|
||
#line 445 "objc-parse.y"
|
||
{
|
||
tree context;
|
||
|
||
yyval.ttype = lastiddecl;
|
||
if (!yyval.ttype || yyval.ttype == error_mark_node)
|
||
{
|
||
if (yychar == YYEMPTY)
|
||
yychar = YYLEX;
|
||
if (yychar == '(')
|
||
{
|
||
if (objc_receiver_context
|
||
&& ! (objc_receiver_context
|
||
&& strcmp (IDENTIFIER_POINTER (yyvsp[0].ttype), "super")))
|
||
/* we have a message to super */
|
||
yyval.ttype = get_super_receiver ();
|
||
else if (objc_method_context
|
||
&& is_ivar (objc_ivar_chain, yyvsp[0].ttype))
|
||
yyval.ttype = build_ivar_reference (yyvsp[0].ttype);
|
||
else
|
||
{
|
||
/* Ordinary implicit function declaration. */
|
||
yyval.ttype = implicitly_declare (yyvsp[0].ttype);
|
||
assemble_external (yyval.ttype);
|
||
TREE_USED (yyval.ttype) = 1;
|
||
}
|
||
}
|
||
else if (current_function_decl == 0)
|
||
{
|
||
error ("`%s' undeclared, outside of functions",
|
||
IDENTIFIER_POINTER (yyvsp[0].ttype));
|
||
yyval.ttype = error_mark_node;
|
||
}
|
||
else
|
||
{
|
||
if (objc_receiver_context
|
||
&& ! (objc_receiver_context
|
||
&& strcmp (IDENTIFIER_POINTER (yyvsp[0].ttype), "super")))
|
||
/* we have a message to super */
|
||
yyval.ttype = get_super_receiver ();
|
||
else if (objc_method_context
|
||
&& is_ivar (objc_ivar_chain, yyvsp[0].ttype))
|
||
yyval.ttype = build_ivar_reference (yyvsp[0].ttype);
|
||
else
|
||
{
|
||
if (IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) != error_mark_node
|
||
|| IDENTIFIER_ERROR_LOCUS (yyvsp[0].ttype) != current_function_decl)
|
||
{
|
||
error ("`%s' undeclared (first use this function)",
|
||
IDENTIFIER_POINTER (yyvsp[0].ttype));
|
||
|
||
if (! undeclared_variable_notice)
|
||
{
|
||
error ("(Each undeclared identifier is reported only once");
|
||
error ("for each function it appears in.)");
|
||
undeclared_variable_notice = 1;
|
||
}
|
||
}
|
||
yyval.ttype = error_mark_node;
|
||
/* Prevent repeated error messages. */
|
||
IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) = error_mark_node;
|
||
IDENTIFIER_ERROR_LOCUS (yyvsp[0].ttype) = current_function_decl;
|
||
}
|
||
}
|
||
}
|
||
else
|
||
{
|
||
if (! TREE_USED (yyval.ttype))
|
||
{
|
||
if (TREE_EXTERNAL (yyval.ttype))
|
||
assemble_external (yyval.ttype);
|
||
TREE_USED (yyval.ttype) = 1;
|
||
}
|
||
/* we have a definition - still check if iVariable */
|
||
|
||
if (!objc_receiver_context
|
||
|| (objc_receiver_context
|
||
&& strcmp (IDENTIFIER_POINTER (yyvsp[0].ttype), "super")))
|
||
{
|
||
if (objc_method_context
|
||
&& is_ivar (objc_ivar_chain, yyvsp[0].ttype))
|
||
{
|
||
if (IDENTIFIER_LOCAL_VALUE (yyvsp[0].ttype))
|
||
warning ("local declaration of `%s' hides instance variable",
|
||
IDENTIFIER_POINTER (yyvsp[0].ttype));
|
||
else
|
||
yyval.ttype = build_ivar_reference (yyvsp[0].ttype);
|
||
}
|
||
}
|
||
else /* we have a message to super */
|
||
yyval.ttype = get_super_receiver ();
|
||
}
|
||
|
||
if (TREE_CODE (yyval.ttype) == CONST_DECL)
|
||
yyval.ttype = DECL_INITIAL (yyval.ttype);
|
||
;
|
||
break;}
|
||
case 79:
|
||
#line 542 "objc-parse.y"
|
||
{ yyval.ttype = combine_strings (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 80:
|
||
#line 544 "objc-parse.y"
|
||
{ char class = TREE_CODE_CLASS (TREE_CODE (yyvsp[-1].ttype));
|
||
if (class == 'e' || class == '1'
|
||
|| class == '2' || class == '<')
|
||
C_SET_EXP_ORIGINAL_CODE (yyvsp[-1].ttype, ERROR_MARK);
|
||
yyval.ttype = yyvsp[-1].ttype; ;
|
||
break;}
|
||
case 81:
|
||
#line 550 "objc-parse.y"
|
||
{ yyval.ttype = error_mark_node; ;
|
||
break;}
|
||
case 82:
|
||
#line 552 "objc-parse.y"
|
||
{ if (current_function_decl == 0)
|
||
{
|
||
error ("braced-group within expression allowed only inside a function");
|
||
YYERROR;
|
||
}
|
||
/* We must force a BLOCK for this level
|
||
so that, if it is not expanded later,
|
||
there is a way to turn off the entire subtree of blocks
|
||
that are contained in it. */
|
||
keep_next_level ();
|
||
push_label_level ();
|
||
yyval.ttype = expand_start_stmt_expr (); ;
|
||
break;}
|
||
case 83:
|
||
#line 565 "objc-parse.y"
|
||
{ tree rtl_exp;
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids braced-groups within expressions");
|
||
pop_label_level ();
|
||
rtl_exp = expand_end_stmt_expr (yyvsp[-2].ttype);
|
||
/* The statements have side effects, so the group does. */
|
||
TREE_SIDE_EFFECTS (rtl_exp) = 1;
|
||
|
||
/* Make a BIND_EXPR for the BLOCK already made. */
|
||
yyval.ttype = build (BIND_EXPR, TREE_TYPE (rtl_exp),
|
||
NULL_TREE, rtl_exp, yyvsp[-1].ttype);
|
||
;
|
||
break;}
|
||
case 84:
|
||
#line 578 "objc-parse.y"
|
||
{ yyval.ttype = build_function_call (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 85:
|
||
#line 580 "objc-parse.y"
|
||
{ yyval.ttype = build_array_ref (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 86:
|
||
#line 582 "objc-parse.y"
|
||
{
|
||
if (doing_objc_thang)
|
||
{
|
||
if (is_public (yyvsp[-2].ttype, yyvsp[0].ttype))
|
||
yyval.ttype = build_component_ref (yyvsp[-2].ttype, yyvsp[0].ttype);
|
||
else
|
||
yyval.ttype = error_mark_node;
|
||
}
|
||
else
|
||
yyval.ttype = build_component_ref (yyvsp[-2].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 87:
|
||
#line 594 "objc-parse.y"
|
||
{
|
||
tree anExpr = build_indirect_ref (yyvsp[-2].ttype, "->");
|
||
|
||
if (doing_objc_thang)
|
||
{
|
||
if (is_public (anExpr, yyvsp[0].ttype))
|
||
yyval.ttype = build_component_ref (anExpr, yyvsp[0].ttype);
|
||
else
|
||
yyval.ttype = error_mark_node;
|
||
}
|
||
else
|
||
yyval.ttype = build_component_ref (anExpr, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 88:
|
||
#line 608 "objc-parse.y"
|
||
{ yyval.ttype = build_unary_op (POSTINCREMENT_EXPR, yyvsp[-1].ttype, 0); ;
|
||
break;}
|
||
case 89:
|
||
#line 610 "objc-parse.y"
|
||
{ yyval.ttype = build_unary_op (POSTDECREMENT_EXPR, yyvsp[-1].ttype, 0); ;
|
||
break;}
|
||
case 90:
|
||
#line 612 "objc-parse.y"
|
||
{ yyval.ttype = build_message_expr (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 91:
|
||
#line 614 "objc-parse.y"
|
||
{ yyval.ttype = build_selector_expr (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 92:
|
||
#line 616 "objc-parse.y"
|
||
{ yyval.ttype = build_encode_expr (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 94:
|
||
#line 623 "objc-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 97:
|
||
#line 631 "objc-parse.y"
|
||
{ c_mark_varargs ();
|
||
if (pedantic)
|
||
pedwarn ("ANSI C does not permit use of `varargs.h'"); ;
|
||
break;}
|
||
case 98:
|
||
#line 642 "objc-parse.y"
|
||
{ ;
|
||
break;}
|
||
case 103:
|
||
#line 657 "objc-parse.y"
|
||
{ yyval.itype = suspend_momentary ();
|
||
pending_xref_error ();
|
||
declspec_stack = tree_cons (0, current_declspecs,
|
||
declspec_stack);
|
||
current_declspecs = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 104:
|
||
#line 666 "objc-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 105:
|
||
#line 670 "objc-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 106:
|
||
#line 674 "objc-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-1].itype); ;
|
||
break;}
|
||
case 107:
|
||
#line 678 "objc-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-1].itype); ;
|
||
break;}
|
||
case 108:
|
||
#line 682 "objc-parse.y"
|
||
{ shadow_tag (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 109:
|
||
#line 684 "objc-parse.y"
|
||
{ pedwarn ("empty declaration"); ;
|
||
break;}
|
||
case 110:
|
||
#line 693 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 111:
|
||
#line 695 "objc-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
|
||
break;}
|
||
case 112:
|
||
#line 699 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 113:
|
||
#line 701 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 114:
|
||
#line 703 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 115:
|
||
#line 712 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 116:
|
||
#line 714 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 117:
|
||
#line 716 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 118:
|
||
#line 718 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 119:
|
||
#line 728 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 120:
|
||
#line 730 "objc-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
|
||
break;}
|
||
case 121:
|
||
#line 734 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 122:
|
||
#line 736 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 126:
|
||
#line 747 "objc-parse.y"
|
||
{ yyval.ttype = get_static_reference (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 127:
|
||
#line 749 "objc-parse.y"
|
||
{ yyval.ttype = TREE_TYPE (yyvsp[-1].ttype);
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids `typeof'"); ;
|
||
break;}
|
||
case 128:
|
||
#line 753 "objc-parse.y"
|
||
{ yyval.ttype = groktypename (yyvsp[-1].ttype);
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids `typeof'"); ;
|
||
break;}
|
||
case 136:
|
||
#line 777 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 137:
|
||
#line 779 "objc-parse.y"
|
||
{ if (TREE_CHAIN (yyvsp[-1].ttype)) yyvsp[-1].ttype = combine_strings (yyvsp[-1].ttype);
|
||
yyval.ttype = yyvsp[-1].ttype;
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids use of `asm' keyword");
|
||
;
|
||
break;}
|
||
case 138:
|
||
#line 788 "objc-parse.y"
|
||
{ yyval.ttype = start_decl (yyvsp[-3].ttype, current_declspecs, 1); ;
|
||
break;}
|
||
case 139:
|
||
#line 791 "objc-parse.y"
|
||
{ decl_attributes (yyvsp[-1].ttype, yyvsp[-3].ttype);
|
||
finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
|
||
break;}
|
||
case 140:
|
||
#line 794 "objc-parse.y"
|
||
{ tree d = start_decl (yyvsp[-2].ttype, current_declspecs, 0);
|
||
decl_attributes (d, yyvsp[0].ttype);
|
||
finish_decl (d, NULL_TREE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 141:
|
||
#line 801 "objc-parse.y"
|
||
{ yyval.ttype = start_decl (yyvsp[-3].ttype, current_declspecs, 1); ;
|
||
break;}
|
||
case 142:
|
||
#line 804 "objc-parse.y"
|
||
{ decl_attributes (yyvsp[-1].ttype, yyvsp[-3].ttype);
|
||
finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
|
||
break;}
|
||
case 143:
|
||
#line 807 "objc-parse.y"
|
||
{ tree d = start_decl (yyvsp[-2].ttype, current_declspecs, 0);
|
||
decl_attributes (d, yyvsp[0].ttype);
|
||
finish_decl (d, NULL_TREE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 144:
|
||
#line 815 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 145:
|
||
#line 817 "objc-parse.y"
|
||
{ yyval.ttype = yyvsp[-2].ttype; ;
|
||
break;}
|
||
case 146:
|
||
#line 822 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 147:
|
||
#line 824 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype); ;
|
||
break;}
|
||
case 148:
|
||
#line 829 "objc-parse.y"
|
||
{ warning ("`%s' attribute directive ignored",
|
||
IDENTIFIER_POINTER (yyvsp[0].ttype));
|
||
yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 149:
|
||
#line 833 "objc-parse.y"
|
||
{ /* if not "aligned(n)", then issue warning */
|
||
if (strcmp (IDENTIFIER_POINTER (yyvsp[-3].ttype), "aligned") != 0
|
||
|| TREE_CODE (yyvsp[-1].ttype) != INTEGER_CST)
|
||
{
|
||
warning ("`%s' attribute directive ignored",
|
||
IDENTIFIER_POINTER (yyvsp[-3].ttype));
|
||
yyval.ttype = yyvsp[-3].ttype;
|
||
}
|
||
else
|
||
yyval.ttype = tree_cons (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 150:
|
||
#line 844 "objc-parse.y"
|
||
{ /* if not "format(...)", then issue warning */
|
||
if (strcmp (IDENTIFIER_POINTER (yyvsp[-7].ttype), "format") != 0
|
||
|| TREE_CODE (yyvsp[-3].ttype) != INTEGER_CST
|
||
|| TREE_CODE (yyvsp[-1].ttype) != INTEGER_CST)
|
||
{
|
||
warning ("`%s' attribute directive ignored",
|
||
IDENTIFIER_POINTER (yyvsp[-7].ttype));
|
||
yyval.ttype = yyvsp[-7].ttype;
|
||
}
|
||
else
|
||
yyval.ttype = tree_cons (yyvsp[-7].ttype, tree_cons (yyvsp[-5].ttype, tree_cons (yyvsp[-3].ttype, yyvsp[-1].ttype))); ;
|
||
break;}
|
||
case 152:
|
||
#line 860 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, NULL_TREE);
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids empty initializer braces"); ;
|
||
break;}
|
||
case 153:
|
||
#line 864 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-1].ttype)); ;
|
||
break;}
|
||
case 154:
|
||
#line 866 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)); ;
|
||
break;}
|
||
case 155:
|
||
#line 868 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 156:
|
||
#line 875 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 157:
|
||
#line 877 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype); ;
|
||
break;}
|
||
case 158:
|
||
#line 880 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 159:
|
||
#line 882 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyvsp[-5].ttype); ;
|
||
break;}
|
||
case 160:
|
||
#line 884 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 161:
|
||
#line 886 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
|
||
break;}
|
||
case 162:
|
||
#line 891 "objc-parse.y"
|
||
{ push_c_function_context ();
|
||
if (! start_function (current_declspecs, yyvsp[0].ttype, 1))
|
||
{
|
||
pop_c_function_context ();
|
||
YYERROR1;
|
||
}
|
||
reinit_parse_for_function ();
|
||
store_parm_decls (); ;
|
||
break;}
|
||
case 163:
|
||
#line 906 "objc-parse.y"
|
||
{ finish_function (1);
|
||
pop_c_function_context (); ;
|
||
break;}
|
||
case 164:
|
||
#line 912 "objc-parse.y"
|
||
{ push_c_function_context ();
|
||
if (! start_function (current_declspecs, yyvsp[0].ttype, 1))
|
||
{
|
||
pop_c_function_context ();
|
||
YYERROR1;
|
||
}
|
||
reinit_parse_for_function ();
|
||
store_parm_decls (); ;
|
||
break;}
|
||
case 165:
|
||
#line 927 "objc-parse.y"
|
||
{ finish_function (1);
|
||
pop_c_function_context (); ;
|
||
break;}
|
||
case 168:
|
||
#line 943 "objc-parse.y"
|
||
{ yyval.ttype = yyvsp[-1].ttype; ;
|
||
break;}
|
||
case 169:
|
||
#line 945 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 170:
|
||
#line 950 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 171:
|
||
#line 952 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 172:
|
||
#line 954 "objc-parse.y"
|
||
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 174:
|
||
#line 965 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 175:
|
||
#line 970 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 176:
|
||
#line 972 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 177:
|
||
#line 974 "objc-parse.y"
|
||
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 179:
|
||
#line 983 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 180:
|
||
#line 988 "objc-parse.y"
|
||
{ yyval.ttype = yyvsp[-1].ttype; ;
|
||
break;}
|
||
case 181:
|
||
#line 990 "objc-parse.y"
|
||
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 182:
|
||
#line 992 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 183:
|
||
#line 994 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 185:
|
||
#line 1000 "objc-parse.y"
|
||
{ yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype);
|
||
/* Start scope of tag before parsing components. */
|
||
;
|
||
break;}
|
||
case 186:
|
||
#line 1004 "objc-parse.y"
|
||
{ yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype);
|
||
/* Really define the structure. */
|
||
;
|
||
break;}
|
||
case 187:
|
||
#line 1008 "objc-parse.y"
|
||
{ yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
|
||
yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 188:
|
||
#line 1011 "objc-parse.y"
|
||
{ yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 189:
|
||
#line 1013 "objc-parse.y"
|
||
{ yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 190:
|
||
#line 1015 "objc-parse.y"
|
||
{ yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 191:
|
||
#line 1017 "objc-parse.y"
|
||
{ yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
|
||
yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 192:
|
||
#line 1020 "objc-parse.y"
|
||
{ yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 193:
|
||
#line 1022 "objc-parse.y"
|
||
{ yyvsp[0].itype = suspend_momentary ();
|
||
yyval.ttype = start_enum (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 194:
|
||
#line 1025 "objc-parse.y"
|
||
{ yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
|
||
resume_momentary (yyvsp[-4].itype); ;
|
||
break;}
|
||
case 195:
|
||
#line 1028 "objc-parse.y"
|
||
{ yyvsp[0].itype = suspend_momentary ();
|
||
yyval.ttype = start_enum (NULL_TREE); ;
|
||
break;}
|
||
case 196:
|
||
#line 1031 "objc-parse.y"
|
||
{ yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
|
||
resume_momentary (yyvsp[-4].itype); ;
|
||
break;}
|
||
case 197:
|
||
#line 1034 "objc-parse.y"
|
||
{ yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 201:
|
||
#line 1045 "objc-parse.y"
|
||
{ if (pedantic) pedwarn ("comma at end of enumerator list"); ;
|
||
break;}
|
||
case 202:
|
||
#line 1050 "objc-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 203:
|
||
#line 1052 "objc-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
|
||
warning ("no semicolon at end of struct or union"); ;
|
||
break;}
|
||
case 204:
|
||
#line 1057 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 205:
|
||
#line 1059 "objc-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 206:
|
||
#line 1061 "objc-parse.y"
|
||
{ if (pedantic)
|
||
warning ("extra semicolon in struct or union specified"); ;
|
||
break;}
|
||
case 207:
|
||
#line 1065 "objc-parse.y"
|
||
{ yyval.ttype = get_class_ivars (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 208:
|
||
#line 1079 "objc-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-1].itype); ;
|
||
break;}
|
||
case 209:
|
||
#line 1084 "objc-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids member declarations with no members");
|
||
shadow_tag(yyvsp[0].ttype);
|
||
yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 210:
|
||
#line 1089 "objc-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-1].itype); ;
|
||
break;}
|
||
case 211:
|
||
#line 1094 "objc-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids member declarations with no members");
|
||
shadow_tag(yyvsp[0].ttype);
|
||
yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 212:
|
||
#line 1099 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 214:
|
||
#line 1105 "objc-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 215:
|
||
#line 1110 "objc-parse.y"
|
||
{ yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, yyvsp[-1].ttype, current_declspecs, NULL_TREE);
|
||
decl_attributes (yyval.ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 216:
|
||
#line 1114 "objc-parse.y"
|
||
{ yyval.ttype = grokfield (yyvsp[-5].filename, yyvsp[-4].lineno, yyvsp[-3].ttype, current_declspecs, yyvsp[-1].ttype);
|
||
decl_attributes (yyval.ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 217:
|
||
#line 1117 "objc-parse.y"
|
||
{ yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, NULL_TREE, current_declspecs, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 219:
|
||
#line 1128 "objc-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ;
|
||
break;}
|
||
case 220:
|
||
#line 1134 "objc-parse.y"
|
||
{ yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 221:
|
||
#line 1136 "objc-parse.y"
|
||
{ yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 222:
|
||
#line 1141 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 223:
|
||
#line 1143 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 224:
|
||
#line 1148 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 226:
|
||
#line 1154 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 227:
|
||
#line 1156 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 228:
|
||
#line 1161 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 229:
|
||
#line 1163 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 230:
|
||
#line 1168 "objc-parse.y"
|
||
{ yyval.ttype = yyvsp[-1].ttype; ;
|
||
break;}
|
||
case 231:
|
||
#line 1171 "objc-parse.y"
|
||
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 232:
|
||
#line 1173 "objc-parse.y"
|
||
{ yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 233:
|
||
#line 1175 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 234:
|
||
#line 1177 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 235:
|
||
#line 1179 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 236:
|
||
#line 1181 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 237:
|
||
#line 1183 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 238:
|
||
#line 1185 "objc-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ;
|
||
break;}
|
||
case 245:
|
||
#line 1207 "objc-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
pushlevel (0);
|
||
clear_last_expr ();
|
||
push_momentary ();
|
||
expand_start_bindings (0);
|
||
if (objc_method_context)
|
||
add_objc_decls (); ;
|
||
break;}
|
||
case 247:
|
||
#line 1221 "objc-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids label declarations"); ;
|
||
break;}
|
||
case 250:
|
||
#line 1232 "objc-parse.y"
|
||
{ tree link;
|
||
for (link = yyvsp[-1].ttype; link; link = TREE_CHAIN (link))
|
||
{
|
||
tree label = shadow_label (TREE_VALUE (link));
|
||
C_DECLARED_LABEL_FLAG (label) = 1;
|
||
declare_nonlocal_label (label);
|
||
}
|
||
;
|
||
break;}
|
||
case 251:
|
||
#line 1249 "objc-parse.y"
|
||
{;
|
||
break;}
|
||
case 253:
|
||
#line 1254 "objc-parse.y"
|
||
{ yyval.ttype = convert (void_type_node, integer_zero_node); ;
|
||
break;}
|
||
case 254:
|
||
#line 1256 "objc-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
expand_end_bindings (getdecls (), 1, 0);
|
||
yyval.ttype = poplevel (1, 1, 0);
|
||
pop_momentary (); ;
|
||
break;}
|
||
case 255:
|
||
#line 1261 "objc-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
expand_end_bindings (getdecls (), kept_level_p (), 0);
|
||
yyval.ttype = poplevel (kept_level_p (), 0, 0);
|
||
pop_momentary (); ;
|
||
break;}
|
||
case 256:
|
||
#line 1266 "objc-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
expand_end_bindings (getdecls (), kept_level_p (), 0);
|
||
yyval.ttype = poplevel (kept_level_p (), 0, 0);
|
||
pop_momentary (); ;
|
||
break;}
|
||
case 257:
|
||
#line 1275 "objc-parse.y"
|
||
{ emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
|
||
expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0);
|
||
yyvsp[-3].itype = stmt_count;
|
||
if_stmt_file = yyvsp[-5].filename;
|
||
if_stmt_line = yyvsp[-4].lineno;
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 259:
|
||
#line 1285 "objc-parse.y"
|
||
{ yyval.filename = input_filename; ;
|
||
break;}
|
||
case 260:
|
||
#line 1289 "objc-parse.y"
|
||
{ yyval.lineno = lineno; ;
|
||
break;}
|
||
case 261:
|
||
#line 1294 "objc-parse.y"
|
||
{ ;
|
||
break;}
|
||
case 262:
|
||
#line 1299 "objc-parse.y"
|
||
{ stmt_count++; ;
|
||
break;}
|
||
case 263:
|
||
#line 1301 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
|
||
c_expand_expr_stmt (yyvsp[-1].ttype);
|
||
clear_momentary (); ;
|
||
break;}
|
||
case 264:
|
||
#line 1306 "objc-parse.y"
|
||
{ expand_start_else ();
|
||
yyvsp[-1].itype = stmt_count;
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 265:
|
||
#line 1310 "objc-parse.y"
|
||
{ expand_end_cond ();
|
||
if (extra_warnings && stmt_count == yyvsp[-3].itype)
|
||
warning ("empty body in an else-statement"); ;
|
||
break;}
|
||
case 266:
|
||
#line 1314 "objc-parse.y"
|
||
{ expand_end_cond ();
|
||
if (extra_warnings && stmt_count == yyvsp[0].itype)
|
||
warning_with_file_and_line (if_stmt_file, if_stmt_line,
|
||
"empty body in an if-statement"); ;
|
||
break;}
|
||
case 267:
|
||
#line 1319 "objc-parse.y"
|
||
{ emit_nop ();
|
||
stmt_count++;
|
||
emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
|
||
expand_start_loop (1); ;
|
||
break;}
|
||
case 268:
|
||
#line 1324 "objc-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
expand_exit_loop_if_false (0, truthvalue_conversion (yyvsp[-1].ttype));
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 269:
|
||
#line 1328 "objc-parse.y"
|
||
{ expand_end_loop (); ;
|
||
break;}
|
||
case 270:
|
||
#line 1330 "objc-parse.y"
|
||
{ emit_nop ();
|
||
stmt_count++;
|
||
emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
|
||
expand_start_loop_continue_elsewhere (1);
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 271:
|
||
#line 1336 "objc-parse.y"
|
||
{ expand_loop_continue_here (); ;
|
||
break;}
|
||
case 272:
|
||
#line 1338 "objc-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
expand_exit_loop_if_false (0, truthvalue_conversion (yyvsp[-2].ttype));
|
||
expand_end_loop ();
|
||
clear_momentary (); ;
|
||
break;}
|
||
case 273:
|
||
#line 1344 "objc-parse.y"
|
||
{ emit_nop ();
|
||
stmt_count++;
|
||
emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
|
||
if (yyvsp[-1].ttype) c_expand_expr_stmt (yyvsp[-1].ttype);
|
||
expand_start_loop_continue_elsewhere (1); ;
|
||
break;}
|
||
case 274:
|
||
#line 1350 "objc-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
if (yyvsp[-1].ttype)
|
||
expand_exit_loop_if_false (0, truthvalue_conversion (yyvsp[-1].ttype)); ;
|
||
break;}
|
||
case 275:
|
||
#line 1356 "objc-parse.y"
|
||
{ push_momentary ();
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 276:
|
||
#line 1359 "objc-parse.y"
|
||
{ emit_line_note (yyvsp[-13].filename, yyvsp[-12].lineno);
|
||
expand_loop_continue_here ();
|
||
if (yyvsp[-3].ttype)
|
||
c_expand_expr_stmt (yyvsp[-3].ttype);
|
||
pop_momentary ();
|
||
expand_end_loop (); ;
|
||
break;}
|
||
case 277:
|
||
#line 1366 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
|
||
c_expand_start_case (yyvsp[-1].ttype);
|
||
/* Don't let the tree nodes for $3 be discarded by
|
||
clear_momentary during the parsing of the next stmt. */
|
||
push_momentary ();
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 278:
|
||
#line 1374 "objc-parse.y"
|
||
{ expand_end_case (yyvsp[-3].ttype);
|
||
pop_momentary (); ;
|
||
break;}
|
||
case 279:
|
||
#line 1377 "objc-parse.y"
|
||
{ register tree value = check_case_value (yyvsp[-1].ttype);
|
||
register tree label
|
||
= build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
|
||
|
||
stmt_count++;
|
||
|
||
if (value != error_mark_node)
|
||
{
|
||
tree duplicate;
|
||
int success = pushcase (value, label, &duplicate);
|
||
if (success == 1)
|
||
error ("case label not within a switch statement");
|
||
else if (success == 2)
|
||
{
|
||
error ("duplicate case value");
|
||
error_with_decl (duplicate, "this is the first entry for that value");
|
||
}
|
||
else if (success == 3)
|
||
warning ("case value out of range");
|
||
else if (success == 5)
|
||
error ("case label within scope of cleanup or variable array");
|
||
}
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 281:
|
||
#line 1402 "objc-parse.y"
|
||
{ register tree value1 = check_case_value (yyvsp[-3].ttype);
|
||
register tree value2 = check_case_value (yyvsp[-1].ttype);
|
||
register tree label
|
||
= build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
|
||
|
||
stmt_count++;
|
||
|
||
if (value1 != error_mark_node && value2 != error_mark_node)
|
||
{
|
||
tree duplicate;
|
||
int success = pushcase_range (value1, value2, label,
|
||
&duplicate);
|
||
if (success == 1)
|
||
error ("case label not within a switch statement");
|
||
else if (success == 2)
|
||
{
|
||
error ("duplicate case value");
|
||
error_with_decl (duplicate, "this is the first entry overlapping that value");
|
||
}
|
||
else if (success == 3)
|
||
warning ("case value out of range");
|
||
else if (success == 4)
|
||
warning ("empty case range");
|
||
else if (success == 5)
|
||
error ("case label within scope of cleanup or variable array");
|
||
}
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 283:
|
||
#line 1431 "objc-parse.y"
|
||
{
|
||
tree duplicate;
|
||
register tree label
|
||
= build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
|
||
int success = pushcase (NULL_TREE, label, &duplicate);
|
||
stmt_count++;
|
||
if (success == 1)
|
||
error ("default label not within a switch statement");
|
||
else if (success == 2)
|
||
{
|
||
error ("multiple default labels in one switch");
|
||
error_with_decl (duplicate, "this is the first default albel");
|
||
}
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 285:
|
||
#line 1447 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
|
||
if ( ! expand_exit_something ())
|
||
error ("break statement not within loop or switch"); ;
|
||
break;}
|
||
case 286:
|
||
#line 1452 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
|
||
if (! expand_continue_loop (0))
|
||
error ("continue statement not within a loop"); ;
|
||
break;}
|
||
case 287:
|
||
#line 1457 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
|
||
c_expand_return (NULL_TREE); ;
|
||
break;}
|
||
case 288:
|
||
#line 1461 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
|
||
c_expand_return (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 289:
|
||
#line 1465 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-7].filename, yyvsp[-6].lineno);
|
||
if (TREE_CHAIN (yyvsp[-2].ttype)) yyvsp[-2].ttype = combine_strings (yyvsp[-2].ttype);
|
||
expand_asm (yyvsp[-2].ttype); ;
|
||
break;}
|
||
case 290:
|
||
#line 1471 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-9].filename, yyvsp[-8].lineno);
|
||
if (TREE_CHAIN (yyvsp[-4].ttype)) yyvsp[-4].ttype = combine_strings (yyvsp[-4].ttype);
|
||
c_expand_asm_operands (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, NULL_TREE,
|
||
yyvsp[-6].ttype == ridpointers[(int)RID_VOLATILE],
|
||
input_filename, lineno); ;
|
||
break;}
|
||
case 291:
|
||
#line 1479 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-11].filename, yyvsp[-10].lineno);
|
||
if (TREE_CHAIN (yyvsp[-6].ttype)) yyvsp[-6].ttype = combine_strings (yyvsp[-6].ttype);
|
||
c_expand_asm_operands (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE,
|
||
yyvsp[-8].ttype == ridpointers[(int)RID_VOLATILE],
|
||
input_filename, lineno); ;
|
||
break;}
|
||
case 292:
|
||
#line 1488 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-13].filename, yyvsp[-12].lineno);
|
||
if (TREE_CHAIN (yyvsp[-8].ttype)) yyvsp[-8].ttype = combine_strings (yyvsp[-8].ttype);
|
||
c_expand_asm_operands (yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype,
|
||
yyvsp[-10].ttype == ridpointers[(int)RID_VOLATILE],
|
||
input_filename, lineno); ;
|
||
break;}
|
||
case 293:
|
||
#line 1495 "objc-parse.y"
|
||
{ tree decl;
|
||
stmt_count++;
|
||
emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
|
||
decl = lookup_label (yyvsp[-1].ttype);
|
||
if (decl != 0)
|
||
{
|
||
TREE_USED (decl) = 1;
|
||
expand_goto (decl);
|
||
}
|
||
;
|
||
break;}
|
||
case 294:
|
||
#line 1506 "objc-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
|
||
expand_computed_goto (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 295:
|
||
#line 1510 "objc-parse.y"
|
||
{ tree label = define_label (input_filename, lineno, yyvsp[-1].ttype);
|
||
stmt_count++;
|
||
emit_nop ();
|
||
if (label)
|
||
expand_label (label);
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 298:
|
||
#line 1524 "objc-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids use of `asm' keyword");
|
||
emit_line_note (input_filename, lineno); ;
|
||
break;}
|
||
case 299:
|
||
#line 1528 "objc-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids use of `asm' keyword");
|
||
emit_line_note (input_filename, lineno); ;
|
||
break;}
|
||
case 300:
|
||
#line 1535 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 302:
|
||
#line 1542 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 305:
|
||
#line 1549 "objc-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 306:
|
||
#line 1554 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 307:
|
||
#line 1559 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), NULL_TREE); ;
|
||
break;}
|
||
case 308:
|
||
#line 1561 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), yyvsp[-2].ttype); ;
|
||
break;}
|
||
case 309:
|
||
#line 1567 "objc-parse.y"
|
||
{ pushlevel (0);
|
||
declare_parm_level (0); ;
|
||
break;}
|
||
case 310:
|
||
#line 1570 "objc-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
parmlist_tags_warning ();
|
||
poplevel (0, 0, 0); ;
|
||
break;}
|
||
case 311:
|
||
#line 1578 "objc-parse.y"
|
||
{ pushlevel (0);
|
||
declare_parm_level (1); ;
|
||
break;}
|
||
case 312:
|
||
#line 1581 "objc-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
parmlist_tags_warning ();
|
||
poplevel (0, 0, 0); ;
|
||
break;}
|
||
case 314:
|
||
#line 1589 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 315:
|
||
#line 1591 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
|
||
break;}
|
||
case 317:
|
||
#line 1597 "objc-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
|
||
break;}
|
||
case 318:
|
||
#line 1603 "objc-parse.y"
|
||
{ yyval.ttype = get_parm_info (0); ;
|
||
break;}
|
||
case 319:
|
||
#line 1605 "objc-parse.y"
|
||
{ yyval.ttype = get_parm_info (1); ;
|
||
break;}
|
||
case 320:
|
||
#line 1607 "objc-parse.y"
|
||
{ yyval.ttype = get_parm_info (0); ;
|
||
break;}
|
||
case 321:
|
||
#line 1612 "objc-parse.y"
|
||
{ push_parm_decl (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 322:
|
||
#line 1614 "objc-parse.y"
|
||
{ push_parm_decl (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 323:
|
||
#line 1621 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype) ; ;
|
||
break;}
|
||
case 324:
|
||
#line 1623 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype) ; ;
|
||
break;}
|
||
case 325:
|
||
#line 1625 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 326:
|
||
#line 1627 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype) ; ;
|
||
break;}
|
||
case 327:
|
||
#line 1629 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 328:
|
||
#line 1635 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 329:
|
||
#line 1637 "objc-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
|
||
break;}
|
||
case 332:
|
||
#line 1647 "objc-parse.y"
|
||
{
|
||
if (objc_implementation_context)
|
||
{
|
||
finish_class (objc_implementation_context);
|
||
objc_ivar_chain = NULL_TREE;
|
||
objc_implementation_context = NULL_TREE;
|
||
}
|
||
else
|
||
warning ("`@end' must appear in an implementation context");
|
||
;
|
||
break;}
|
||
case 333:
|
||
#line 1661 "objc-parse.y"
|
||
{
|
||
objc_interface_context = objc_ivar_context
|
||
= start_class (INTERFACE_TYPE, yyvsp[-1].ttype, NULL_TREE);
|
||
objc_public_flag = 0;
|
||
;
|
||
break;}
|
||
case 334:
|
||
#line 1667 "objc-parse.y"
|
||
{
|
||
continue_class (objc_interface_context);
|
||
;
|
||
break;}
|
||
case 335:
|
||
#line 1672 "objc-parse.y"
|
||
{
|
||
finish_class (objc_interface_context);
|
||
objc_interface_context = NULL_TREE;
|
||
;
|
||
break;}
|
||
case 336:
|
||
#line 1678 "objc-parse.y"
|
||
{
|
||
objc_interface_context
|
||
= start_class (INTERFACE_TYPE, yyvsp[0].ttype, NULL_TREE);
|
||
continue_class (objc_interface_context);
|
||
;
|
||
break;}
|
||
case 337:
|
||
#line 1685 "objc-parse.y"
|
||
{
|
||
finish_class (objc_interface_context);
|
||
objc_interface_context = NULL_TREE;
|
||
;
|
||
break;}
|
||
case 338:
|
||
#line 1691 "objc-parse.y"
|
||
{
|
||
objc_interface_context = objc_ivar_context
|
||
= start_class (INTERFACE_TYPE, yyvsp[-3].ttype, yyvsp[-1].ttype);
|
||
objc_public_flag = 0;
|
||
;
|
||
break;}
|
||
case 339:
|
||
#line 1697 "objc-parse.y"
|
||
{
|
||
continue_class (objc_interface_context);
|
||
;
|
||
break;}
|
||
case 340:
|
||
#line 1702 "objc-parse.y"
|
||
{
|
||
finish_class (objc_interface_context);
|
||
objc_interface_context = NULL_TREE;
|
||
;
|
||
break;}
|
||
case 341:
|
||
#line 1708 "objc-parse.y"
|
||
{
|
||
objc_interface_context
|
||
= start_class (INTERFACE_TYPE, yyvsp[-2].ttype, yyvsp[0].ttype);
|
||
continue_class (objc_interface_context);
|
||
;
|
||
break;}
|
||
case 342:
|
||
#line 1715 "objc-parse.y"
|
||
{
|
||
finish_class (objc_interface_context);
|
||
objc_interface_context = NULL_TREE;
|
||
;
|
||
break;}
|
||
case 343:
|
||
#line 1721 "objc-parse.y"
|
||
{
|
||
objc_implementation_context = objc_ivar_context
|
||
= start_class (IMPLEMENTATION_TYPE, yyvsp[-1].ttype, NULL_TREE);
|
||
objc_public_flag = 0;
|
||
;
|
||
break;}
|
||
case 344:
|
||
#line 1727 "objc-parse.y"
|
||
{
|
||
objc_ivar_chain
|
||
= continue_class (objc_implementation_context);
|
||
;
|
||
break;}
|
||
case 345:
|
||
#line 1733 "objc-parse.y"
|
||
{
|
||
objc_implementation_context
|
||
= start_class (IMPLEMENTATION_TYPE, yyvsp[0].ttype, NULL_TREE);
|
||
objc_ivar_chain
|
||
= continue_class (objc_implementation_context);
|
||
;
|
||
break;}
|
||
case 346:
|
||
#line 1741 "objc-parse.y"
|
||
{
|
||
objc_implementation_context = objc_ivar_context
|
||
= start_class (IMPLEMENTATION_TYPE, yyvsp[-3].ttype, yyvsp[-1].ttype);
|
||
objc_public_flag = 0;
|
||
;
|
||
break;}
|
||
case 347:
|
||
#line 1747 "objc-parse.y"
|
||
{
|
||
objc_ivar_chain
|
||
= continue_class (objc_implementation_context);
|
||
;
|
||
break;}
|
||
case 348:
|
||
#line 1753 "objc-parse.y"
|
||
{
|
||
objc_implementation_context
|
||
= start_class (IMPLEMENTATION_TYPE, yyvsp[-2].ttype, yyvsp[0].ttype);
|
||
objc_ivar_chain
|
||
= continue_class (objc_implementation_context);
|
||
;
|
||
break;}
|
||
case 349:
|
||
#line 1761 "objc-parse.y"
|
||
{
|
||
objc_interface_context
|
||
= start_class (PROTOCOL_TYPE, yyvsp[-3].ttype, yyvsp[-1].ttype);
|
||
continue_class (objc_interface_context);
|
||
;
|
||
break;}
|
||
case 350:
|
||
#line 1768 "objc-parse.y"
|
||
{
|
||
finish_class (objc_interface_context);
|
||
objc_interface_context = NULL_TREE;
|
||
;
|
||
break;}
|
||
case 351:
|
||
#line 1774 "objc-parse.y"
|
||
{
|
||
objc_implementation_context
|
||
= start_class (CATEGORY_TYPE, yyvsp[-3].ttype, yyvsp[-1].ttype);
|
||
objc_ivar_chain
|
||
= continue_class (objc_implementation_context);
|
||
;
|
||
break;}
|
||
case 352:
|
||
#line 1783 "objc-parse.y"
|
||
{ objc_public_flag = 1; ;
|
||
break;}
|
||
case 355:
|
||
#line 1789 "objc-parse.y"
|
||
{
|
||
yyval.ttype = NULL_TREE;
|
||
;
|
||
break;}
|
||
case 357:
|
||
#line 1794 "objc-parse.y"
|
||
{
|
||
if (pedantic)
|
||
warning ("extra semicolon in struct or union specified");
|
||
;
|
||
break;}
|
||
case 358:
|
||
#line 1812 "objc-parse.y"
|
||
{
|
||
yyval.ttype = yyvsp[0].ttype;
|
||
resume_momentary (yyvsp[-1].itype);
|
||
;
|
||
break;}
|
||
case 359:
|
||
#line 1817 "objc-parse.y"
|
||
{
|
||
yyval.ttype = yyvsp[0].ttype;
|
||
resume_momentary (yyvsp[-1].itype);
|
||
;
|
||
break;}
|
||
case 360:
|
||
#line 1822 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 361:
|
||
#line 1827 "objc-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 364:
|
||
#line 1834 "objc-parse.y"
|
||
{
|
||
yyval.ttype = add_instance_variable (objc_ivar_context,
|
||
objc_public_flag,
|
||
yyvsp[0].ttype, current_declspecs,
|
||
NULL_TREE);
|
||
;
|
||
break;}
|
||
case 365:
|
||
#line 1841 "objc-parse.y"
|
||
{
|
||
yyval.ttype = add_instance_variable (objc_ivar_context,
|
||
objc_public_flag,
|
||
yyvsp[-2].ttype, current_declspecs, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 366:
|
||
#line 1847 "objc-parse.y"
|
||
{
|
||
yyval.ttype = add_instance_variable (objc_ivar_context,
|
||
objc_public_flag,
|
||
NULL_TREE,
|
||
current_declspecs, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 367:
|
||
#line 1857 "objc-parse.y"
|
||
{
|
||
if (objc_implementation_context)
|
||
objc_inherit_code = CLASS_METHOD_DECL;
|
||
else
|
||
fatal ("method definition not in class context");
|
||
;
|
||
break;}
|
||
case 368:
|
||
#line 1864 "objc-parse.y"
|
||
{
|
||
add_class_method (objc_implementation_context, yyvsp[0].ttype);
|
||
start_method_def (yyvsp[0].ttype);
|
||
objc_method_context = yyvsp[0].ttype;
|
||
;
|
||
break;}
|
||
case 369:
|
||
#line 1870 "objc-parse.y"
|
||
{
|
||
continue_method_def ();
|
||
;
|
||
break;}
|
||
case 370:
|
||
#line 1874 "objc-parse.y"
|
||
{
|
||
finish_method_def ();
|
||
objc_method_context = NULL_TREE;
|
||
;
|
||
break;}
|
||
case 371:
|
||
#line 1880 "objc-parse.y"
|
||
{
|
||
if (objc_implementation_context)
|
||
objc_inherit_code = INSTANCE_METHOD_DECL;
|
||
else
|
||
fatal ("method definition not in class context");
|
||
;
|
||
break;}
|
||
case 372:
|
||
#line 1887 "objc-parse.y"
|
||
{
|
||
add_instance_method (objc_implementation_context, yyvsp[0].ttype);
|
||
start_method_def (yyvsp[0].ttype);
|
||
objc_method_context = yyvsp[0].ttype;
|
||
;
|
||
break;}
|
||
case 373:
|
||
#line 1893 "objc-parse.y"
|
||
{
|
||
continue_method_def ();
|
||
;
|
||
break;}
|
||
case 374:
|
||
#line 1897 "objc-parse.y"
|
||
{
|
||
finish_method_def ();
|
||
objc_method_context = NULL_TREE;
|
||
;
|
||
break;}
|
||
case 376:
|
||
#line 1909 "objc-parse.y"
|
||
{yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 381:
|
||
#line 1916 "objc-parse.y"
|
||
{yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 385:
|
||
#line 1926 "objc-parse.y"
|
||
{
|
||
objc_inherit_code = CLASS_METHOD_DECL;
|
||
;
|
||
break;}
|
||
case 386:
|
||
#line 1930 "objc-parse.y"
|
||
{
|
||
add_class_method (objc_interface_context, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 388:
|
||
#line 1936 "objc-parse.y"
|
||
{
|
||
objc_inherit_code = INSTANCE_METHOD_DECL;
|
||
;
|
||
break;}
|
||
case 389:
|
||
#line 1940 "objc-parse.y"
|
||
{
|
||
add_instance_method (objc_interface_context, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 391:
|
||
#line 1948 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_method_decl (objc_inherit_code, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE);
|
||
;
|
||
break;}
|
||
case 392:
|
||
#line 1953 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_method_decl (objc_inherit_code, NULL_TREE, yyvsp[0].ttype, NULL_TREE);
|
||
;
|
||
break;}
|
||
case 393:
|
||
#line 1958 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_method_decl (objc_inherit_code, yyvsp[-3].ttype, yyvsp[-1].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 394:
|
||
#line 1963 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_method_decl (objc_inherit_code, NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 403:
|
||
#line 1993 "objc-parse.y"
|
||
{ resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 404:
|
||
#line 1995 "objc-parse.y"
|
||
{ shadow_tag (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 405:
|
||
#line 1997 "objc-parse.y"
|
||
{ warning ("empty declaration"); ;
|
||
break;}
|
||
case 406:
|
||
#line 2002 "objc-parse.y"
|
||
{ push_parm_decl (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 407:
|
||
#line 2004 "objc-parse.y"
|
||
{ push_parm_decl (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 408:
|
||
#line 2012 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (current_declspecs, yyvsp[0].ttype) ; ;
|
||
break;}
|
||
case 409:
|
||
#line 2014 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (current_declspecs, yyvsp[0].ttype) ; ;
|
||
break;}
|
||
case 410:
|
||
#line 2016 "objc-parse.y"
|
||
{ yyval.ttype = build_tree_list (current_declspecs, yyvsp[0].ttype) ; ;
|
||
break;}
|
||
case 411:
|
||
#line 2021 "objc-parse.y"
|
||
{
|
||
yyval.ttype = NULL_TREE;
|
||
;
|
||
break;}
|
||
case 412:
|
||
#line 2025 "objc-parse.y"
|
||
{
|
||
/* oh what a kludge! */
|
||
yyval.ttype = (tree)1;
|
||
;
|
||
break;}
|
||
case 413:
|
||
#line 2030 "objc-parse.y"
|
||
{
|
||
pushlevel (0);
|
||
;
|
||
break;}
|
||
case 414:
|
||
#line 2034 "objc-parse.y"
|
||
{
|
||
/* returns a tree list node generated by get_parm_info */
|
||
yyval.ttype = yyvsp[0].ttype;
|
||
poplevel (0, 0, 0);
|
||
;
|
||
break;}
|
||
case 417:
|
||
#line 2049 "objc-parse.y"
|
||
{
|
||
yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 421:
|
||
#line 2061 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 422:
|
||
#line 2062 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 423:
|
||
#line 2063 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 424:
|
||
#line 2064 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 425:
|
||
#line 2065 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 426:
|
||
#line 2066 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 427:
|
||
#line 2067 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 428:
|
||
#line 2068 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 429:
|
||
#line 2069 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 430:
|
||
#line 2070 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 431:
|
||
#line 2071 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 432:
|
||
#line 2072 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 433:
|
||
#line 2073 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 434:
|
||
#line 2074 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 435:
|
||
#line 2075 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 436:
|
||
#line 2076 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 437:
|
||
#line 2077 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 438:
|
||
#line 2078 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 439:
|
||
#line 2079 "objc-parse.y"
|
||
{ yyval.ttype = get_identifier (token_buffer); ;
|
||
break;}
|
||
case 442:
|
||
#line 2085 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_keyword_decl (yyvsp[-5].ttype, yyvsp[-2].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 443:
|
||
#line 2090 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_keyword_decl (yyvsp[-2].ttype, NULL_TREE, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 444:
|
||
#line 2095 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_keyword_decl (NULL_TREE, yyvsp[-2].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 445:
|
||
#line 2100 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_keyword_decl (NULL_TREE, NULL_TREE, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 449:
|
||
#line 2113 "objc-parse.y"
|
||
{
|
||
yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 450:
|
||
#line 2121 "objc-parse.y"
|
||
{
|
||
if (TREE_CHAIN (yyvsp[0].ttype) == NULL_TREE)
|
||
/* just return the expr., remove a level of indirection */
|
||
yyval.ttype = TREE_VALUE (yyvsp[0].ttype);
|
||
else
|
||
/* we have a comma expr., we will collapse later */
|
||
yyval.ttype = yyvsp[0].ttype;
|
||
;
|
||
break;}
|
||
case 451:
|
||
#line 2133 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 452:
|
||
#line 2137 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 454:
|
||
#line 2145 "objc-parse.y"
|
||
{
|
||
yyval.ttype = get_class_reference (yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 455:
|
||
#line 2152 "objc-parse.y"
|
||
{ objc_receiver_context = 1; ;
|
||
break;}
|
||
case 456:
|
||
#line 2154 "objc-parse.y"
|
||
{ objc_receiver_context = 0; ;
|
||
break;}
|
||
case 457:
|
||
#line 2156 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype);
|
||
;
|
||
break;}
|
||
case 461:
|
||
#line 2169 "objc-parse.y"
|
||
{
|
||
yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 462:
|
||
#line 2176 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_tree_list (yyvsp[-1].ttype, NULL_TREE);
|
||
;
|
||
break;}
|
||
case 463:
|
||
#line 2180 "objc-parse.y"
|
||
{
|
||
yyval.ttype = build_tree_list (NULL_TREE, NULL_TREE);
|
||
;
|
||
break;}
|
||
case 464:
|
||
#line 2187 "objc-parse.y"
|
||
{
|
||
yyval.ttype = yyvsp[-1].ttype;
|
||
;
|
||
break;}
|
||
case 465:
|
||
#line 2196 "objc-parse.y"
|
||
{
|
||
yyval.ttype = groktypename (yyvsp[-1].ttype);
|
||
;
|
||
break;}
|
||
}
|
||
/* the action file gets copied in in place of this dollarsign */
|
||
#line 440 "bison.simple"
|
||
|
||
yyvsp -= yylen;
|
||
yyssp -= yylen;
|
||
#ifdef YYLSP_NEEDED
|
||
yylsp -= yylen;
|
||
#endif
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
{
|
||
short *ssp1 = yyss - 1;
|
||
fprintf (stderr, "state stack now");
|
||
while (ssp1 != yyssp)
|
||
fprintf (stderr, " %d", *++ssp1);
|
||
fprintf (stderr, "\n");
|
||
}
|
||
#endif
|
||
|
||
*++yyvsp = yyval;
|
||
|
||
#ifdef YYLSP_NEEDED
|
||
yylsp++;
|
||
if (yylen == 0)
|
||
{
|
||
yylsp->first_line = yylloc.first_line;
|
||
yylsp->first_column = yylloc.first_column;
|
||
yylsp->last_line = (yylsp-1)->last_line;
|
||
yylsp->last_column = (yylsp-1)->last_column;
|
||
yylsp->text = 0;
|
||
}
|
||
else
|
||
{
|
||
yylsp->last_line = (yylsp+yylen-1)->last_line;
|
||
yylsp->last_column = (yylsp+yylen-1)->last_column;
|
||
}
|
||
#endif
|
||
|
||
/* Now "shift" the result of the reduction.
|
||
Determine what state that goes to,
|
||
based on the state we popped back to
|
||
and the rule number reduced by. */
|
||
|
||
yyn = yyr1[yyn];
|
||
|
||
yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
|
||
if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
|
||
yystate = yytable[yystate];
|
||
else
|
||
yystate = yydefgoto[yyn - YYNTBASE];
|
||
|
||
goto yynewstate;
|
||
|
||
yyerrlab: /* here on detecting error */
|
||
|
||
if (! yyerrstatus)
|
||
/* If not already recovering from an error, report this error. */
|
||
{
|
||
++yynerrs;
|
||
|
||
#ifdef YYERROR_VERBOSE
|
||
yyn = yypact[yystate];
|
||
|
||
if (yyn > YYFLAG && yyn < YYLAST)
|
||
{
|
||
int size = 0;
|
||
char *msg;
|
||
int x, count;
|
||
|
||
count = 0;
|
||
for (x = 0; x < (sizeof(yytname) / sizeof(char *)); x++)
|
||
if (yycheck[x + yyn] == x)
|
||
size += strlen(yytname[x]) + 15, count++;
|
||
msg = (char *) malloc(size + 15);
|
||
if (msg != 0)
|
||
{
|
||
strcpy(msg, "parse error");
|
||
|
||
if (count < 5)
|
||
{
|
||
count = 0;
|
||
for (x = 0; x < (sizeof(yytname) / sizeof(char *)); x++)
|
||
if (yycheck[x + yyn] == x)
|
||
{
|
||
strcat(msg, count == 0 ? ", expecting `" : " or `");
|
||
strcat(msg, yytname[x]);
|
||
strcat(msg, "'");
|
||
count++;
|
||
}
|
||
}
|
||
yyerror(msg);
|
||
free(msg);
|
||
}
|
||
else
|
||
yyerror ("parse error; also virtual memory exceeded");
|
||
}
|
||
else
|
||
#endif /* YYERROR_VERBOSE */
|
||
yyerror("parse error");
|
||
}
|
||
|
||
yyerrlab1: /* here on error raised explicitly by an action */
|
||
|
||
if (yyerrstatus == 3)
|
||
{
|
||
/* if just tried and failed to reuse lookahead token after an error, discard it. */
|
||
|
||
/* return failure if at end of input */
|
||
if (yychar == YYEOF)
|
||
YYABORT;
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
|
||
#endif
|
||
|
||
yychar = YYEMPTY;
|
||
}
|
||
|
||
/* Else will try to reuse lookahead token
|
||
after shifting the error token. */
|
||
|
||
yyerrstatus = 3; /* Each real token shifted decrements this */
|
||
|
||
goto yyerrhandle;
|
||
|
||
yyerrdefault: /* current state does not do anything special for the error token. */
|
||
|
||
#if 0
|
||
/* This is wrong; only states that explicitly want error tokens
|
||
should shift them. */
|
||
yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
|
||
if (yyn) goto yydefault;
|
||
#endif
|
||
|
||
yyerrpop: /* pop the current state because it cannot handle the error token */
|
||
|
||
if (yyssp == yyss) YYABORT;
|
||
yyvsp--;
|
||
yystate = *--yyssp;
|
||
#ifdef YYLSP_NEEDED
|
||
yylsp--;
|
||
#endif
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
{
|
||
short *ssp1 = yyss - 1;
|
||
fprintf (stderr, "Error: state stack now");
|
||
while (ssp1 != yyssp)
|
||
fprintf (stderr, " %d", *++ssp1);
|
||
fprintf (stderr, "\n");
|
||
}
|
||
#endif
|
||
|
||
yyerrhandle:
|
||
|
||
yyn = yypact[yystate];
|
||
if (yyn == YYFLAG)
|
||
goto yyerrdefault;
|
||
|
||
yyn += YYTERROR;
|
||
if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
|
||
goto yyerrdefault;
|
||
|
||
yyn = yytable[yyn];
|
||
if (yyn < 0)
|
||
{
|
||
if (yyn == YYFLAG)
|
||
goto yyerrpop;
|
||
yyn = -yyn;
|
||
goto yyreduce;
|
||
}
|
||
else if (yyn == 0)
|
||
goto yyerrpop;
|
||
|
||
if (yyn == YYFINAL)
|
||
YYACCEPT;
|
||
|
||
#if YYDEBUG != 0
|
||
if (yydebug)
|
||
fprintf(stderr, "Shifting error token, ");
|
||
#endif
|
||
|
||
*++yyvsp = yylval;
|
||
#ifdef YYLSP_NEEDED
|
||
*++yylsp = yylloc;
|
||
#endif
|
||
|
||
yystate = yyn;
|
||
goto yynewstate;
|
||
}
|
||
#line 2200 "objc-parse.y"
|
||
|
||
/* If STRING is the name of an Objective C @-keyword
|
||
(not including the @), return the token type for that keyword.
|
||
Otherwise return 0. */
|
||
|
||
int
|
||
recognize_objc_keyword (string)
|
||
char *string;
|
||
{
|
||
switch (string[0])
|
||
{
|
||
case 'd':
|
||
if (!strcmp (string, "defs"))
|
||
return DEFS;
|
||
break;
|
||
case 'e':
|
||
if (!strcmp (string, "end"))
|
||
return END;
|
||
if (!strcmp (string, "encode"))
|
||
return ENCODE;
|
||
break;
|
||
case 'i':
|
||
if (!strcmp (string, "interface"))
|
||
return INTERFACE;
|
||
if (!strcmp (string, "implementation"))
|
||
return IMPLEMENTATION;
|
||
break;
|
||
case 'p':
|
||
if (!strcmp (string, "public"))
|
||
return PUBLIC;
|
||
break;
|
||
case 's':
|
||
if (!strcmp (string, "selector"))
|
||
return SELECTOR;
|
||
break;
|
||
}
|
||
return 0;
|
||
}
|