home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
EFFO
/
pd7.lzh
/
SRC
/
gram.c
< prev
next >
Wrap
Text File
|
1990-05-06
|
72KB
|
1,789 lines
#ifndef lint
char yysccsid[] = "@(#)yaccpar 1.4 (Berkeley) 02/25/90";
#endif
#include <curses.h>
#include "sc.h"
#define ENULL (struct enode *)0
char *strcpy();
typedef union {
int ival;
double fval;
struct ent_ptr ent;
struct enode *enode;
char *sval;
struct range_s rval;
} YYSTYPE;
#define STRING 257
#define NUMBER 258
#define FNUMBER 259
#define RANGE 260
#define VAR 261
#define _WORD 262
#define COL 263
#define S_FORMAT 264
#define S_LABEL 265
#define S_LEFTSTRING 266
#define S_RIGHTSTRING 267
#define S_GET 268
#define S_PUT 269
#define S_MERGE 270
#define S_LET 271
#define S_WRITE 272
#define S_TBL 273
#define S_COPY 274
#define S_SHOW 275
#define S_ERASE 276
#define S_FILL 277
#define S_GOTO 278
#define S_DEFINE 279
#define S_UNDEFINE 280
#define S_VALUE 281
#define S_MDIR 282
#define S_HIDE 283
#define S_SET 284
#define K_FIXED 285
#define K_SUM 286
#define K_PROD 287
#define K_AVG 288
#define K_STDDEV 289
#define K_ACOS 290
#define K_ASIN 291
#define K_ATAN 292
#define K_ATAN2 293
#define K_CEIL 294
#define K_COS 295
#define K_EXP 296
#define K_FABS 297
#define K_FLOOR 298
#define K_HYPOT 299
#define K_LN 300
#define K_LOG 301
#define K_PI 302
#define K_POW 303
#define K_SIN 304
#define K_SQRT 305
#define K_TAN 306
#define K_DTR 307
#define K_RTD 308
#define K_MAX 309
#define K_MIN 310
#define K_RND 311
#define K_PV 312
#define K_FV 313
#define K_PMT 314
#define K_HOUR 315
#define K_MINUTE 316
#define K_SECOND 317
#define K_MONTH 318
#define K_DAY 319
#define K_YEAR 320
#define K_NOW 321
#define K_DATE 322
#define K_FMT 323
#define K_SUBSTR 324
#define K_STON 325
#define K_EQS 326
#define K_EXT 327
#define K_NVAL 328
#define K_SVAL 329
#define K_LOOKUP 330
#define K_INDEX 331
#define K_STINDEX 332
#define K_AUTO 333
#define K_AUTOCALC 334
#define K_BYROWS 335
#define K_BYCOLS 336
#define K_BYGRAPH 337
#define K_ITERATIONS 338
#define K_NUMERIC 339
#define K_PRESCALE 340
#define K_EXTFUN 341
#define K_CELLCUR 342
#define K_TOPROW 343
#define K_TBLSTYLE 344
#define K_TBL 345
#define K_LATEX 346
#define K_TEX 347
#define YYERRCODE 256
short yylhs[] = { -1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 8, 8, 3, 3, 1, 1, 1,
1, 1, 4, 4, 2, 2, 2, 2, 5, 5,
9, 9, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10,
};
short yylen[] = { 2,
4, 4, 4, 4, 6, 4, 2, 2, 2, 3,
2, 3, 2, 3, 2, 4, 4, 2, 2, 3,
1, 2, 1, 2, 3, 4, 2, 2, 2, 1,
2, 3, 3, 2, 2, 0, 1, 1, 2, 5,
5, 5, 5, 5, 7, 5, 7, 5, 5, 5,
7, 5, 5, 5, 5, 5, 7, 5, 5, 7,
5, 5, 5, 5, 5, 5, 9, 9, 9, 5,
5, 5, 5, 5, 5, 2, 5, 7, 5, 7,
7, 7, 7, 7, 7, 7, 9, 3, 2, 2,
1, 1, 1, 1, 2, 2, 3, 3, 3, 3,
3, 3, 1, 5, 3, 3, 3, 3, 3, 4,
4, 4, 3, 1, 3, 3, 1, 2, 3, 3,
4, 1, 1, 1, 1, 1, 2, 2, 1, 1,
0, 2, 1, 1, 2, 2, 2, 2, 1, 1,
1, 1, 2, 1, 2, 1, 2, 1, 2, 1,
2, 3, 3, 3, 3, 3,
};
short yydefred[] = { 0,
37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 131, 0, 0, 117, 122, 0, 0, 0, 123,
0, 0, 0, 129, 130, 7, 0, 8, 0, 0,
0, 0, 0, 0, 0, 22, 125, 126, 0, 0,
0, 0, 29, 28, 27, 0, 34, 24, 9, 19,
18, 0, 0, 0, 118, 0, 0, 0, 0, 0,
0, 10, 0, 12, 14, 20, 0, 0, 128, 127,
25, 0, 0, 32, 133, 134, 140, 139, 141, 0,
142, 144, 146, 148, 150, 0, 0, 0, 132, 6,
0, 120, 119, 0, 116, 94, 91, 92, 0, 93,
0, 0, 0, 0, 0, 0, 38, 0, 103, 0,
0, 0, 17, 16, 26, 0, 0, 137, 138, 143,
145, 147, 149, 151, 135, 136, 0, 121, 39, 96,
89, 90, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 76, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 95,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 152, 153, 154, 155, 156, 5,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 88, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 102, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 40, 41, 42, 43, 48, 49,
50, 0, 52, 53, 54, 55, 56, 0, 58, 59,
0, 61, 62, 63, 64, 65, 44, 0, 46, 0,
66, 0, 0, 0, 70, 71, 72, 73, 74, 75,
79, 0, 0, 77, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
51, 57, 60, 45, 0, 47, 0, 0, 0, 80,
0, 78, 84, 85, 86, 82, 81, 83, 0, 0,
0, 0, 0, 67, 68, 69, 87,
};
short yydgoto[] = { 23,
117, 51, 30, 31, 36, 376, 119, 377, 62, 99,
};
short yysindex[] = { 2721,
0, -242, -11, -11, -11, 42, 42, 42, -11, 42,
42, -11, -236, -11, 170, 96, 42, -11, -11, 42,
-214, 0, 0, -38, 0, 0, -12, -228, -15, 0,
-16, -14, -9, 0, 0, 0, -11, 0, -7, -11,
-11, -15, -11, 6, 10, 0, 0, 0, 50, 50,
50, 50, 0, 0, 0, -11, 0, 0, 0, 0,
0, -23, -179, -182, 0, -175, 49, -10, 379, 379,
379, 0, 379, 0, 0, 0, -166, -161, 0, 0,
0, 50, -15, 0, 0, 0, 0, 0, 0, 43,
0, 0, 0, 0, 0, 44, 228, -237, 0, 0,
-150, 0, 0, -143, 0, 0, 0, 0, 379, 0,
379, 379, 379, 2643, 379, 379, 0, 2755, 0, 2755,
2755, 2755, 0, 0, 0, -141, -222, 0, 0, 0,
0, 0, 0, 0, 0, 0, -138, 0, 0, 0,
0, 0, 81, 87, 88, 93, 95, 98, 104, 106,
109, 111, 112, 113, 114, 118, 120, 121, 126, 129,
136, 138, 139, 140, 145, 146, 147, 149, 156, 160,
161, 162, 163, 165, 176, 177, 0, 178, 179, 181,
182, 184, 189, 198, 215, 260, 262, 282, 690, 0,
379, 379, 379, 73, 379, 86, 75, 379, 379, 379,
379, 379, 379, 379, 0, 0, 0, 0, 0, 0,
-11, -11, -11, -11, 379, 379, 379, 379, 379, 379,
379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
379, 379, 356, 356, 379, 379, 379, 379, 379, 379,
379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
379, 379, 379, 379, 379, 0, 725, 2821, 2851, 379,
13, 13, 379, 13, 379, 4, 4, 4, 76, 76,
76, 0, 283, 284, 285, 286, 760, 795, 830, 865,
900, 935, 970, 1005, 1040, 1075, 1110, 1145, 1180, 1215,
1250, 1285, 1320, 1355, -15, 287, 1390, 288, 1425, 1460,
1495, 1530, 1565, 1600, 1635, 1670, 1705, 1740, 1775, 1810,
1845, 1880, 1915, 1950, 1985, 2020, 2055, 2090, 2125, 2160,
379, 13, 13, 13, 0, 0, 0, 0, 0, 0,
0, 379, 0, 0, 0, 0, 0, 379, 0, 0,
379, 0, 0, 0, 0, 0, 0, 379, 0, 379,
0, 379, 379, 379, 0, 0, 0, 0, 0, 0,
0, 379, 379, 0, 379, 379, 379, 379, -11, -11,
-11, 2786, 2195, 2230, 2265, 2755, 32, 33, 2300, 2335,
2370, 2405, 2440, 2475, 2510, 2545, 2580, 292, 294, 296,
0, 0, 0, 0, 379, 0, 379, 379, 379, 0,
379, 0, 0, 0, 0, 0, 0, 0, 2755, 2615,
2650, 2685, 2720, 0, 0, 0, 0,
};
short yyrindex[] = { 323,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 338, 0, 339, 0, 0, 340, 0,
0, 0, 0, 0, 0, 0, 0, 0, 39, 0,
0, 0, 0, 0, 0, 0, 341, 0, 0, 342,
346, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 348, 0, 0, 0, 0,
0, 350, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 351, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 352, 0, 360,
361, 363, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 99, 31, 0,
421, 585, 0, 586, 0, 481, 515, 546, 130, 411,
450, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 655, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 621, 622, 631, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 101, 0, 0, 0, 46, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 47, 0,
0, 0, 0, 0, 0, 0, 0,
};
short yygindex[] = { 0,
-3, 132, 30, 14, 187, 41, -50, 15, 0, 0,
};
#define YYTABLESIZE 3005
short yytable[] = { 29,
29, 29, 35, 35, 35, 29, 35, 35, 42, 97,
29, 29, 29, 35, 29, 29, 35, 32, 33, 64,
24, 44, 39, 66, 28, 28, 45, 46, 52, 55,
108, 57, 58, 42, 67, 206, 42, 42, 124, 29,
203, 43, 68, 60, 69, 201, 70, 200, 61, 203,
202, 71, 83, 73, 201, 198, 76, 199, 139, 202,
140, 141, 142, 77, 105, 190, 72, 78, 108, 74,
75, 108, 394, 396, 108, 395, 395, 28, 100, 124,
101, 124, 102, 124, 104, 84, 114, 115, 108, 114,
115, 123, 49, 108, 50, 135, 136, 204, 109, 124,
104, 124, 98, 126, 127, 111, 204, 137, 28, 118,
120, 121, 115, 122, 138, 112, 205, 113, 111, 210,
211, 28, 207, 208, 209, 115, 212, 213, 112, 99,
113, 28, 214, 260, 215, 265, 114, 216, 49, 109,
50, 104, 109, 217, 104, 218, 263, 54, 219, 114,
220, 221, 222, 223, 108, 189, 109, 224, 104, 225,
226, 109, 99, 104, 99, 227, 99, 99, 228, 204,
99, 99, 99, 99, 99, 229, 99, 230, 231, 232,
79, 80, 81, 82, 233, 234, 235, 99, 236, 99,
99, 99, 99, 37, 38, 237, 40, 41, 116, 238,
239, 240, 241, 56, 242, 28, 59, 29, 29, 29,
29, 116, 49, 125, 50, 243, 244, 245, 246, 63,
247, 248, 109, 249, 273, 274, 275, 276, 250, 295,
295, 257, 258, 259, 261, 262, 264, 251, 266, 267,
268, 269, 270, 271, 272, 65, 296, 298, 25, 26,
26, 27, 27, 99, 252, 277, 278, 279, 280, 281,
282, 283, 284, 285, 286, 287, 288, 289, 290, 291,
292, 293, 294, 297, 299, 300, 301, 302, 303, 304,
305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
315, 316, 317, 318, 319, 320, 124, 124, 34, 253,
322, 254, 26, 323, 27, 324, 103, 47, 48, 85,
86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
96, 255, 36, 325, 326, 327, 328, 347, 349, 106,
107, 108, 406, 26, 407, 27, 408, 21, 30, 23,
11, 13, 106, 107, 108, 15, 26, 31, 27, 35,
33, 2, 53, 47, 48, 25, 26, 109, 27, 3,
4, 372, 1, 0, 378, 29, 29, 29, 0, 0,
109, 0, 373, 0, 110, 0, 0, 0, 374, 0,
0, 375, 388, 389, 390, 0, 0, 110, 111, 0,
0, 28, 379, 380, 381, 115, 0, 0, 112, 0,
113, 0, 382, 383, 0, 384, 385, 386, 387, 0,
100, 111, 0, 0, 28, 0, 0, 0, 115, 114,
105, 112, 0, 113, 0, 0, 0, 47, 48, 25,
26, 0, 27, 0, 0, 409, 0, 410, 411, 412,
0, 413, 114, 100, 0, 100, 0, 100, 100, 101,
0, 100, 100, 100, 100, 100, 0, 100, 105, 0,
0, 105, 0, 0, 105, 0, 0, 0, 100, 0,
100, 100, 100, 100, 0, 0, 0, 0, 105, 0,
97, 116, 101, 105, 101, 0, 101, 101, 0, 0,
101, 101, 101, 101, 101, 0, 101, 0, 0, 0,
0, 0, 0, 0, 116, 0, 0, 101, 0, 101,
101, 101, 101, 97, 98, 97, 0, 0, 97, 0,
0, 97, 0, 97, 97, 97, 0, 0, 0, 0,
0, 0, 0, 0, 100, 0, 0, 0, 97, 0,
97, 97, 97, 97, 105, 113, 0, 98, 0, 98,
0, 0, 98, 0, 0, 98, 0, 98, 98, 98,
128, 129, 0, 0, 0, 0, 130, 131, 132, 133,
134, 0, 98, 101, 98, 98, 98, 98, 113, 0,
113, 0, 0, 113, 106, 107, 113, 0, 113, 113,
113, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 113, 97, 113, 113, 113, 113, 0,
0, 0, 106, 107, 108, 25, 26, 0, 27, 0,
110, 112, 106, 107, 0, 106, 107, 0, 106, 107,
111, 0, 0, 0, 0, 106, 107, 108, 98, 26,
109, 27, 106, 107, 0, 0, 0, 106, 107, 0,
0, 0, 0, 0, 0, 0, 0, 110, 110, 112,
0, 110, 112, 109, 110, 112, 0, 0, 111, 113,
0, 111, 0, 0, 111, 0, 0, 0, 110, 112,
110, 0, 0, 110, 112, 0, 0, 38, 111, 38,
0, 38, 38, 111, 0, 124, 38, 38, 38, 38,
0, 38, 0, 0, 0, 0, 0, 0, 106, 107,
0, 0, 0, 0, 38, 38, 38, 38, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
256, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 0, 110, 112, 0, 0, 38, 194,
195, 196, 191, 0, 111, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 38, 0,
0, 0, 321, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
329, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 330, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
331, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 332, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
333, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 334, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
335, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 336, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
337, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 338, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
339, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 340, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 341, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 342, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
343, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 344, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
345, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 346, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 348, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 350, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
351, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 352, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 353, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 354, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
355, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 356, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
357, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 358, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
359, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 360, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
361, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 362, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 363, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 364, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 365, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 366, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 367, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 368, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 369, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 370, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 371, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 391, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
392, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 393, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 397, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 398, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 399, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 400, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
0, 201, 198, 401, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 402, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
403, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 404, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
405, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 414, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
415, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 416, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 0, 0,
0, 0, 197, 0, 200, 0, 203, 193, 0, 0,
417, 201, 198, 0, 199, 0, 202, 0, 0, 0,
0, 0, 0, 192, 0, 0, 0, 0, 204, 194,
195, 196, 191, 0, 0, 0, 0, 197, 0, 200,
0, 203, 193, 0, 0, 0, 201, 198, 0, 199,
0, 202, 0, 0, 0, 0, 0, 0, 192, 0,
0, 0, 0, 204, 194, 195, 196, 191, 197, 0,
200, 0, 203, 193, 0, 0, 0, 201, 198, 0,
199, 0, 202, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 192, 0, 194, 195, 196, 204, 0,
0, 0, 0, 197, 0, 200, 0, 203, 193, 0,
0, 0, 201, 198, 0, 199, 0, 202, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 192, 204,
194, 195, 196, 197, 0, 200, 0, 203, 0, 0,
0, 0, 201, 198, 0, 199, 0, 202, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 192,
194, 195, 196, 0, 204, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 143, 144,
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
155, 156, 157, 158, 204, 159, 160, 161, 162, 163,
164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
184, 185, 186, 187, 188, 0, 1, 0, 0, 0,
0, 0, 0, 0, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22,
};
short yycheck[] = { 3,
4, 5, 6, 7, 8, 9, 10, 11, 12, 33,
14, 15, 16, 17, 18, 19, 20, 4, 5, 58,
263, 258, 9, 36, 36, 36, 263, 14, 15, 16,
0, 18, 19, 37, 263, 258, 40, 41, 0, 43,
37, 12, 58, 258, 61, 42, 61, 35, 263, 37,
47, 61, 56, 61, 42, 43, 43, 45, 109, 47,
111, 112, 113, 58, 68, 116, 37, 58, 38, 40,
41, 41, 41, 41, 44, 44, 44, 36, 258, 41,
263, 43, 258, 45, 36, 56, 41, 41, 58, 44,
44, 258, 43, 63, 45, 333, 334, 94, 0, 61,
0, 263, 126, 61, 61, 33, 94, 258, 36, 69,
70, 71, 40, 73, 258, 43, 258, 45, 33, 258,
40, 36, 345, 346, 347, 40, 40, 40, 43, 0,
45, 36, 40, 61, 40, 61, 64, 40, 43, 41,
45, 41, 44, 40, 44, 40, 61, 16, 40, 64,
40, 40, 40, 40, 124, 115, 58, 40, 58, 40,
40, 63, 33, 63, 35, 40, 37, 38, 40, 94,
41, 42, 43, 44, 45, 40, 47, 40, 40, 40,
49, 50, 51, 52, 40, 40, 40, 58, 40, 60,
61, 62, 63, 7, 8, 40, 10, 11, 126, 40,
40, 40, 40, 17, 40, 36, 20, 211, 212, 213,
214, 126, 43, 82, 45, 40, 40, 40, 40, 258,
40, 40, 124, 40, 211, 212, 213, 214, 40, 233,
234, 191, 192, 193, 194, 195, 196, 40, 198, 199,
200, 201, 202, 203, 204, 258, 233, 234, 260, 261,
261, 263, 263, 124, 40, 215, 216, 217, 218, 219,
220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
250, 251, 252, 253, 254, 255, 258, 259, 257, 40,
260, 40, 261, 263, 263, 265, 258, 258, 259, 333,
334, 335, 336, 337, 338, 339, 340, 341, 342, 343,
344, 40, 0, 41, 41, 41, 41, 41, 41, 257,
258, 259, 41, 261, 41, 263, 41, 0, 0, 0,
0, 0, 257, 258, 259, 0, 261, 0, 263, 0,
0, 0, 257, 258, 259, 260, 261, 285, 263, 0,
0, 321, 0, -1, 350, 369, 370, 371, -1, -1,
285, -1, 332, -1, 302, -1, -1, -1, 338, -1,
-1, 341, 369, 370, 371, -1, -1, 302, 33, -1,
-1, 36, 352, 353, 354, 40, -1, -1, 43, -1,
45, -1, 362, 363, -1, 365, 366, 367, 368, -1,
0, 33, -1, -1, 36, -1, -1, -1, 40, 64,
0, 43, -1, 45, -1, -1, -1, 258, 259, 260,
261, -1, 263, -1, -1, 395, -1, 397, 398, 399,
-1, 401, 64, 33, -1, 35, -1, 37, 38, 0,
-1, 41, 42, 43, 44, 45, -1, 47, 38, -1,
-1, 41, -1, -1, 44, -1, -1, -1, 58, -1,
60, 61, 62, 63, -1, -1, -1, -1, 58, -1,
0, 126, 33, 63, 35, -1, 37, 38, -1, -1,
41, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, -1, 126, -1, -1, 58, -1, 60,
61, 62, 63, 33, 0, 35, -1, -1, 38, -1,
-1, 41, -1, 43, 44, 45, -1, -1, -1, -1,
-1, -1, -1, -1, 124, -1, -1, -1, 58, -1,
60, 61, 62, 63, 124, 0, -1, 33, -1, 35,
-1, -1, 38, -1, -1, 41, -1, 43, 44, 45,
333, 334, -1, -1, -1, -1, 339, 340, 341, 342,
343, -1, 58, 124, 60, 61, 62, 63, 33, -1,
35, -1, -1, 38, 0, 0, 41, -1, 43, 44,
45, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 58, 124, 60, 61, 62, 63, -1,
-1, -1, 257, 258, 259, 260, 261, -1, 263, -1,
0, 0, 38, 38, -1, 41, 41, -1, 44, 44,
0, -1, -1, -1, -1, 257, 258, 259, 124, 261,
285, 263, 58, 58, -1, -1, -1, 63, 63, -1,
-1, -1, -1, -1, -1, -1, -1, 302, 38, 38,
-1, 41, 41, 285, 44, 44, -1, -1, 38, 124,
-1, 41, -1, -1, 44, -1, -1, -1, 58, 58,
302, -1, -1, 63, 63, -1, -1, 33, 58, 35,
-1, 37, 38, 63, -1, 41, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, 124,
-1, -1, -1, -1, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, -1, 124, 124, -1, -1, 94, 60,
61, 62, 63, -1, 124, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, 58, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, 44, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
-1, 42, 43, 44, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, 41, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, -1, -1,
-1, -1, 33, -1, 35, -1, 37, 38, -1, -1,
41, 42, 43, -1, 45, -1, 47, -1, -1, -1,
-1, -1, -1, 124, -1, -1, -1, -1, 94, 60,
61, 62, 63, -1, -1, -1, -1, 33, -1, 35,
-1, 37, 38, -1, -1, -1, 42, 43, -1, 45,
-1, 47, -1, -1, -1, -1, -1, -1, 124, -1,
-1, -1, -1, 94, 60, 61, 62, 63, 33, -1,
35, -1, 37, 38, -1, -1, -1, 42, 43, -1,
45, -1, 47, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 124, -1, 60, 61, 62, 94, -1,
-1, -1, -1, 33, -1, 35, -1, 37, 38, -1,
-1, -1, 42, 43, -1, 45, -1, 47, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 124, 94,
60, 61, 62, 33, -1, 35, -1, 37, -1, -1,
-1, -1, 42, 43, -1, 45, -1, 47, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 124,
60, 61, 62, -1, 94, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 286, 287,
288, 289, 290, 291, 292, 293, 294, 295, 296, 297,
298, 299, 300, 301, 94, 303, 304, 305, 306, 307,
308, 309, 310, 311, 312, 313, 314, 315, 316, 317,
318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
328, 329, 330, 331, 332, -1, 256, -1, -1, -1,
-1, -1, -1, -1, 264, 265, 266, 267, 268, 269,
270, 271, 272, 273, 274, 275, 276, 277, 278, 279,
280, 281, 282, 283, 284,
};
#define YYFINAL 23
#ifndef YYDEBUG
#define YYDEBUG 0
#endif
#define YYMAXTOKEN 347
#if YYDEBUG
char *yyname[] = {
"end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
"'!'",0,"'#'","'$'","'%'","'&'",0,"'('","')'","'*'","'+'","','","'-'",0,"'/'",0,
0,0,0,0,0,0,0,0,0,"':'",0,"'<'","'='","'>'","'?'","'@'",0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'^'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,"'|'",0,"'~'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"STRING","NUMBER","FNUMBER",
"RANGE","VAR","_WORD","COL","S_FORMAT","S_LABEL","S_LEFTSTRING","S_RIGHTSTRING",
"S_GET","S_PUT","S_MERGE","S_LET","S_WRITE","S_TBL","S_COPY","S_SHOW","S_ERASE",
"S_FILL","S_GOTO","S_DEFINE","S_UNDEFINE","S_VALUE","S_MDIR","S_HIDE","S_SET",
"K_FIXED","K_SUM","K_PROD","K_AVG","K_STDDEV","K_ACOS","K_ASIN","K_ATAN",
"K_ATAN2","K_CEIL","K_COS","K_EXP","K_FABS","K_FLOOR","K_HYPOT","K_LN","K_LOG",
"K_PI","K_POW","K_SIN","K_SQRT","K_TAN","K_DTR","K_RTD","K_MAX","K_MIN","K_RND",
"K_PV","K_FV","K_PMT","K_HOUR","K_MINUTE","K_SECOND","K_MONTH","K_DAY","K_YEAR",
"K_NOW","K_DATE","K_FMT","K_SUBSTR","K_STON","K_EQS","K_EXT","K_NVAL","K_SVAL",
"K_LOOKUP","K_INDEX","K_STINDEX","K_AUTO","K_AUTOCALC","K_BYROWS","K_BYCOLS",
"K_BYGRAPH","K_ITERATIONS","K_NUMERIC","K_PRESCALE","K_EXTFUN","K_CELLCUR",
"K_TOPROW","K_TBLSTYLE","K_TBL","K_LATEX","K_TEX",
};
char *yyrule[] = {
"$accept : command",
"command : S_LET var_or_range '=' e",
"command : S_LABEL var_or_range '=' e",
"command : S_LEFTSTRING var_or_range '=' e",
"command : S_RIGHTSTRING var_or_range '=' e",
"command : S_FORMAT COL ':' COL NUMBER NUMBER",
"command : S_FORMAT COL NUMBER NUMBER",
"command : S_GET strarg",
"command : S_MERGE strarg",
"command : S_MDIR strarg",
"command : S_PUT strarg range",
"command : S_PUT strarg",
"command : S_WRITE strarg range",
"command : S_WRITE strarg",
"command : S_TBL strarg range",
"command : S_TBL strarg",
"command : S_SHOW COL ':' COL",
"command : S_SHOW NUMBER ':' NUMBER",
"command : S_HIDE COL",
"command : S_HIDE NUMBER",
"command : S_COPY range var_or_range",
"command : S_ERASE",
"command : S_ERASE var_or_range",
"command : S_VALUE",
"command : S_VALUE var_or_range",
"command : S_FILL num num",
"command : S_FILL var_or_range num num",
"command : S_GOTO var_or_range",
"command : S_GOTO num",
"command : S_GOTO STRING",
"command : S_GOTO",
"command : S_DEFINE strarg",
"command : S_DEFINE strarg range",
"command : S_DEFINE strarg var",
"command : S_UNDEFINE var_or_range",
"command : S_SET setlist",
"command :",
"command : error",
"term : var",
"term : K_FIXED term",
"term : '@' K_SUM '(' var_or_range ')'",
"term : '@' K_PROD '(' var_or_range ')'",
"term : '@' K_AVG '(' var_or_range ')'",
"term : '@' K_STDDEV '(' var_or_range ')'",
"term : '@' K_MAX '(' var_or_range ')'",
"term : '@' K_MAX '(' e ',' expr_list ')'",
"term : '@' K_MIN '(' var_or_range ')'",
"term : '@' K_MIN '(' e ',' expr_list ')'",
"term : '@' K_ACOS '(' e ')'",
"term : '@' K_ASIN '(' e ')'",
"term : '@' K_ATAN '(' e ')'",
"term : '@' K_ATAN2 '(' e ',' e ')'",
"term : '@' K_CEIL '(' e ')'",
"term : '@' K_COS '(' e ')'",
"term : '@' K_EXP '(' e ')'",
"term : '@' K_FABS '(' e ')'",
"term : '@' K_FLOOR '(' e ')'",
"term : '@' K_HYPOT '(' e ',' e ')'",
"term : '@' K_LN '(' e ')'",
"term : '@' K_LOG '(' e ')'",
"term : '@' K_POW '(' e ',' e ')'",
"term : '@' K_SIN '(' e ')'",
"term : '@' K_SQRT '(' e ')'",
"term : '@' K_TAN '(' e ')'",
"term : '@' K_DTR '(' e ')'",
"term : '@' K_RTD '(' e ')'",
"term : '@' K_RND '(' e ')'",
"term : '@' K_PV '(' e ',' e ',' e ')'",
"term : '@' K_FV '(' e ',' e ',' e ')'",
"term : '@' K_PMT '(' e ',' e ',' e ')'",
"term : '@' K_HOUR '(' e ')'",
"term : '@' K_MINUTE '(' e ')'",
"term : '@' K_SECOND '(' e ')'",
"term : '@' K_MONTH '(' e ')'",
"term : '@' K_DAY '(' e ')'",
"term : '@' K_YEAR '(' e ')'",
"term : '@' K_NOW",
"term : '@' K_STON '(' e ')'",
"term : '@' K_EQS '(' e ',' e ')'",
"term : '@' K_DATE '(' e ')'",
"term : '@' K_FMT '(' e ',' e ')'",
"term : '@' K_INDEX '(' e ',' var_or_range ')'",
"term : '@' K_LOOKUP '(' e ',' var_or_range ')'",
"term : '@' K_STINDEX '(' e ',' var_or_range ')'",
"term : '@' K_EXT '(' e ',' e ')'",
"term : '@' K_NVAL '(' e ',' e ')'",
"term : '@' K_SVAL '(' e ',' e ')'",
"term : '@' K_SUBSTR '(' e ',' e ',' e ')'",
"term : '(' e ')'",
"term : '+' term",
"term : '-' term",
"term : NUMBER",
"term : FNUMBER",
"term : K_PI",
"term : STRING",
"term : '~' term",
"term : '!' term",
"e : e '+' e",
"e : e '-' e",
"e : e '*' e",
"e : e '/' e",
"e : e '%' e",
"e : e '^' e",
"e : term",
"e : e '?' e ':' e",
"e : e '<' e",
"e : e '=' e",
"e : e '>' e",
"e : e '&' e",
"e : e '|' e",
"e : e '<' '=' e",
"e : e '!' '=' e",
"e : e '>' '=' e",
"e : e '#' e",
"expr_list : e",
"expr_list : expr_list ',' e",
"range : var ':' var",
"range : RANGE",
"var : COL NUMBER",
"var : '$' COL NUMBER",
"var : COL '$' NUMBER",
"var : '$' COL '$' NUMBER",
"var : VAR",
"var_or_range : range",
"var_or_range : var",
"num : NUMBER",
"num : FNUMBER",
"num : '-' num",
"num : '+' num",
"strarg : STRING",
"strarg : var",
"setlist :",
"setlist : setlist setitem",
"setitem : K_AUTO",
"setitem : K_AUTOCALC",
"setitem : '~' K_AUTO",
"setitem : '~' K_AUTOCALC",
"setitem : '!' K_AUTO",
"setitem : '!' K_AUTOCALC",
"setitem : K_BYCOLS",
"setitem : K_BYROWS",
"setitem : K_BYGRAPH",
"setitem : K_NUMERIC",
"setitem : '!' K_NUMERIC",
"setitem : K_PRESCALE",
"setitem : '!' K_PRESCALE",
"setitem : K_EXTFUN",
"setitem : '!' K_EXTFUN",
"setitem : K_CELLCUR",
"setitem : '!' K_CELLCUR",
"setitem : K_TOPROW",
"setitem : '!' K_TOPROW",
"setitem : K_ITERATIONS '=' NUMBER",
"setitem : K_TBLSTYLE '=' NUMBER",
"setitem : K_TBLSTYLE '=' K_TBL",
"setitem : K_TBLSTYLE '=' K_LATEX",
"setitem : K_TBLSTYLE '=' K_TEX",
};
#endif
#define yyclearin (yychar=(-1))
#define yyerrok (yyerrflag=0)
#ifndef YYSTACKSIZE
#ifdef YYMAXDEPTH
#define YYSTACKSIZE YYMAXDEPTH
#else
#define YYSTACKSIZE 300
#endif
#endif
int yydebug;
int yynerrs;
int yyerrflag;
int yychar;
short *yyssp;
YYSTYPE *yyvsp;
YYSTYPE yyval;
YYSTYPE yylval;
#define yystacksize YYSTACKSIZE
short yyss[YYSTACKSIZE];
YYSTYPE yyvs[YYSTACKSIZE];
#define YYABORT goto yyabort
#define YYACCEPT goto yyaccept
#define YYERROR goto yyerrlab
int
yyparse()
{
register int yym, yyn, yystate;
#if YYDEBUG
register char *yys;
extern char *getenv();
if (yys = getenv("YYDEBUG"))
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
yydebug = yyn - '0';
}
#endif
yynerrs = 0;
yyerrflag = 0;
yychar = (-1);
yyssp = yyss;
yyvsp = yyvs;
*yyssp = yystate = 0;
yyloop:
if (yyn = yydefred[yystate]) goto yyreduce;
if (yychar < 0)
{
if ((yychar = yylex()) < 0) yychar = 0;
#if YYDEBUG
if (yydebug)
{
yys = 0;
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
printf("yydebug: state %d, reading %d (%s)\n", yystate,
yychar, yys);
}
#endif
}
if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
{
#if YYDEBUG
if (yydebug)
printf("yydebug: state %d, shifting to state %d\n",
yystate, yytable[yyn]);
#endif
if (yyssp >= yyss + yystacksize - 1)
{
goto yyoverflow;
}
*++yyssp = yystate = yytable[yyn];
*++yyvsp = yylval;
yychar = (-1);
if (yyerrflag > 0) --yyerrflag;
goto yyloop;
}
if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
{
yyn = yytable[yyn];
goto yyreduce;
}
if (yyerrflag) goto yyinrecovery;
#ifdef lint
goto yynewerror;
#endif
yynewerror:
yyerror("syntax error");
#ifdef lint
goto yyerrlab;
#endif
yyerrlab:
++yynerrs;
yyinrecovery:
if (yyerrflag < 3)
{
yyerrflag = 3;
for (;;)
{
if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)
{
#if YYDEBUG
if (yydebug)
printf("yydebug: state %d, error recovery shifting\
to state %d\n", *yyssp, yytable[yyn]);
#endif
if (yyssp >= yyss + yystacksize - 1)
{
goto yyoverflow;
}
*++yyssp = yystate = yytable[yyn];
*++yyvsp = yylval;
goto yyloop;
}
else
{
#if YYDEBUG
if (yydebug)
printf("yydebug: error recovery discarding state %d\n",
*yyssp);
#endif
if (yyssp <= yyss) goto yyabort;
--yyssp;
--yyvsp;
}
}
}
else
{
if (yychar == 0) goto yyabort;
#if YYDEBUG
if (yydebug)
{
yys = 0;
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
printf("yydebug: state %d, error recovery discards token %d (%s)\n",
yystate, yychar, yys);
}
#endif
yychar = (-1);
goto yyloop;
}
yyreduce:
#if YYDEBUG
if (yydebug)
printf("yydebug: state %d, reducing by rule %d (%s)\n",
yystate, yyn, yyrule[yyn]);
#endif
yym = yylen[yyn];
yyval = yyvsp[1-yym];
switch (yyn)
{
case 1:
{ let(yyvsp[-2].rval .left.vp, yyvsp[0].enode ); }
break;
case 2:
{ slet(yyvsp[-2].rval .left.vp, yyvsp[0].enode , 0); }
break;
case 3:
{ slet(yyvsp[-2].rval .left.vp, yyvsp[0].enode , -1); }
break;
case 4:
{ slet(yyvsp[-2].rval .left.vp, yyvsp[0].enode , 1); }
break;
case 5:
{ doformat(yyvsp[-4].ival ,yyvsp[-2].ival ,yyvsp[-1].ival ,yyvsp[0].ival ); }
break;
case 6:
{ doformat(yyvsp[-2].ival ,yyvsp[-2].ival ,yyvsp[-1].ival ,yyvsp[0].ival ); }
break;
case 7:
{ /* This tmp hack is because readfile
* recurses back through yyparse. */
char *tmp;
tmp = yyvsp[0].sval ;
readfile (tmp, 1);
xfree(tmp);
}
break;
case 8:
{
char *tmp;
tmp = yyvsp[0].sval ;
readfile (tmp, 0);
xfree(tmp);
}
break;
case 9:
{ if (mdir) xfree(mdir); mdir = yyvsp[0].sval ; }
break;
case 10:
{ (void) writefile(yyvsp[-1].sval , (yyvsp[0].rval .left.vp)->row,
(yyvsp[0].rval .left.vp)->col, (yyvsp[0].rval .right.vp)->row,
(yyvsp[0].rval .right.vp)->col);
xfree(yyvsp[-1].sval ); }
break;
case 11:
{ (void) writefile (yyvsp[0].sval , 0, 0, maxrow, maxcol);
xfree(yyvsp[0].sval ); }
break;
case 12:
{ (void) printfile(yyvsp[-1].sval , (yyvsp[0].rval .left.vp)->row,
(yyvsp[0].rval .left.vp)->col, (yyvsp[0].rval .right.vp)->row,
(yyvsp[0].rval .right.vp)->col);
xfree(yyvsp[-1].sval ); }
break;
case 13:
{ (void) printfile (yyvsp[0].sval , 0, 0, maxrow, maxcol);
xfree(yyvsp[0].sval ); }
break;
case 14:
{ (void) tblprintfile(yyvsp[-1].sval , (yyvsp[0].rval .left.vp)->row,
(yyvsp[0].rval .left.vp)->col, (yyvsp[0].rval .right.vp)->row,
(yyvsp[0].rval .right.vp)->col);
xfree(yyvsp[-1].sval ); }
break;
case 15:
{ (void)tblprintfile (yyvsp[0].sval , 0, 0, maxrow, maxcol);
xfree(yyvsp[0].sval ); }
break;
case 16:
{ showcol( yyvsp[-2].ival , yyvsp[0].ival ); }
break;
case 17:
{ showrow( yyvsp[-2].ival , yyvsp[0].ival ); }
break;
case 18:
{ hide_col( yyvsp[0].ival ); }
break;
case 19:
{ hide_row( yyvsp[0].ival ); }
break;
case 20:
{ copy(yyvsp[-1].rval .left.vp,yyvsp[-1].rval .right.vp,
yyvsp[0].rval .left.vp,yyvsp[0].rval .right.vp); }
break;
case 21:
{ eraser(lookat(showsr, showsc),
lookat(currow, curcol)); }
break;
case 22:
{ eraser(yyvsp[0].rval .left.vp, yyvsp[0].rval .right.vp); }
break;
case 23:
{ valueize_area(showsr, showsc, currow, curcol);
modflg++; }
break;
case 24:
{ valueize_area((yyvsp[0].rval .left.vp)->row,
(yyvsp[0].rval .left.vp)->col,
(yyvsp[0].rval .right.vp)->row,
(yyvsp[0].rval .right.vp)->col); modflg++; }
break;
case 25:
{ fill(lookat(showsr, showsc),
lookat(currow, curcol), yyvsp[-1].fval , yyvsp[0].fval ); }
break;
case 26:
{ fill(yyvsp[-2].rval .left.vp, yyvsp[-2].rval .right.vp, yyvsp[-1].fval , yyvsp[0].fval ); }
break;
case 27:
{moveto(yyvsp[0].rval .left.vp->row, yyvsp[0].rval .left.vp->col);}
break;
case 28:
{num_search(yyvsp[0].fval );}
break;
case 29:
{str_search(yyvsp[0].sval );}
break;
case 30:
{go_last();}
break;
case 31:
{ struct ent_ptr arg1, arg2;
arg1.vp = lookat(showsr, showsc);
arg1.vf = 0;
arg2.vp = lookat(currow, curcol);
arg2.vf = 0;
add_range(yyvsp[0].sval , arg1, arg2, 1); }
break;
case 32:
{ add_range(yyvsp[-1].sval , yyvsp[0].rval .left, yyvsp[0].rval .right, 1); }
break;
case 33:
{ add_range(yyvsp[-1].sval , yyvsp[0].ent , yyvsp[0].ent , 0); }
break;
case 34:
{ del_range(yyvsp[0].rval .left.vp, yyvsp[0].rval .right.vp); }
break;
case 38:
{ yyval.enode = new_var('v', yyvsp[0].ent ); }
break;
case 39:
{ yyval.enode = new ('f', ENULL, yyvsp[0].enode ); }
break;
case 40:
{ yyval.enode = new_range(REDUCE | '+', yyvsp[-1].rval ); }
break;
case 41:
{ yyval.enode = new_range (REDUCE | '*', yyvsp[-1].rval ); }
break;
case 42:
{ yyval.enode = new_range (REDUCE | 'a', yyvsp[-1].rval ); }
break;
case 43:
{ yyval.enode = new_range (REDUCE | 's', yyvsp[-1].rval ); }
break;
case 44:
{ yyval.enode = new_range (REDUCE | MAX, yyvsp[-1].rval ); }
break;
case 45:
{ yyval.enode = new(LMAX, yyvsp[-1].enode , yyvsp[-3].enode ); }
break;
case 46:
{ yyval.enode = new_range (REDUCE | MIN, yyvsp[-1].rval ); }
break;
case 47:
{ yyval.enode = new(LMIN, yyvsp[-1].enode , yyvsp[-3].enode ); }
break;
case 48:
{ yyval.enode = new(ACOS, ENULL, yyvsp[-1].enode ); }
break;
case 49:
{ yyval.enode = new(ASIN, ENULL, yyvsp[-1].enode ); }
break;
case 50:
{ yyval.enode = new(ATAN, ENULL, yyvsp[-1].enode ); }
break;
case 51:
{ yyval.enode = new(ATAN2, yyvsp[-3].enode , yyvsp[-1].enode ); }
break;
case 52:
{ yyval.enode = new(CEIL, ENULL, yyvsp[-1].enode ); }
break;
case 53:
{ yyval.enode = new(COS, ENULL, yyvsp[-1].enode ); }
break;
case 54:
{ yyval.enode = new(EXP, ENULL, yyvsp[-1].enode ); }
break;
case 55:
{ yyval.enode = new(FABS, ENULL, yyvsp[-1].enode ); }
break;
case 56:
{ yyval.enode = new(FLOOR, ENULL, yyvsp[-1].enode ); }
break;
case 57:
{ yyval.enode = new(HYPOT, yyvsp[-3].enode , yyvsp[-1].enode ); }
break;
case 58:
{ yyval.enode = new(LOG, ENULL, yyvsp[-1].enode ); }
break;
case 59:
{ yyval.enode = new(LOG10, ENULL, yyvsp[-1].enode ); }
break;
case 60:
{ yyval.enode = new(POW, yyvsp[-3].enode , yyvsp[-1].enode ); }
break;
case 61:
{ yyval.enode = new(SIN, ENULL, yyvsp[-1].enode ); }
break;
case 62:
{ yyval.enode = new(SQRT, ENULL, yyvsp[-1].enode ); }
break;
case 63:
{ yyval.enode = new(TAN, ENULL, yyvsp[-1].enode ); }
break;
case 64:
{ yyval.enode = new(DTR, ENULL, yyvsp[-1].enode ); }
break;
case 65:
{ yyval.enode = new(RTD, ENULL, yyvsp[-1].enode ); }
break;
case 66:
{ yyval.enode = new(RND, ENULL, yyvsp[-1].enode ); }
break;
case 67:
{ yyval.enode = new(PV, yyvsp[-5].enode ,new(':',yyvsp[-3].enode ,yyvsp[-1].enode )); }
break;
case 68:
{ yyval.enode = new(FV, yyvsp[-5].enode ,new(':',yyvsp[-3].enode ,yyvsp[-1].enode )); }
break;
case 69:
{ yyval.enode = new(PMT, yyvsp[-5].enode ,new(':',yyvsp[-3].enode ,yyvsp[-1].enode )); }
break;
case 70:
{ yyval.enode = new(HOUR,ENULL, yyvsp[-1].enode ); }
break;
case 71:
{ yyval.enode = new(MINUTE,ENULL, yyvsp[-1].enode ); }
break;
case 72:
{ yyval.enode = new(SECOND,ENULL, yyvsp[-1].enode ); }
break;
case 73:
{ yyval.enode = new(MONTH,ENULL,yyvsp[-1].enode ); }
break;
case 74:
{ yyval.enode = new(DAY, ENULL, yyvsp[-1].enode ); }
break;
case 75:
{ yyval.enode = new(YEAR, ENULL, yyvsp[-1].enode ); }
break;
case 76:
{ yyval.enode = new(NOW, ENULL, ENULL);}
break;
case 77:
{ yyval.enode = new(STON, ENULL, yyvsp[-1].enode ); }
break;
case 78:
{ yyval.enode = new (EQS, yyvsp[-3].enode , yyvsp[-1].enode ); }
break;
case 79:
{ yyval.enode = new(DATE, ENULL, yyvsp[-1].enode ); }
break;
case 80:
{ yyval.enode = new(FMT, yyvsp[-3].enode , yyvsp[-1].enode ); }
break;
case 81:
{ yyval.enode = new(INDEX, yyvsp[-3].enode , new_range(REDUCE | INDEX, yyvsp[-1].rval )); }
break;
case 82:
{ yyval.enode = new(LOOKUP, yyvsp[-3].enode , new_range(REDUCE | LOOKUP, yyvsp[-1].rval )); }
break;
case 83:
{ yyval.enode = new(STINDEX, yyvsp[-3].enode , new_range(REDUCE | STINDEX, yyvsp[-1].rval )); }
break;
case 84:
{ yyval.enode = new(EXT, yyvsp[-3].enode , yyvsp[-1].enode ); }
break;
case 85:
{ yyval.enode = new(NVAL, yyvsp[-3].enode , yyvsp[-1].enode ); }
break;
case 86:
{ yyval.enode = new(SVAL, yyvsp[-3].enode , yyvsp[-1].enode ); }
break;
case 87:
{ yyval.enode = new(SUBSTR, yyvsp[-5].enode , new(',', yyvsp[-3].enode , yyvsp[-1].enode )); }
break;
case 88:
{ yyval.enode = yyvsp[-1].enode ; }
break;
case 89:
{ yyval.enode = yyvsp[0].enode ; }
break;
case 90:
{ yyval.enode = new ('m', ENULL, yyvsp[0].enode ); }
break;
case 91:
{ yyval.enode = new_const('k', (double) yyvsp[0].ival ); }
break;
case 92:
{ yyval.enode = new_const('k', yyvsp[0].fval ); }
break;
case 93:
{ yyval.enode = new_const('k', (double)3.14159265358979323846); }
break;
case 94:
{ yyval.enode = new_str(yyvsp[0].sval ); }
break;
case 95:
{ yyval.enode = new ('~', ENULL, yyvsp[0].enode ); }
break;
case 96:
{ yyval.enode = new ('~', ENULL, yyvsp[0].enode ); }
break;
case 97:
{ yyval.enode = new ('+', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 98:
{ yyval.enode = new ('-', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 99:
{ yyval.enode = new ('*', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 100:
{ yyval.enode = new ('/', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 101:
{ yyval.enode = new ('%', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 102:
{ yyval.enode = new ('^', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 104:
{ yyval.enode = new ('?', yyvsp[-4].enode , new(':', yyvsp[-2].enode , yyvsp[0].enode )); }
break;
case 105:
{ yyval.enode = new ('<', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 106:
{ yyval.enode = new ('=', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 107:
{ yyval.enode = new ('>', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 108:
{ yyval.enode = new ('&', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 109:
{ yyval.enode = new ('|', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 110:
{ yyval.enode = new ('~', ENULL, new ('>', yyvsp[-3].enode , yyvsp[0].enode )); }
break;
case 111:
{ yyval.enode = new ('~', ENULL, new ('=', yyvsp[-3].enode , yyvsp[0].enode )); }
break;
case 112:
{ yyval.enode = new ('~', ENULL, new ('<', yyvsp[-3].enode , yyvsp[0].enode )); }
break;
case 113:
{ yyval.enode = new ('#', yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 114:
{ yyval.enode = new(ELIST, ENULL, yyvsp[0].enode ); }
break;
case 115:
{ yyval.enode = new(ELIST, yyvsp[-2].enode , yyvsp[0].enode ); }
break;
case 116:
{ yyval.rval .left = yyvsp[-2].ent ; yyval.rval .right = yyvsp[0].ent ; }
break;
case 117:
{ yyval.rval = yyvsp[0].rval ; }
break;
case 118:
{ yyval.ent .vp = lookat(yyvsp[0].ival , yyvsp[-1].ival ); yyval.ent .vf = 0;}
break;
case 119:
{ yyval.ent .vp = lookat(yyvsp[0].ival , yyvsp[-1].ival );
yyval.ent .vf = FIX_COL;}
break;
case 120:
{ yyval.ent .vp = lookat(yyvsp[0].ival , yyvsp[-2].ival );
yyval.ent .vf = FIX_ROW;}
break;
case 121:
{ yyval.ent .vp = lookat(yyvsp[0].ival , yyvsp[-2].ival );
yyval.ent .vf = FIX_ROW | FIX_COL;}
break;
case 122:
{ yyval.ent = yyvsp[0].rval .left; }
break;
case 123:
{ yyval.rval = yyvsp[0].rval ; }
break;
case 124:
{ yyval.rval .left = yyvsp[0].ent ; yyval.rval .right = yyvsp[0].ent ; }
break;
case 125:
{ yyval.fval = (double) yyvsp[0].ival ; }
break;
case 126:
{ yyval.fval = yyvsp[0].fval ; }
break;
case 127:
{ yyval.fval = -yyvsp[0].fval ; }
break;
case 128:
{ yyval.fval = yyvsp[0].fval ; }
break;
case 129:
{ yyval.sval = yyvsp[0].sval ; }
break;
case 130:
{
char *s, *s1;
s1 = yyvsp[0].ent .vp->label;
if (!s1)
s1 = "NULL_STRING";
s = xmalloc((unsigned)strlen(s1)+1);
(void) strcpy(s, s1);
yyval.sval = s;
}
break;
case 133:
{ setauto(1); }
break;
case 134:
{ setauto(1); }
break;
case 135:
{ setauto(0); }
break;
case 136:
{ setauto(0); }
break;
case 137:
{ setauto(0); }
break;
case 138:
{ setauto(0); }
break;
case 139:
{ setorder(BYCOLS); }
break;
case 140:
{ setorder(BYROWS); }
break;
case 141:
{ setorder(BYGRAPH); }
break;
case 142:
{ numeric = 1; }
break;
case 143:
{ numeric = 0; }
break;
case 144:
{ prescale = 0.01; }
break;
case 145:
{ prescale = 1.0; }
break;
case 146:
{ extfunc = 1; }
break;
case 147:
{ extfunc = 0; }
break;
case 148:
{ showcell = 1; }
break;
case 149:
{ showcell = 0; }
break;
case 150:
{ showtop = 1; }
break;
case 151:
{ showtop = 0; }
break;
case 152:
{ setiterations(yyvsp[0].ival ); }
break;
case 153:
{ tbl_style = yyvsp[0].ival ; }
break;
case 154:
{ tbl_style = TBL; }
break;
case 155:
{ tbl_style = LATEX; }
break;
case 156:
{ tbl_style = TEX; }
break;
}
yyssp -= yym;
yystate = *yyssp;
yyvsp -= yym;
yym = yylhs[yyn];
if (yystate == 0 && yym == 0)
{
#ifdef YYDEBUG
if (yydebug)
printf("yydebug: after reduction, shifting from state 0 to\
state %d\n", YYFINAL);
#endif
yystate = YYFINAL;
*++yyssp = YYFINAL;
*++yyvsp = yyval;
if (yychar < 0)
{
if ((yychar = yylex()) < 0) yychar = 0;
#if YYDEBUG
if (yydebug)
{
yys = 0;
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
printf("yydebug: state %d, reading %d (%s)\n",
YYFINAL, yychar, yys);
}
#endif
}
if (yychar == 0) goto yyaccept;
goto yyloop;
}
if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == yystate)
yystate = yytable[yyn];
else
yystate = yydgoto[yym];
#ifdef YYDEBUG
if (yydebug)
printf("yydebug: after reduction, shifting from state %d \
to state %d\n", *yyssp, yystate);
#endif
if (yyssp >= yyss + yystacksize - 1)
{
goto yyoverflow;
}
*++yyssp = yystate;
*++yyvsp = yyval;
goto yyloop;
yyoverflow:
yyerror("yacc stack overflow");
yyabort:
return (1);
yyaccept:
return (0);
}