File: [local] / OpenXM / src / k097 / Attic / simple.tab.c (download)
Revision 1.1.1.1 (vendor branch), Fri Oct 8 02:12:15 1999 UTC (24 years, 11 months ago) by maekawa
Branch: OpenXM
CVS Tags: ALPHA Changes since 1.1: +0 -0
lines
o import OpenXM sources
|
/* A Bison parser, made from simple.y
by GNU Bison version 1.25
*/
#define YYBISON 1 /* Identify Bison output. */
#define yyparse KCparse
#define yylex KClex
#define yyerror KCerror
#define yylval KClval
#define yychar KCchar
#define yydebug KCdebug
#define yynerrs KCnerrs
#define ID 258
#define QUOTE 259
#define SINGLEQUOTE 260
#define NUMBER 261
#define CLASS 262
#define SUPER 263
#define OPERATOR 264
#define FINAL 265
#define EXTENDS 266
#define INCETANCEVARIABLE 267
#define THIS 268
#define NEW 269
#define SIZEOFTHISCLASS 270
#define STARTOFTHISCLASS 271
#define MODULE 272
#define PRINT 273
#define LOCAL 274
#define DEF 275
#define SM1 276
#define LOAD 277
#define TEST 278
#define SPECIAL 279
#define AUTO 280
#define BREAK 281
#define CASE 282
#define CHAR 283
#define CONST 284
#define CONTINUE 285
#define DEFAULT 286
#define DO 287
#define DOUBLE 288
#define ELSE 289
#define ENUM 290
#define EXTERN 291
#define FLOAT 292
#define FOR 293
#define GOTO 294
#define IF 295
#define INT 296
#define LONG 297
#define REGISTER 298
#define RETURN 299
#define SHORT 300
#define SIGNED 301
#define SIZEOF 302
#define STATIC 303
#define STRUCT 304
#define SWITCH 305
#define TYPEDEF 306
#define UNION 307
#define UNSIGNED 308
#define VOLATILE 309
#define VOID 310
#define WHILE 311
#define PSFOR 312
#define PROMPT 313
#define PUT 314
#define MULTPUT 315
#define NEGATEPUT 316
#define RESIDUEPUT 317
#define OR 318
#define AND 319
#define EQUAL 320
#define NOTEQUAL 321
#define LESSEQUAL 322
#define GREATEREQUAL 323
#define LEFTSHIFT 324
#define RIGHTSHIFT 325
#define UNARYMINUS 326
#define INCREMENT 327
#define DECREMENT 328
#define MEMBER 329
#line 4 "simple.y"
#include <stdio.h>
#include "d.h"
#ifndef YYSTYPE
#define YYSTYPE int
#endif
#include <stdio.h>
#ifndef __cplusplus
#ifndef __STDC__
#define const
#endif
#endif
#define YYFINAL 305
#define YYFLAG -32768
#define YYNTBASE 98
#define YYTRANSLATE(x) ((unsigned)(x) <= 329 ? yytranslate[x] : 159)
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, 82, 2, 2, 2, 80, 67, 2, 96,
97, 78, 76, 91, 77, 87, 79, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 90, 89, 70,
59, 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,
92, 2, 93, 86, 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, 94, 66, 95, 85, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 1, 2, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
56, 57, 58, 60, 61, 62, 63, 64, 65, 68,
69, 72, 73, 74, 75, 81, 83, 84, 88
};
#if YYDEBUG != 0
static const short yyprhs[] = { 0,
0, 2, 5, 7, 9, 11, 13, 15, 17, 20,
23, 25, 27, 30, 33, 36, 38, 40, 42, 44,
46, 49, 52, 55, 57, 61, 63, 66, 68, 70,
72, 75, 79, 82, 86, 91, 93, 95, 98, 103,
108, 113, 117, 120, 122, 124, 129, 133, 136, 137,
152, 155, 158, 162, 165, 168, 173, 178, 183, 188,
191, 194, 199, 200, 204, 206, 210, 212, 214, 216,
218, 220, 222, 226, 228, 230, 232, 234, 236, 238,
240, 242, 244, 247, 251, 254, 258, 260, 263, 267,
272, 276, 281, 285, 289, 293, 297, 299, 303, 307,
309, 311, 315, 316, 318, 322, 326, 328, 331, 333,
337, 341, 345, 347, 349, 352, 355, 358, 362, 366,
370, 374, 378, 382, 386, 390, 394, 398, 402, 406,
410, 414, 418, 422, 426, 430, 434, 437, 440, 444,
448, 452, 456, 460, 464, 468, 472, 474, 476, 481,
486, 490, 493, 496, 501, 505, 511, 515, 519, 521,
525, 527, 532
};
static const short yyrhs[] = { 99,
0, 100, 99, 0, 100, 0, 116, 0, 119, 0,
122, 0, 111, 0, 135, 0, 147, 89, 0, 147,
90, 0, 89, 0, 152, 0, 1, 89, 0, 58,
89, 0, 102, 101, 0, 102, 0, 116, 0, 119,
0, 122, 0, 111, 0, 147, 89, 0, 104, 89,
0, 105, 89, 0, 89, 0, 147, 91, 103, 0,
147, 0, 44, 147, 0, 44, 0, 26, 0, 92,
0, 106, 93, 0, 106, 103, 93, 0, 94, 95,
0, 94, 101, 95, 0, 40, 96, 147, 97, 0,
102, 0, 108, 0, 109, 110, 0, 109, 110, 34,
102, 0, 109, 110, 34, 108, 0, 38, 96, 147,
89, 0, 38, 96, 89, 0, 147, 89, 0, 89,
0, 147, 0, 112, 113, 114, 97, 0, 112, 113,
97, 0, 115, 108, 0, 0, 57, 96, 3, 59,
147, 89, 118, 3, 70, 147, 89, 3, 83, 97,
0, 117, 108, 0, 56, 96, 0, 120, 147, 97,
0, 120, 97, 0, 121, 108, 0, 18, 96, 147,
97, 0, 21, 96, 126, 97, 0, 22, 96, 4,
97, 0, 22, 96, 3, 97, 0, 22, 3, 0,
22, 4, 0, 22, 92, 4, 93, 0, 0, 126,
91, 4, 0, 4, 0, 126, 91, 3, 0, 3,
0, 3, 0, 4, 0, 5, 0, 6, 0, 13,
0, 96, 147, 97, 0, 129, 0, 107, 0, 123,
0, 124, 0, 125, 0, 148, 0, 149, 0, 146,
0, 141, 0, 3, 96, 0, 128, 103, 97, 0,
128, 97, 0, 130, 91, 3, 0, 3, 0, 20,
3, 0, 20, 55, 3, 0, 96, 130, 97, 94,
0, 96, 97, 94, 0, 137, 140, 101, 95, 0,
140, 101, 95, 0, 131, 133, 134, 0, 156, 133,
134, 0, 132, 133, 134, 0, 19, 0, 136, 130,
89, 0, 138, 91, 3, 0, 3, 0, 36, 0,
139, 138, 89, 0, 0, 142, 0, 144, 143, 93,
0, 147, 91, 143, 0, 147, 0, 3, 92, 0,
3, 0, 145, 59, 147, 0, 142, 59, 147, 0,
13, 59, 147, 0, 127, 0, 158, 0, 82, 147,
0, 85, 147, 0, 77, 147, 0, 147, 76, 147,
0, 147, 77, 147, 0, 147, 78, 147, 0, 147,
79, 147, 0, 147, 80, 147, 0, 147, 86, 147,
0, 147, 67, 147, 0, 147, 66, 147, 0, 147,
68, 147, 0, 147, 70, 147, 0, 147, 71, 147,
0, 147, 72, 147, 0, 147, 74, 147, 0, 147,
73, 147, 0, 147, 75, 147, 0, 147, 65, 147,
0, 147, 64, 147, 0, 147, 69, 147, 0, 147,
60, 147, 0, 145, 83, 0, 145, 84, 0, 147,
88, 147, 0, 147, 87, 150, 0, 147, 87, 3,
0, 157, 87, 150, 0, 6, 87, 6, 0, 147,
63, 147, 0, 147, 62, 147, 0, 147, 61, 147,
0, 15, 0, 16, 0, 23, 96, 147, 97, 0,
24, 96, 107, 97, 0, 151, 103, 97, 0, 151,
97, 0, 3, 96, 0, 153, 154, 99, 95, 0,
153, 99, 95, 0, 7, 3, 11, 3, 94, 0,
19, 155, 89, 0, 155, 91, 3, 0, 3, 0,
20, 9, 3, 0, 8, 0, 14, 96, 147, 97,
0, 14, 96, 97, 0
};
#endif
#if YYDEBUG != 0
static const short yyrline[] = { 0,
42, 46, 48, 52, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 67, 69, 73, 75, 76, 77,
78, 79, 80, 81, 85, 86, 90, 92, 95, 98,
102, 103, 107, 108, 112, 115, 116, 119, 121, 122,
127, 128, 131, 132, 135, 139, 141, 145, 150, 154,
163, 168, 172, 173, 177, 182, 185, 189, 191, 192,
193, 194, 196, 197, 198, 199, 200, 204, 212, 213,
214, 215, 216, 217, 218, 219, 220, 221, 222, 223,
224, 225, 229, 238, 241, 246, 247, 251, 260, 269,
272, 278, 281, 286, 290, 294, 301, 305, 310, 312,
316, 320, 322, 325, 328, 331, 333, 335, 348, 351,
360, 361, 365, 366, 367, 368, 369, 370, 371, 372,
373, 374, 375, 376, 377, 378, 379, 380, 381, 382,
383, 384, 385, 386, 387, 388, 389, 393, 397, 398,
399, 400, 401, 406, 407, 408, 409, 416, 424, 435,
443, 446, 451, 457, 463, 473, 491, 497, 501, 507,
517, 521, 530
};
#endif
#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
static const char * const yytname[] = { "$","error","$undefined.","ID","QUOTE",
"SINGLEQUOTE","NUMBER","CLASS","SUPER","OPERATOR","FINAL","EXTENDS","INCETANCEVARIABLE",
"THIS","NEW","SIZEOFTHISCLASS","STARTOFTHISCLASS","MODULE","PRINT","LOCAL","DEF",
"SM1","LOAD","TEST","SPECIAL","AUTO","BREAK","CASE","CHAR","CONST","CONTINUE",
"DEFAULT","DO","DOUBLE","ELSE","ENUM","EXTERN","FLOAT","FOR","GOTO","IF","INT",
"LONG","REGISTER","RETURN","SHORT","SIGNED","SIZEOF","STATIC","STRUCT","SWITCH",
"TYPEDEF","UNION","UNSIGNED","VOLATILE","VOID","WHILE","PSFOR","PROMPT","'='",
"PUT","MULTPUT","NEGATEPUT","RESIDUEPUT","OR","AND","'|'","'&'","EQUAL","NOTEQUAL",
"'<'","'>'","LESSEQUAL","GREATEREQUAL","LEFTSHIFT","RIGHTSHIFT","'+'","'-'",
"'*'","'/'","'%'","UNARYMINUS","'!'","INCREMENT","DECREMENT","'~'","'^'","'.'",
"MEMBER","';'","':'","','","'['","']'","'{'","'}'","'('","')'","program","globalstatements",
"sentence","statements","localsentence","argList","return","break","list_prefix",
"list","curryBrace","if_prefix","if_body","if","for_prefix0","for_exit","for_inc",
"for_prefix","for","PSfor_prefix","@1","PSfor","while_prefix0","while_prefix",
"while","print","sm1","load","sm1ArgList","primitive","functionCall_prefix",
"functionCall","idList","functionHead","voidfunctionHead","functionArg","functionBody",
"functionDefinition","declaration_prefix","declaration","extern_idList","extern_declaration_prefix",
"extern_declaration","arrayValue","array","arrayIndex","array_prefix","id_set",
"set","exp","test","special","member_functionCall","member_functionCall_prefix",
"class_definition","class_definition_prefix","incetance_variables","incetance_variables_list",
"operatorfunctionHead","super","new", NULL
};
#endif
static const short yyr1[] = { 0,
98, 99, 99, 100, 100, 100, 100, 100, 100, 100,
100, 100, 100, 100, 101, 101, 102, 102, 102, 102,
102, 102, 102, 102, 103, 103, 104, 104, 105, 106,
107, 107, 108, 108, 109, 110, 110, 111, 111, 111,
112, 112, 113, 113, 114, 115, 115, 116, 118, 117,
119, 120, 121, 121, 122, 123, 124, 125, 125, 125,
125, 125, 126, 126, 126, 126, 126, 127, 127, 127,
127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
127, 127, 128, 129, 129, 130, 130, 131, 132, 133,
133, 134, 134, 135, 135, 135, 136, 137, 138, 138,
139, 140, 140, 141, 142, 143, 143, 144, 145, 146,
146, 146, 147, 147, 147, 147, 147, 147, 147, 147,
147, 147, 147, 147, 147, 147, 147, 147, 147, 147,
147, 147, 147, 147, 147, 147, 147, 147, 147, 147,
147, 147, 147, 147, 147, 147, 147, 147, 148, 149,
150, 150, 151, 152, 152, 153, 154, 155, 155, 156,
157, 158, 158
};
static const short yyr2[] = { 0,
1, 2, 1, 1, 1, 1, 1, 1, 2, 2,
1, 1, 2, 2, 2, 1, 1, 1, 1, 1,
2, 2, 2, 1, 3, 1, 2, 1, 1, 1,
2, 3, 2, 3, 4, 1, 1, 2, 4, 4,
4, 3, 2, 1, 1, 4, 3, 2, 0, 14,
2, 2, 3, 2, 2, 4, 4, 4, 4, 2,
2, 4, 0, 3, 1, 3, 1, 1, 1, 1,
1, 1, 3, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 3, 2, 3, 1, 2, 3, 4,
3, 4, 3, 3, 3, 3, 1, 3, 3, 1,
1, 3, 0, 1, 3, 3, 1, 2, 1, 3,
3, 3, 1, 1, 2, 2, 2, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 2, 2, 3, 3,
3, 3, 3, 3, 3, 3, 1, 1, 4, 4,
3, 2, 2, 4, 3, 5, 3, 3, 1, 3,
1, 4, 3
};
static const short yydefact[] = { 0,
0, 68, 69, 70, 71, 0, 161, 72, 0, 147,
148, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 11, 30, 0, 1, 0,
0, 75, 0, 7, 0, 0, 4, 0, 5, 0,
0, 6, 76, 77, 78, 113, 0, 74, 0, 0,
8, 82, 104, 0, 0, 81, 0, 79, 80, 12,
0, 0, 0, 114, 13, 108, 83, 0, 0, 0,
0, 0, 88, 0, 0, 63, 60, 61, 0, 0,
0, 0, 0, 0, 52, 0, 14, 117, 115, 116,
0, 2, 31, 0, 26, 29, 28, 24, 0, 36,
0, 0, 37, 38, 20, 17, 18, 19, 0, 44,
0, 0, 48, 51, 54, 0, 55, 85, 0, 0,
103, 103, 0, 0, 107, 0, 137, 138, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 9, 10, 0, 0, 0, 103, 0, 143,
0, 112, 163, 0, 0, 160, 89, 67, 65, 0,
0, 0, 0, 0, 0, 42, 0, 0, 0, 73,
32, 0, 27, 33, 0, 16, 22, 23, 0, 21,
47, 0, 45, 43, 53, 84, 87, 0, 0, 97,
101, 94, 0, 103, 0, 0, 96, 111, 105, 0,
110, 136, 146, 145, 144, 134, 133, 125, 124, 126,
135, 127, 128, 129, 131, 130, 132, 118, 119, 120,
121, 122, 123, 141, 140, 0, 139, 159, 0, 155,
0, 95, 0, 142, 0, 162, 56, 0, 57, 62,
59, 58, 149, 150, 41, 35, 0, 25, 34, 15,
39, 40, 46, 91, 0, 0, 0, 0, 100, 0,
0, 106, 153, 152, 0, 157, 0, 154, 156, 66,
64, 0, 86, 90, 98, 0, 102, 0, 93, 151,
158, 49, 92, 99, 0, 0, 0, 0, 0, 0,
0, 50, 0, 0, 0
};
static const short yydefgoto[] = { 303,
29, 30, 185, 186, 94, 101, 102, 31, 32, 103,
33, 104, 105, 35, 111, 192, 36, 106, 38, 295,
107, 40, 41, 108, 43, 44, 45, 170, 46, 47,
48, 199, 49, 50, 121, 202, 51, 203, 204, 270,
205, 206, 52, 53, 124, 54, 55, 56, 109, 58,
59, 235, 236, 60, 61, 157, 239, 62, 63, 64
};
static const short yypact[] = { 313,
-70, -41,-32768,-32768, -58, 36,-32768, -6, -46,-32768,
-32768, -8, 35, 7, 9, 8, 19, 23, 28, 29,
31, -20, 848, 848, 848,-32768,-32768, 848,-32768, 171,
217,-32768, 569,-32768, 754, 60,-32768, 60,-32768, 370,
60,-32768,-32768,-32768,-32768,-32768, 407,-32768, 32, 32,
-32768,-32768, 37, 848, -38,-32768, 1139,-32768,-32768,-32768,
267, 32, 13,-32768,-32768,-32768,-32768, 88, 91, 848,
435, 848,-32768, 152, 153, 45,-32768,-32768, 154, 56,
848, 73, 803, 848,-32768, 163,-32768, 34, 5, 5,
840,-32768,-32768, 74, 1075,-32768, 848,-32768, 615,-32768,
79, 80,-32768, 136,-32768,-32768,-32768,-32768, 1170,-32768,
472, 1200,-32768,-32768,-32768, 885,-32768,-32768, 76, -2,
1, 1, 848, 87, 1107, 848,-32768,-32768, 848, 848,
848, 848, 848, 848, 848, 848, 848, 848, 848, 848,
848, 848, 848, 848, 848, 848, 848, 848, 848, 848,
178, 848,-32768,-32768, 180, 93, 313, 1, 187,-32768,
193, 1320,-32768, 923, 961,-32768,-32768,-32768,-32768, -39,
104, 101, 102, 999, 103,-32768, 1230, 1037, 142,-32768,
-32768, 848, 1320,-32768, 107, 709,-32768,-32768, 569,-32768,
-32768, 106, 1320,-32768,-32768,-32768,-32768, 110, -35,-32768,
-32768,-32768, 203, 172, 204, 709,-32768, 1320,-32768, 848,
1320, 1320, 1320, 1320, 1320, 608, 1343, 1365, 1386, 1405,
1405, -1, -1, -1, -1, 30, 30, 34, 34, 5,
5, 5, 5, 116,-32768, 520,-32768,-32768, -74,-32768,
118,-32768, 116,-32768, 120,-32768,-32768, 95,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768, 848,-32768,-32768,-32768,
-32768,-32768,-32768,-32768, 212, 122, -23, 709,-32768, -9,
123,-32768,-32768,-32768, 127,-32768, 214,-32768,-32768,-32768,
-32768, 1260,-32768,-32768,-32768, 124,-32768, 223,-32768,-32768,
-32768,-32768,-32768,-32768, 231, 167, 848, 1290, 239, 160,
147,-32768, 245, 246,-32768
};
static const short yypgoto[] = {-32768,
-4,-32768, -179, -25, -31,-32768,-32768,-32768, 165, -27,
-32768,-32768, 2,-32768,-32768,-32768,-32768, 3,-32768,-32768,
4,-32768,-32768, 6,-32768,-32768,-32768,-32768,-32768,-32768,
-32768, 46,-32768,-32768, -40, -117,-32768,-32768,-32768,-32768,
-32768, 47,-32768,-32768, 40,-32768,-32768,-32768, 0,-32768,
-32768, 96,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768
};
#define YYLAST 1493
static const short yytable[] = { 57,
197, 34, 37, 39, 207, 42, 260, 100, 113, 122,
114, 77, 78, 117, 276, 119, 277, -109, 65, 200,
126, 158, 88, 89, 90, 92, 271, 91, 68, 57,
95, 34, 37, 39, 112, 42, 201, 73, 69, 116,
242, -109, -109, 74, 127, 128, 95, 168, 169, 71,
66, 248, 70, 125, 67, 265, 156, 249, 172, 173,
57, 266, 34, 37, 39, 285, 42, 265, 87, 162,
164, 165, 143, 144, 145, 146, 147, 148, 149, 287,
174, 288, 177, 178, 150, 151, 152, 72, 286, 75,
150, 151, 152, 160, 198, 123, 183, 280, 281, 159,
79, 161, 76, 81, 80, 145, 146, 147, 148, 149,
193, 147, 148, 149, 82, 150, 151, 152, 83, 150,
151, 152, 208, 84, 85, 211, 86, 120, 212, 213,
214, 215, 216, 217, 218, 219, 220, 221, 222, 223,
224, 225, 226, 227, 228, 229, 230, 231, 232, 233,
258, 237, 241, 99, 166, 167, 57, 171, 34, 37,
39, 262, 42, 261, 27, 179, 181, 187, 188, 189,
-3, 1, 196, 2, 3, 4, 5, 6, 7, 209,
234, 95, 238, 8, 9, 10, 11, 240, 12, 243,
13, 14, 15, 16, 17, 245, 250, 251, 252, 254,
257, 259, 263, 264, 275, 197, 269, 201, 18, 125,
19, 273, 278, 279, 283, 284, 291, 289, 293, 2,
3, 4, 5, 290, 7, 294, 20, 21, 22, 8,
9, 10, 11, 296, 12, 95, 297, 14, 15, 16,
17, 300, 301, 302, 304, 305, 175, 23, 267, 272,
268, 0, 24, 0, 244, 25, 282, 0, 0, 26,
0, 0, 27, 0, 0, -3, 28, 1, 0, 2,
3, 4, 5, 6, 7, 0, 0, 0, 0, 8,
9, 10, 11, 0, 12, 155, 13, 14, 15, 16,
17, 0, 0, 23, 0, 0, 298, 0, 24, 0,
0, 25, 0, 0, 18, 0, 19, 0, 27, 93,
0, 0, 28, 1, 0, 2, 3, 4, 5, 6,
7, 0, 20, 21, 22, 8, 9, 10, 11, 0,
12, 0, 13, 14, 15, 16, 17, 0, 0, 0,
0, 0, 0, 23, 0, 0, 0, 0, 24, 0,
18, 25, 19, 0, 0, 26, 0, 0, 27, 0,
0, 0, 28, 0, 0, 0, 0, 0, 20, 21,
22, 0, 2, 3, 4, 5, 0, 7, 0, 0,
0, 0, 8, 9, 10, 11, 0, 12, 0, 23,
14, 15, 16, 17, 24, 0, 0, 25, 0, 0,
0, 26, 0, 0, 27, 0, 0, 0, 28, 2,
3, 4, 5, 0, 7, 0, 0, 0, 0, 8,
9, 10, 11, 0, 12, 0, 0, 14, 15, 16,
17, 0, 0, 0, 0, 0, 0, 2, 3, 4,
5, 0, 7, 0, 0, 0, 23, 8, 9, 10,
11, 24, 12, 0, 25, 14, 15, 16, 17, 0,
0, 27, 0, 0, 0, 28, 115, 0, 0, 0,
0, 0, 0, 0, 2, 3, 4, 5, 0, 7,
0, 0, 0, 23, 8, 9, 10, 11, 24, 12,
0, 25, 14, 15, 16, 17, 0, 0, 27, 0,
0, 0, 28, 118, 0, 0, 0, 0, 0, 0,
0, 23, 0, 0, 0, 0, 24, 0, 0, 25,
0, 0, 2, 3, 4, 5, 27, 7, 0, 0,
28, 163, 8, 9, 10, 11, 0, 12, 0, 0,
14, 15, 16, 17, 0, 0, 0, 0, 23, 0,
0, 0, 0, 24, 0, 0, 25, 0, 0, 0,
0, 0, 0, 27, 0, 0, 0, 28, 191, 0,
0, 2, 3, 4, 5, 0, 7, 0, 0, 0,
0, 8, 9, 10, 11, 0, 12, 0, 0, 14,
15, 16, 17, 0, 96, 0, 23, 0, 0, 0,
0, 24, 0, 0, 25, 0, 18, 0, 19, 0,
0, 27, 97, 0, 0, 28, 274, 2, 3, 4,
5, 0, 7, 0, 20, 21, 0, 8, 9, 10,
11, 0, 12, 0, 0, 14, 15, 16, 17, 0,
96, 0, 0, 0, 0, 23, 0, 0, 0, 0,
24, 0, 18, 25, 19, 0, 0, 98, 97, 0,
27, 0, 99, 0, 28, 0, 0, 0, 0, 0,
20, 21, 134, 135, 136, 137, 138, 139, 140, 141,
142, 143, 144, 145, 146, 147, 148, 149, 0, 0,
0, 23, 0, 150, 151, 152, 24, 0, 0, 25,
0, 0, 0, 98, 0, 0, 27, 0, 0, 184,
28, 2, 3, 4, 5, 0, 7, 0, 0, 0,
0, 8, 9, 10, 11, 0, 12, 0, 0, 14,
15, 16, 17, 0, 96, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 18, 0, 19, 0,
0, 0, 97, 0, 0, 0, 2, 3, 4, 5,
0, 7, 0, 0, 20, 21, 8, 9, 10, 11,
0, 12, 0, 0, 14, 15, 16, 17, 0, 0,
0, 0, 0, 0, 0, 23, 0, 0, 0, 0,
24, 0, 0, 25, 0, 0, 0, 98, 0, 0,
27, 0, 0, 0, 28, 2, 3, 4, 5, 0,
7, 0, 0, 0, 0, 8, 9, 10, 11, 0,
12, 0, 0, 14, 15, 16, 17, 0, 0, 0,
23, 0, 0, 0, 0, 24, 0, 0, 25, 0,
0, 0, 110, 0, 0, 27, 0, 0, 0, 28,
2, 3, 4, 5, 0, 7, 0, 0, 0, 0,
8, 9, 10, 11, 0, 12, 0, 0, 14, 15,
16, 17, 0, 0, 0, 0, 0, 0, 0, 23,
0, 0, 0, 0, 24, 0, 0, 25, 0, 0,
0, 176, 0, 0, 27, 0, 0, 0, 28, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
0, 0, 0, 0, 23, 150, 151, 152, 0, 24,
0, 0, 25, 0, 0, 0, 180, 0, 0, 27,
0, 0, 0, 28, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
145, 146, 147, 148, 149, 0, 0, 0, 0, 0,
150, 151, 152, 0, 0, 0, 0, 0, 0, 0,
0, 195, 129, 130, 131, 132, 133, 134, 135, 136,
137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
147, 148, 149, 0, 0, 0, 0, 0, 150, 151,
152, 0, 0, 0, 0, 0, 0, 0, 0, 246,
129, 130, 131, 132, 133, 134, 135, 136, 137, 138,
139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
149, 0, 0, 0, 0, 0, 150, 151, 152, 0,
0, 0, 0, 0, 0, 0, 0, 247, 129, 130,
131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
141, 142, 143, 144, 145, 146, 147, 148, 149, 0,
0, 0, 0, 0, 150, 151, 152, 0, 0, 0,
0, 0, 0, 0, 0, 253, 129, 130, 131, 132,
133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
143, 144, 145, 146, 147, 148, 149, 0, 0, 0,
0, 0, 150, 151, 152, 0, 0, 0, 0, 0,
0, 0, 0, 256, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
145, 146, 147, 148, 149, 0, 0, 0, 0, 0,
150, 151, 152, 0, 0, 182, 129, 130, 131, 132,
133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
143, 144, 145, 146, 147, 148, 149, 0, 0, 0,
0, 0, 150, 151, 152, 0, 0, 210, 129, 130,
131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
141, 142, 143, 144, 145, 146, 147, 148, 149, 0,
0, 0, 0, 0, 150, 151, 152, 153, 154, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
0, 0, 0, 0, 0, 150, 151, 152, 190, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
0, 0, 0, 0, 0, 150, 151, 152, 194, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
0, 0, 0, 0, 0, 150, 151, 152, 255, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
0, 0, 0, 0, 0, 150, 151, 152, 292, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
0, 0, 0, 0, 0, 150, 151, 152, 299, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
0, 0, 0, 0, 0, 150, 151, 152, 135, 136,
137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
147, 148, 149, 0, 0, 0, 0, 0, 150, 151,
152, 136, 137, 138, 139, 140, 141, 142, 143, 144,
145, 146, 147, 148, 149, 0, 0, 0, 0, 0,
150, 151, 152, 137, 138, 139, 140, 141, 142, 143,
144, 145, 146, 147, 148, 149, 0, 0, 0, 0,
0, 150, 151, 152, 139, 140, 141, 142, 143, 144,
145, 146, 147, 148, 149, 0, 0, 0, 0, 0,
150, 151, 152
};
static const short yycheck[] = { 0,
3, 0, 0, 0, 122, 0, 186, 33, 36, 50,
38, 3, 4, 41, 89, 47, 91, 59, 89, 19,
59, 62, 23, 24, 25, 30, 206, 28, 87, 30,
31, 30, 30, 30, 35, 30, 36, 3, 3, 40,
158, 83, 84, 9, 83, 84, 47, 3, 4, 96,
92, 91, 59, 54, 96, 91, 61, 97, 3, 4,
61, 97, 61, 61, 61, 89, 61, 91, 89, 70,
71, 72, 74, 75, 76, 77, 78, 79, 80, 89,
81, 91, 83, 84, 86, 87, 88, 96, 268, 55,
86, 87, 88, 6, 97, 59, 97, 3, 4, 87,
92, 11, 96, 96, 96, 76, 77, 78, 79, 80,
111, 78, 79, 80, 96, 86, 87, 88, 96, 86,
87, 88, 123, 96, 96, 126, 96, 96, 129, 130,
131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
141, 142, 143, 144, 145, 146, 147, 148, 149, 150,
182, 152, 157, 94, 3, 3, 157, 4, 157, 157,
157, 189, 157, 189, 92, 3, 93, 89, 89, 34,
0, 1, 97, 3, 4, 5, 6, 7, 8, 93,
3, 182, 3, 13, 14, 15, 16, 95, 18, 3,
20, 21, 22, 23, 24, 3, 93, 97, 97, 97,
59, 95, 97, 94, 236, 3, 3, 36, 38, 210,
40, 96, 95, 94, 3, 94, 3, 95, 95, 3,
4, 5, 6, 97, 8, 3, 56, 57, 58, 13,
14, 15, 16, 3, 18, 236, 70, 21, 22, 23,
24, 3, 83, 97, 0, 0, 82, 77, 203, 210,
204, -1, 82, -1, 159, 85, 257, -1, -1, 89,
-1, -1, 92, -1, -1, 95, 96, 1, -1, 3,
4, 5, 6, 7, 8, -1, -1, -1, -1, 13,
14, 15, 16, -1, 18, 19, 20, 21, 22, 23,
24, -1, -1, 77, -1, -1, 297, -1, 82, -1,
-1, 85, -1, -1, 38, -1, 40, -1, 92, 93,
-1, -1, 96, 1, -1, 3, 4, 5, 6, 7,
8, -1, 56, 57, 58, 13, 14, 15, 16, -1,
18, -1, 20, 21, 22, 23, 24, -1, -1, -1,
-1, -1, -1, 77, -1, -1, -1, -1, 82, -1,
38, 85, 40, -1, -1, 89, -1, -1, 92, -1,
-1, -1, 96, -1, -1, -1, -1, -1, 56, 57,
58, -1, 3, 4, 5, 6, -1, 8, -1, -1,
-1, -1, 13, 14, 15, 16, -1, 18, -1, 77,
21, 22, 23, 24, 82, -1, -1, 85, -1, -1,
-1, 89, -1, -1, 92, -1, -1, -1, 96, 3,
4, 5, 6, -1, 8, -1, -1, -1, -1, 13,
14, 15, 16, -1, 18, -1, -1, 21, 22, 23,
24, -1, -1, -1, -1, -1, -1, 3, 4, 5,
6, -1, 8, -1, -1, -1, 77, 13, 14, 15,
16, 82, 18, -1, 85, 21, 22, 23, 24, -1,
-1, 92, -1, -1, -1, 96, 97, -1, -1, -1,
-1, -1, -1, -1, 3, 4, 5, 6, -1, 8,
-1, -1, -1, 77, 13, 14, 15, 16, 82, 18,
-1, 85, 21, 22, 23, 24, -1, -1, 92, -1,
-1, -1, 96, 97, -1, -1, -1, -1, -1, -1,
-1, 77, -1, -1, -1, -1, 82, -1, -1, 85,
-1, -1, 3, 4, 5, 6, 92, 8, -1, -1,
96, 97, 13, 14, 15, 16, -1, 18, -1, -1,
21, 22, 23, 24, -1, -1, -1, -1, 77, -1,
-1, -1, -1, 82, -1, -1, 85, -1, -1, -1,
-1, -1, -1, 92, -1, -1, -1, 96, 97, -1,
-1, 3, 4, 5, 6, -1, 8, -1, -1, -1,
-1, 13, 14, 15, 16, -1, 18, -1, -1, 21,
22, 23, 24, -1, 26, -1, 77, -1, -1, -1,
-1, 82, -1, -1, 85, -1, 38, -1, 40, -1,
-1, 92, 44, -1, -1, 96, 97, 3, 4, 5,
6, -1, 8, -1, 56, 57, -1, 13, 14, 15,
16, -1, 18, -1, -1, 21, 22, 23, 24, -1,
26, -1, -1, -1, -1, 77, -1, -1, -1, -1,
82, -1, 38, 85, 40, -1, -1, 89, 44, -1,
92, -1, 94, -1, 96, -1, -1, -1, -1, -1,
56, 57, 65, 66, 67, 68, 69, 70, 71, 72,
73, 74, 75, 76, 77, 78, 79, 80, -1, -1,
-1, 77, -1, 86, 87, 88, 82, -1, -1, 85,
-1, -1, -1, 89, -1, -1, 92, -1, -1, 95,
96, 3, 4, 5, 6, -1, 8, -1, -1, -1,
-1, 13, 14, 15, 16, -1, 18, -1, -1, 21,
22, 23, 24, -1, 26, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 38, -1, 40, -1,
-1, -1, 44, -1, -1, -1, 3, 4, 5, 6,
-1, 8, -1, -1, 56, 57, 13, 14, 15, 16,
-1, 18, -1, -1, 21, 22, 23, 24, -1, -1,
-1, -1, -1, -1, -1, 77, -1, -1, -1, -1,
82, -1, -1, 85, -1, -1, -1, 89, -1, -1,
92, -1, -1, -1, 96, 3, 4, 5, 6, -1,
8, -1, -1, -1, -1, 13, 14, 15, 16, -1,
18, -1, -1, 21, 22, 23, 24, -1, -1, -1,
77, -1, -1, -1, -1, 82, -1, -1, 85, -1,
-1, -1, 89, -1, -1, 92, -1, -1, -1, 96,
3, 4, 5, 6, -1, 8, -1, -1, -1, -1,
13, 14, 15, 16, -1, 18, -1, -1, 21, 22,
23, 24, -1, -1, -1, -1, -1, -1, -1, 77,
-1, -1, -1, -1, 82, -1, -1, 85, -1, -1,
-1, 89, -1, -1, 92, -1, -1, -1, 96, 60,
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
-1, -1, -1, -1, 77, 86, 87, 88, -1, 82,
-1, -1, 85, -1, -1, -1, 97, -1, -1, 92,
-1, -1, -1, 96, 60, 61, 62, 63, 64, 65,
66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 80, -1, -1, -1, -1, -1,
86, 87, 88, -1, -1, -1, -1, -1, -1, -1,
-1, 97, 60, 61, 62, 63, 64, 65, 66, 67,
68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 80, -1, -1, -1, -1, -1, 86, 87,
88, -1, -1, -1, -1, -1, -1, -1, -1, 97,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
80, -1, -1, -1, -1, -1, 86, 87, 88, -1,
-1, -1, -1, -1, -1, -1, -1, 97, 60, 61,
62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 80, -1,
-1, -1, -1, -1, 86, 87, 88, -1, -1, -1,
-1, -1, -1, -1, -1, 97, 60, 61, 62, 63,
64, 65, 66, 67, 68, 69, 70, 71, 72, 73,
74, 75, 76, 77, 78, 79, 80, -1, -1, -1,
-1, -1, 86, 87, 88, -1, -1, -1, -1, -1,
-1, -1, -1, 97, 60, 61, 62, 63, 64, 65,
66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 80, -1, -1, -1, -1, -1,
86, 87, 88, -1, -1, 91, 60, 61, 62, 63,
64, 65, 66, 67, 68, 69, 70, 71, 72, 73,
74, 75, 76, 77, 78, 79, 80, -1, -1, -1,
-1, -1, 86, 87, 88, -1, -1, 91, 60, 61,
62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 80, -1,
-1, -1, -1, -1, 86, 87, 88, 89, 90, 60,
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
-1, -1, -1, -1, -1, 86, 87, 88, 89, 60,
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
-1, -1, -1, -1, -1, 86, 87, 88, 89, 60,
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
-1, -1, -1, -1, -1, 86, 87, 88, 89, 60,
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
-1, -1, -1, -1, -1, 86, 87, 88, 89, 60,
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
-1, -1, -1, -1, -1, 86, 87, 88, 89, 60,
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
-1, -1, -1, -1, -1, 86, 87, 88, 66, 67,
68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 80, -1, -1, -1, -1, -1, 86, 87,
88, 67, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 80, -1, -1, -1, -1, -1,
86, 87, 88, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, -1, -1, -1, -1,
-1, 86, 87, 88, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 80, -1, -1, -1, -1, -1,
86, 87, 88
};
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
#line 3 "/usr/lib/bison.simple"
/* Skeleton output parser for bison,
Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, 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. */
/* As a special exception, when this file is copied by Bison into a
Bison output file, you may use that output file without restriction.
This special exception was added by the Free Software Foundation
in version 1.24 of Bison. */
#ifndef alloca
#ifdef __GNUC__
#define alloca __builtin_alloca
#else /* not GNU C. */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
#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
#else /* not MSDOS, __TURBOC__, or _AIX */
#ifdef __hpux
#ifdef __cplusplus
extern "C" {
void *alloca (unsigned int);
};
#else /* not __cplusplus */
void *alloca ();
#endif /* not __cplusplus */
#endif /* __hpux */
#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
#ifdef YYLEX_PARAM
#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
#else
#define YYLEX yylex(&yylval, &yylloc)
#endif
#else /* not YYLSP_NEEDED */
#ifdef YYLEX_PARAM
#define YYLEX yylex(&yylval, YYLEX_PARAM)
#else
#define YYLEX yylex(&yylval)
#endif
#endif /* not YYLSP_NEEDED */
#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
/* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__
int yyparse (void);
#endif
#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
#define __yy_memcpy(TO,FROM,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_memcpy (to, from, count)
char *to;
char *from;
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_memcpy (char *to, char *from, int count)
{
register char *f = from;
register char *t = to;
register int i = count;
while (i-- > 0)
*t++ = *f++;
}
#endif
#endif
#line 196 "/usr/lib/bison.simple"
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
into yyparse. The argument should have type void *.
It should actually point to an object.
Grammar actions can access the variable by casting it
to the proper pointer type. */
#ifdef YYPARSE_PARAM
#ifdef __cplusplus
#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#define YYPARSE_PARAM_DECL
#else /* not __cplusplus */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
#endif /* not __cplusplus */
#else /* not YYPARSE_PARAM */
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#endif /* not YYPARSE_PARAM */
int
yyparse(YYPARSE_PARAM_ARG)
YYPARSE_PARAM_DECL
{
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 = 0; /* 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.
The wasted elements are never initialized. */
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. */
#ifdef YYLSP_NEEDED
/* This used to be a conditional around just the two extra args,
but that might be undefined if yyoverflow is a macro. */
yyoverflow("parser stack overflow",
&yyss1, size * sizeof (*yyssp),
&yyvs1, size * sizeof (*yyvsp),
&yyls1, size * sizeof (*yylsp),
&yystacksize);
#else
yyoverflow("parser stack overflow",
&yyss1, size * sizeof (*yyssp),
&yyvs1, size * sizeof (*yyvsp),
&yystacksize);
#endif
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_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp));
yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
__yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp));
#ifdef YYLSP_NEEDED
yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
__yy_memcpy ((char *)yyls, (char *)yyls1, 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
goto yybackup;
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];
if (yylen > 0)
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 symbols 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 8:
#line 57 "simple.y"
{sendKan(0); ;
break;}
case 9:
#line 58 "simple.y"
{sendKan(0); ;
break;}
case 10:
#line 59 "simple.y"
{pkkan(" [ ] {showln} sendmsg2 \n"); sendKan(0); ;
break;}
case 11:
#line 60 "simple.y"
{sendKan(0); ;
break;}
case 12:
#line 61 "simple.y"
{sendKan(0); ;
break;}
case 14:
#line 63 "simple.y"
{sendKan(10); ;
break;}
case 27:
#line 91 "simple.y"
{ pkkan(" /FunctionValue set {/ExitPoint goto} exec %%return\n");;
break;}
case 28:
#line 92 "simple.y"
{pkkan(" {/ExitPoint goto} exec %%return void\n");;
break;}
case 29:
#line 95 "simple.y"
{ pkkan(" exit "); ;
break;}
case 30:
#line 99 "simple.y"
{ pkkan("[ "); ;
break;}
case 31:
#line 102 "simple.y"
{ pkkan(" ] "); ;
break;}
case 32:
#line 103 "simple.y"
{ pkkan(" ] "); ;
break;}
case 35:
#line 112 "simple.y"
{ pkkan(" %% if-condition\n { %%ifbody\n"); ;
break;}
case 36:
#line 115 "simple.y"
{ pkkan(" }%%end if if body\n { %%if- else part\n"); ;
break;}
case 37:
#line 116 "simple.y"
{ pkkan(" }%%end if if body\n { %%if- else part\n"); ;
break;}
case 38:
#line 119 "simple.y"
{ pkkan(" } ifelse\n"); ;
break;}
case 39:
#line 121 "simple.y"
{ pkkan(" } ifelse\n"); ;
break;}
case 40:
#line 122 "simple.y"
{ pkkan(" } ifelse\n"); ;
break;}
case 41:
#line 127 "simple.y"
{ pkkan("%%for init.\n%%for\n{ "); ;
break;}
case 42:
#line 128 "simple.y"
{ pkkan("%%nothing for init.\n%%for\n{ "); ;
break;}
case 43:
#line 131 "simple.y"
{ pkkan(" { } {exit} ifelse\n[ {%%increment\n"); ;
break;}
case 44:
#line 132 "simple.y"
{ pkkan("%%no exit rule.\n[ {%%increment\n"); ;
break;}
case 45:
#line 135 "simple.y"
{ pkkan("} %%end of increment{A}\n"); ;
break;}
case 46:
#line 140 "simple.y"
{ pkkan("{%%start of B part{B}\n"); ;
break;}
case 47:
#line 142 "simple.y"
{ pkkan(" } %% dummy A\n{%%start of B part{B}\n"); ;
break;}
case 48:
#line 146 "simple.y"
{ pkkan("} %% end of B part. {B}\n");
pkkan(" 2 1 roll] {exec} map pop\n} loop %%end of for\n"); ;
break;}
case 49:
#line 151 "simple.y"
{ pkkan("%%PSfor initvalue.\n (integer) data_conversion \n");
ips(yyvsp[-3]);
;
break;}
case 50:
#line 155 "simple.y"
{ ips(yyvsp[-7]); ips(yyvsp[-4]);
/* They must be equal id, but it is not checked. */
pkkan(" (1).. sub (integer) data_conversion 1 2 -1 roll \n");
pkkan("{ %% for body\n (universalNumber) data_conversion ");
pkkan("/"); printObjectSymbol(yyvsp[-11]); pkkan(" set \n");
;
break;}
case 51:
#line 164 "simple.y"
{ pkkan(" } for \n"); ;
break;}
case 52:
#line 168 "simple.y"
{ pkkan("\n%%while\n{ "); ;
break;}
case 53:
#line 172 "simple.y"
{ pkkan(" { } {exit} ifelse\n "); ;
break;}
case 54:
#line 173 "simple.y"
{ pkkan("%%no exit condition.\n "); ;
break;}
case 55:
#line 177 "simple.y"
{ pkkan("} loop\n"); ;
break;}
case 56:
#line 182 "simple.y"
{ pkkan(" print\n");;
break;}
case 58:
#line 190 "simple.y"
{ loadFile(yyvsp[-1]); ;
break;}
case 59:
#line 191 "simple.y"
{ loadFile(yyvsp[-1]); ;
break;}
case 60:
#line 192 "simple.y"
{ loadFile(yyvsp[0]); ;
break;}
case 61:
#line 193 "simple.y"
{ loadFile(yyvsp[0]); ;
break;}
case 62:
#line 194 "simple.y"
{ loadFileWithCpp(yyvsp[-1]); ;
break;}
case 64:
#line 197 "simple.y"
{ pkkan(" "); printObjectSymbol(yyvsp[0]); pkkan(" "); ;
break;}
case 65:
#line 198 "simple.y"
{ pkkan(" "); printObjectSymbol(yyvsp[0]); pkkan(" "); ;
break;}
case 66:
#line 199 "simple.y"
{ pkkan(" "); printObjectSymbol(yyvsp[0]); pkkan(" "); ;
break;}
case 67:
#line 200 "simple.y"
{ pkkan(" "); printObjectSymbol(yyvsp[0]); pkkan(" "); ;
break;}
case 68:
#line 205 "simple.y"
{ int tmp0;
if ((tmp0 = K00getIncetanceVariable(objectSymbolToString(yyvsp[0]))) != -1) {
pkkan(" this "); pkkanInteger(tmp0); pkkan(" get ");
} else {
printObjectSymbol(yyvsp[0]); pkkan(" ");
}
;
break;}
case 69:
#line 212 "simple.y"
{ pkkan("("); printObjectSymbol(yyvsp[0]); pkkan(") "); ;
break;}
case 71:
#line 214 "simple.y"
{ pkkan("("); printObjectSymbol(yyvsp[0]); pkkan(").. ");;
break;}
case 72:
#line 215 "simple.y"
{ pkkan(" this "); ;
break;}
case 83:
#line 230 "simple.y"
{ pkkan("this [ %% function args \n"); yyval = yyvsp[-1] ;
break;}
case 84:
#line 240 "simple.y"
{pkkan("] {");printObjectSymbol(yyvsp[-2]);pkkan("} sendmsg2 \n");;
break;}
case 85:
#line 242 "simple.y"
{pkkan("] {");printObjectSymbol(yyvsp[-1]);pkkan("} sendmsg2 \n");;
break;}
case 86:
#line 246 "simple.y"
{ pkkan("/");printObjectSymbol(yyvsp[0]); pkkan(" "); ips(yyvsp[0]);;
break;}
case 87:
#line 247 "simple.y"
{ pkkan("/");printObjectSymbol(yyvsp[0]); pkkan(" "); ips(yyvsp[0]);;
break;}
case 88:
#line 252 "simple.y"
{ pkkan("/"); printObjectSymbol(yyvsp[0]); pkkan(" {\n"); ips(yyvsp[0]);
pkdebug("In function : ", objectSymbolToString(yyvsp[0]),
" of class ",K00getCurrentContextName());
pkkan(" /Arglist set /Argthis set /FunctionValue [ ] def\n [/this ");
yyval = yyvsp[0];;
break;}
case 89:
#line 261 "simple.y"
{ pkkan("/"); printObjectSymbol(yyvsp[0]); pkkan(" {\n"); ips(yyvsp[0]);
pkdebug("In function : ", objectSymbolToString(yyvsp[0]),
" of class ",K00getCurrentContextName());
pkkan(" /Arglist set /Argthis set /FunctionValue [ ] def\n [/this ");
yyval = yyvsp[-1];;
break;}
case 90:
#line 270 "simple.y"
{pkkan(" ] /ArgNames set ArgNames pushVariables [ %%function body\n");
pkkan(" [Argthis] Arglist join ArgNames mapset\n");;
break;}
case 91:
#line 273 "simple.y"
{pkkan(" ] /ArgNames set ArgNames pushVariables [ %%function body\n");
pkkan(" [Argthis] ArgNames mapset\n"); ;
break;}
case 92:
#line 280 "simple.y"
{ pkkan("/ExitPoint ]pop popVariables %%pop the local variables\n"); ;
break;}
case 94:
#line 287 "simple.y"
{pkkan("/ExitPoint ]pop popVariables %%pop argValues\n");
pkdebug2();
pkkan("FunctionValue } def\n%%end of function\n\n"); ;
break;}
case 95:
#line 291 "simple.y"
{pkkan("/ExitPoint ]pop popVariables %%pop argValues\n");
pkdebug2();
pkkan("FunctionValue } def\n%%end of function\n\n"); ;
break;}
case 96:
#line 295 "simple.y"
{pkkan("/ExitPoint ]pop popVariables %%pop argValues\n");
pkdebug2();
pkkan("} def\n%%end of function\n\n"); ;
break;}
case 97:
#line 301 "simple.y"
{ pkkan("[ %%start of local variables\n"); ;
break;}
case 98:
#line 306 "simple.y"
{ pkkan("] pushVariables [ %%local variables\n"); ;
break;}
case 99:
#line 311 "simple.y"
{ ;;
break;}
case 100:
#line 312 "simple.y"
{ ;;
break;}
case 101:
#line 316 "simple.y"
{ ; ;
break;}
case 102:
#line 321 "simple.y"
{ ; ;
break;}
case 104:
#line 326 "simple.y"
{ pkkan(" Get\n"); ;
break;}
case 105:
#line 329 "simple.y"
{pkkan(" ] "); ;
break;}
case 108:
#line 337 "simple.y"
{ int tmp0;
if ((tmp0 = K00getIncetanceVariable(objectSymbolToString(yyvsp[-1]))) != -1) {
pkkan(" this "); pkkanInteger(tmp0); pkkan(" get [");
} else {
printObjectSymbol(yyvsp[-1]); pkkan(" [");
}
;
break;}
case 109:
#line 348 "simple.y"
{ yyval = yyvsp[0];;
break;}
case 110:
#line 352 "simple.y"
{ int tmp0;
if ((tmp0 = K00getIncetanceVariable(objectSymbolToString(yyvsp[-2]))) != -1) {
pkkan(" this "); pkkanInteger(tmp0);
pkkan(" 3 -1 roll put\n");
}else {
pkkan("/"); printObjectSymbol(yyvsp[-2]); pkkan(" "); ips(yyvsp[-2]); pkkan(" set\n");
}
;
break;}
case 111:
#line 360 "simple.y"
{ pkkan(" Put\n"); ;
break;}
case 112:
#line 361 "simple.y"
{ pkkan(" /this set \n"); ;
break;}
case 115:
#line 367 "simple.y"
{ pkkan(" not\n"); ;
break;}
case 117:
#line 369 "simple.y"
{ pkkan(" (0).. 2 1 roll {sub} sendmsg \n"); ;
break;}
case 118:
#line 370 "simple.y"
{ pkkan(" {add} sendmsg2 \n"); ;
break;}
case 119:
#line 371 "simple.y"
{ pkkan(" {sub} sendmsg2 \n"); ;
break;}
case 120:
#line 372 "simple.y"
{ pkkan(" {mul} sendmsg2 \n"); ;
break;}
case 121:
#line 373 "simple.y"
{ pkkan(" {div} sendmsg2 \n"); ;
break;}
case 123:
#line 375 "simple.y"
{ pkkan(" power\n"); ;
break;}
case 126:
#line 378 "simple.y"
{ pkkan(" eq\n"); ;
break;}
case 127:
#line 379 "simple.y"
{ pkkan(" lt\n"); ;
break;}
case 128:
#line 380 "simple.y"
{ pkkan(" gt\n"); ;
break;}
case 129:
#line 381 "simple.y"
{ pkkan(" lessThanOrEqual\n"); ;
break;}
case 131:
#line 383 "simple.y"
{ pkkan(" greaterThanOrEqual\n"); ;
break;}
case 133:
#line 385 "simple.y"
{ pkkan(" and\n"); ;
break;}
case 134:
#line 386 "simple.y"
{ pkkan(" or\n"); ;
break;}
case 135:
#line 387 "simple.y"
{ pkkan(" eq not\n"); ;
break;}
case 137:
#line 389 "simple.y"
{ pkkan("/");
printObjectSymbol(yyvsp[-1]); ips(yyvsp[-1]);
pkkan(" "); printObjectSymbol(yyvsp[-1]);
pkkan(" (1).. {add} sendmsg2 "); pkkan("def\n"); ;
break;}
case 138:
#line 393 "simple.y"
{ pkkan("/");
printObjectSymbol(yyvsp[-1]); ips(yyvsp[-1]);
pkkan(" "); printObjectSymbol(yyvsp[-1]);
pkkan(" (1).. {sub} sendmsg2 "); pkkan("def\n"); ;
break;}
case 140:
#line 398 "simple.y"
{ pkkan(" sendmsg2 \n"); ;
break;}
case 141:
#line 399 "simple.y"
{ /* Not implemented yet. */ ;
break;}
case 142:
#line 400 "simple.y"
{ pkkan(" supmsg2 \n"); ;
break;}
case 143:
#line 401 "simple.y"
{ pkkan("("); printObjectSymbol(yyvsp[-2]);
pkkan(").. (double) dc ");
pkkan("("); printObjectSymbol(yyvsp[0]); pkkan(").. ");
pkkan("("); printTens(yyvsp[0]); pkkan(").. ");
pkkan(" div (double) dc add\n"); ;
break;}
case 147:
#line 410 "simple.y"
{
int tmp0;
tmp0 = K00getIncetanceVariable("K00sizeof");
pkkan(" ("); pkkanInteger(tmp0); pkkan(").. ");
;
break;}
case 148:
#line 417 "simple.y"
{
int tmp0;
tmp0 = K00getIncetanceVariable("K00start");
pkkan(" ("); pkkanInteger(tmp0); pkkan(").. ");
;
break;}
case 149:
#line 425 "simple.y"
{ /* It is not used now. */
sendKan(1);
Sm1obj = KSpop();
if (Sm1obj.tag != Sdollar) {
fprintf(stderr," Argument of test must be a string.\n");
}
testNewFunction((struct Object *)&Sm1obj);
;
break;}
case 150:
#line 436 "simple.y"
{
fprintf(stderr," special is used to extend the function. \n");
;
break;}
case 151:
#line 445 "simple.y"
{pkkan("] {");printObjectSymbol(yyvsp[-2]);pkkan("} ");;
break;}
case 152:
#line 447 "simple.y"
{pkkan("] {");printObjectSymbol(yyvsp[-1]);pkkan("} ");;
break;}
case 153:
#line 452 "simple.y"
{ pkkan(" [ %% function args \n"); yyval = yyvsp[-1] ;
break;}
case 154:
#line 459 "simple.y"
{ pkkan(" PrimitiveContextp setcontext ");
/* debug */ K00foo1();
K00toPrimitiveClass();
;
break;}
case 155:
#line 465 "simple.y"
{ pkkan(" PrimitiveContextp setcontext ");
K00putIncetanceVariable(IEXIT," ");
/* debug */ K00foo1();
K00toPrimitiveClass();
;
break;}
case 156:
#line 475 "simple.y"
{ ips(yyvsp[-3]);
pkkan("[ $") ; printObjectSymbol(yyvsp[-3]); pkkan("$ ");
printObjectSymbol(yyvsp[-1]); pkkan(" 0 get newcontext ] /");
printObjectSymbol(yyvsp[-3]); pkkan(" set \n");
printObjectSymbol(yyvsp[-3]); pkkan(" 0 get setcontext \n");
if (K00declareClass(objectSymbolToString(yyvsp[-3]),
objectSymbolToString(yyvsp[-1])) == -1) {
/* error */
KCerror("Super class has not been defined or Invalid class name.");
}else{
K00putIncetanceVariable(IRESET," ");
}
;
break;}
case 157:
#line 492 "simple.y"
{
K00putIncetanceVariable(IEXIT," ");
;
break;}
case 158:
#line 498 "simple.y"
{
K00putIncetanceVariable(IPUT,objectSymbolToString(yyvsp[0]));
;
break;}
case 159:
#line 502 "simple.y"
{
K00putIncetanceVariable(IPUT,objectSymbolToString(yyvsp[0]));
;
break;}
case 160:
#line 508 "simple.y"
{ pkkan("/"); printObjectSymbol(yyvsp[0]); pkkan(" {\n"); ips(yyvsp[0]);
pkdebug("In function : ", objectSymbolToString(yyvsp[0]),", of class ",
K00getCurrentContextName());
pkkan(" /Arglist set /Arglist [Arglist] def ");
pkkan(" /Argthis set /FunctionValue [ ] def\n [/this ");
yyval = yyvsp[0];;
break;}
case 161:
#line 517 "simple.y"
{ pkkan(" this "); ;
break;}
case 162:
#line 522 "simple.y"
{ int tmp;
tmp = K00getIncetanceVariable("K00sizeof")
+K00getIncetanceVariable("K00start");
pkkanInteger(tmp);
pkkan(" ");
pkkan(K00getCurrentContextName());
pkkan(" cclass \n");
;
break;}
case 163:
#line 531 "simple.y"
{ int tmp;
pkkan(" PrimitiveObject ");
tmp = K00getIncetanceVariable("K00sizeof")
+K00getIncetanceVariable("K00start");
pkkanInteger(tmp);
pkkan(" ");
pkkan(K00getCurrentContextName());
pkkan(" cclass \n");
;
break;}
}
/* the action file gets copied in in place of this dollarsign */
#line 498 "/usr/lib/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;
/* Start X at -yyn if nec to avoid negative indexes in yycheck. */
for (x = (yyn < 0 ? -yyn : 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 = (yyn < 0 ? -yyn : 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");
}
goto yyerrlab1;
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 547 "simple.y"