home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
f2c
/
src
/
gram.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-12-11
|
96KB
|
2,780 lines
/* A Bison parser, made from gram.in */
#define SEOS 1
#define SCOMMENT 2
#define SLABEL 3
#define SUNKNOWN 4
#define SHOLLERITH 5
#define SICON 6
#define SRCON 7
#define SDCON 8
#define SBITCON 9
#define SOCTCON 10
#define SHEXCON 11
#define STRUE 12
#define SFALSE 13
#define SNAME 14
#define SNAMEEQ 15
#define SFIELD 16
#define SSCALE 17
#define SINCLUDE 18
#define SLET 19
#define SASSIGN 20
#define SAUTOMATIC 21
#define SBACKSPACE 22
#define SBLOCK 23
#define SCALL 24
#define SCHARACTER 25
#define SCLOSE 26
#define SCOMMON 27
#define SCOMPLEX 28
#define SCONTINUE 29
#define SDATA 30
#define SDCOMPLEX 31
#define SDIMENSION 32
#define SDO 33
#define SDOUBLE 34
#define SELSE 35
#define SELSEIF 36
#define SEND 37
#define SENDFILE 38
#define SENDIF 39
#define SENTRY 40
#define SEQUIV 41
#define SEXTERNAL 42
#define SFORMAT 43
#define SFUNCTION 44
#define SGOTO 45
#define SASGOTO 46
#define SCOMPGOTO 47
#define SARITHIF 48
#define SLOGIF 49
#define SIMPLICIT 50
#define SINQUIRE 51
#define SINTEGER 52
#define SINTRINSIC 53
#define SLOGICAL 54
#define SNAMELIST 55
#define SOPEN 56
#define SPARAM 57
#define SPAUSE 58
#define SPRINT 59
#define SPROGRAM 60
#define SPUNCH 61
#define SREAD 62
#define SREAL 63
#define SRETURN 64
#define SREWIND 65
#define SSAVE 66
#define SSTATIC 67
#define SSTOP 68
#define SSUBROUTINE 69
#define STHEN 70
#define STO 71
#define SUNDEFINED 72
#define SWRITE 73
#define SLPAR 74
#define SRPAR 75
#define SEQUALS 76
#define SCOLON 77
#define SCOMMA 78
#define SCURRENCY 79
#define SPLUS 80
#define SMINUS 81
#define SSTAR 82
#define SSLASH 83
#define SPOWER 84
#define SCONCAT 85
#define SAND 86
#define SOR 87
#define SNEQV 88
#define SEQV 89
#define SNOT 90
#define SEQ 91
#define SLT 92
#define SGT 93
#define SLE 94
#define SGE 95
#define SNE 96
#define SENDDO 97
#define SWHILE 98
#define SSLASHD 99
#line 123 "gram.in"
# include "defs.h"
# include "p1defs.h"
static int nstars; /* Number of labels in an
alternate return CALL */
static int datagripe;
static int ndim;
static int vartype;
int new_dcl;
static ftnint varleng;
static struct Dims dims[MAXDIM+1];
static struct Labelblock *labarray[MAXLABLIST]; /* Labels in an alternate
return CALL */
/* The next two variables are used to verify that each statement might be reached
during runtime. lastwasbranch is tested only in the defintion of the
stat: nonterminal. */
int lastwasbranch = NO;
static int thiswasbranch = NO;
extern ftnint yystno;
extern flag intonly;
static chainp datastack;
extern long laststfcn, thisstno;
extern int can_include; /* for netlib */
ftnint convci();
Addrp nextdata();
expptr mklogcon(), mkaddcon(), mkrealcon(), mkstrcon(), mkbitcon();
expptr mkcxcon();
struct Listblock *mklist();
struct Listblock *mklist();
struct Impldoblock *mkiodo();
Extsym *comblock();
#define ESNULL (Extsym *)0
#define NPNULL (Namep)0
#define LBNULL (struct Listblock *)0
extern void freetemps(), make_param();
static void
pop_datastack() {
chainp d0 = datastack;
if (d0->datap)
curdtp = (chainp)d0->datap;
datastack = d0->nextp;
d0->nextp = 0;
frchain(&d0);
}
#line 177 "gram.in"
typedef union {
int ival;
ftnint lval;
char *charpval;
chainp chval;
tagptr tagval;
expptr expval;
struct Labelblock *labval;
struct Nameblock *namval;
struct Eqvchain *eqvval;
Extsym *extval;
} YYSTYPE;
#ifndef YYLTYPE
typedef
struct yyltype
{
int timestamp;
int first_line;
int first_column;
int last_line;
int last_column;
char *text;
}
yyltype;
#define YYLTYPE yyltype
#endif
#include <stdio.h>
#ifndef __STDC__
#define const
#endif
#define YYFINAL 542
#define YYFLAG -32768
#define YYNTBASE 102
#define YYTRANSLATE(x) ((unsigned)(x) <= 257 ? yytranslate[x] : 217)
static const char yytranslate[] = { 0,
3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
93, 94, 95, 96, 97, 98, 99, 100, 101, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 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
};
static const short yyprhs[] = { 0,
0, 1, 5, 8, 11, 14, 18, 22, 25, 27,
29, 33, 38, 42, 47, 52, 58, 62, 63, 65,
67, 68, 70, 73, 77, 79, 83, 85, 89, 90,
93, 97, 99, 103, 105, 107, 109, 111, 113, 115,
117, 119, 121, 123, 125, 127, 130, 132, 138, 146,
152, 158, 159, 162, 164, 166, 168, 170, 172, 174,
176, 178, 180, 182, 184, 186, 187, 192, 199, 203,
208, 214, 218, 220, 224, 228, 232, 236, 240, 244,
248, 252, 254, 258, 262, 266, 267, 274, 275, 276,
277, 280, 284, 286, 290, 292, 295, 297, 299, 303,
305, 307, 309, 313, 317, 320, 322, 328, 330, 334,
335, 339, 340, 343, 347, 349, 353, 355, 357, 359,
363, 365, 369, 373, 378, 380, 381, 384, 386, 390,
392, 396, 398, 400, 403, 408, 410, 414, 415, 416,
418, 420, 424, 426, 430, 432, 434, 436, 440, 444,
448, 452, 455, 459, 463, 467, 471, 475, 478, 482,
484, 486, 488, 490, 492, 494, 496, 498, 500, 503,
508, 514, 520, 521, 523, 525, 527, 529, 531, 533,
535, 537, 539, 541, 547, 549, 551, 553, 555, 559,
561, 563, 567, 571, 575, 579, 582, 586, 588, 596,
601, 603, 606, 609, 616, 619, 622, 628, 632, 634,
639, 644, 650, 653, 655, 657, 668, 670, 674, 679,
683, 687, 689, 691, 695, 699, 707, 715, 716, 718,
722, 724, 728, 730, 733, 735, 737, 739, 743, 744,
745, 746, 748, 751, 754, 757, 760, 763, 766, 769,
773, 778, 783, 786, 790, 792, 796, 800, 802, 804,
806, 810, 812, 814, 816, 818, 820, 824, 828, 830,
834, 836, 838, 840, 843, 846, 849, 851, 855, 859,
864, 869, 871, 875, 877, 883, 885, 887, 889, 893,
897, 901, 905, 909, 913, 915, 919, 925, 931, 937
};
static const short yyrhs[] = { -1,
102, 103, 3, 0, 104, 105, 0, 104, 117, 0,
104, 180, 0, 104, 20, 116, 0, 104, 39, 194,
0, 104, 6, 0, 1, 0, 5, 0, 62, 106,
109, 0, 62, 106, 109, 110, 0, 25, 106, 109,
0, 71, 106, 107, 113, 0, 46, 106, 107, 113,
0, 120, 46, 106, 107, 113, 0, 42, 107, 113,
0, 0, 108, 0, 16, 0, 0, 107, 0, 76,
77, 0, 76, 111, 77, 0, 112, 0, 111, 80,
112, 0, 16, 0, 16, 78, 16, 0, 0, 76,
77, 0, 76, 114, 77, 0, 115, 0, 114, 80,
115, 0, 108, 0, 84, 0, 7, 0, 118, 0,
124, 0, 126, 0, 127, 0, 128, 0, 131, 0,
154, 0, 161, 0, 68, 0, 68, 140, 0, 45,
0, 59, 164, 76, 142, 77, 0, 120, 188, 108,
164, 119, 147, 123, 0, 118, 80, 108, 147, 123,
0, 118, 101, 134, 136, 101, 0, 0, 121, 123,
0, 122, 0, 54, 0, 65, 0, 30, 0, 36,
0, 33, 0, 56, 0, 27, 0, 74, 0, 34,
0, 23, 0, 69, 0, 0, 84, 195, 167, 196,
0, 84, 195, 76, 84, 77, 196, 0, 29, 164,
144, 0, 29, 164, 125, 144, 0, 124, 188, 125,
188, 144, 0, 124, 80, 144, 0, 87, 0, 85,
16, 85, 0, 44, 164, 108, 0, 126, 80, 108,
0, 55, 164, 108, 0, 127, 80, 108, 0, 43,
164, 129, 0, 128, 80, 129, 0, 76, 130, 77,
0, 171, 0, 130, 80, 171, 0, 32, 132, 133,
0, 131, 188, 133, 0, 0, 134, 146, 85, 135,
136, 85, 0, 0, 0, 0, 137, 138, 0, 136,
80, 138, 0, 139, 0, 174, 84, 139, 0, 174,
0, 169, 174, 0, 176, 0, 141, 0, 140, 80,
141, 0, 108, 0, 125, 0, 143, 0, 142, 80,
143, 0, 108, 78, 167, 0, 108, 147, 0, 171,
0, 76, 146, 80, 182, 77, 0, 145, 0, 146,
80, 145, 0, 0, 76, 148, 77, 0, 0, 149,
150, 0, 148, 80, 150, 0, 151, 0, 167, 79,
151, 0, 84, 0, 167, 0, 153, 0, 152, 80,
153, 0, 8, 0, 52, 164, 155, 0, 154, 80,
155, 0, 156, 76, 158, 77, 0, 156, 0, 0,
157, 120, 0, 159, 0, 158, 80, 159, 0, 160,
0, 160, 83, 160, 0, 16, 0, 57, 0, 161,
162, 0, 85, 108, 85, 163, 0, 108, 0, 163,
80, 108, 0, 0, 0, 166, 0, 167, 0, 166,
80, 167, 0, 168, 0, 76, 167, 77, 0, 176,
0, 171, 0, 175, 0, 167, 169, 167, 0, 167,
84, 167, 0, 167, 85, 167, 0, 167, 86, 167,
0, 169, 167, 0, 167, 170, 167, 0, 167, 91,
167, 0, 167, 90, 167, 0, 167, 89, 167, 0,
167, 88, 167, 0, 92, 167, 0, 167, 87, 167,
0, 82, 0, 83, 0, 93, 0, 95, 0, 94,
0, 97, 0, 96, 0, 98, 0, 108, 0, 108,
172, 0, 108, 76, 165, 77, 0, 108, 76, 165,
77, 172, 0, 76, 173, 79, 173, 77, 0, 0,
167, 0, 108, 0, 175, 0, 14, 0, 15, 0,
7, 0, 8, 0, 9, 0, 10, 0, 177, 0,
76, 168, 80, 168, 77, 0, 13, 0, 12, 0,
11, 0, 179, 0, 76, 178, 77, 0, 171, 0,
175, 0, 178, 169, 178, 0, 178, 84, 178, 0,
178, 85, 178, 0, 178, 86, 178, 0, 169, 178,
0, 178, 87, 178, 0, 184, 0, 35, 194, 195,
153, 196, 188, 183, 0, 35, 194, 188, 183, 0,
99, 0, 181, 184, 0, 181, 72, 0, 38, 194,
76, 167, 77, 72, 0, 37, 194, 0, 41, 194,
0, 51, 194, 76, 167, 77, 0, 108, 78, 193,
0, 182, 0, 100, 76, 167, 77, 0, 186, 171,
78, 167, 0, 22, 194, 185, 73, 108, 0, 31,
194, 0, 187, 0, 197, 0, 50, 194, 76, 167,
77, 153, 80, 153, 80, 153, 0, 189, 0, 189,
76, 77, 0, 189, 76, 190, 77, 0, 66, 194,
173, 0, 192, 194, 173, 0, 8, 0, 21, 0,
47, 194, 153, 0, 48, 194, 108, 0, 48, 194,
108, 188, 76, 152, 77, 0, 49, 194, 76, 152,
77, 188, 167, 0, 0, 80, 0, 26, 194, 108,
0, 191, 0, 190, 80, 191, 0, 167, 0, 84,
153, 0, 60, 0, 70, 0, 167, 0, 193, 80,
167, 0, 0, 0, 0, 198, 0, 199, 204, 0,
199, 179, 0, 199, 84, 0, 199, 86, 0, 201,
204, 0, 208, 204, 0, 208, 203, 0, 208, 204,
211, 0, 208, 203, 80, 211, 0, 208, 204, 80,
211, 0, 209, 204, 0, 209, 204, 213, 0, 210,
0, 210, 80, 213, 0, 200, 194, 216, 0, 24,
0, 67, 0, 40, 0, 202, 194, 216, 0, 53,
0, 58, 0, 28, 0, 179, 0, 84, 0, 76,
178, 77, 0, 76, 205, 77, 0, 206, 0, 205,
80, 206, 0, 178, 0, 84, 0, 86, 0, 207,
167, 0, 207, 84, 0, 207, 86, 0, 17, 0,
64, 194, 216, 0, 75, 194, 216, 0, 61, 194,
178, 216, 0, 61, 194, 84, 216, 0, 212, 0,
211, 80, 212, 0, 171, 0, 76, 211, 80, 182,
77, 0, 168, 0, 215, 0, 214, 0, 168, 80,
168, 0, 168, 80, 215, 0, 215, 80, 168, 0,
215, 80, 215, 0, 214, 80, 168, 0, 214, 80,
215, 0, 176, 0, 76, 167, 77, 0, 76, 168,
80, 182, 77, 0, 76, 215, 80, 182, 77, 0,
76, 214, 80, 182, 77, 0, 0
};
#if YYDEBUG != 0
static const short yyrline[] = { 0,
220, 221, 224, 229, 230, 250, 258, 263, 270, 275,
303, 305, 309, 312, 314, 316, 318, 326, 330, 334,
338, 339, 342, 344, 347, 348, 351, 352, 355, 357,
360, 364, 366, 370, 375, 391, 399, 400, 401, 402,
403, 404, 405, 406, 407, 410, 412, 414, 418, 422,
426, 434, 436, 446, 451, 452, 453, 454, 455, 456,
457, 458, 459, 460, 461, 464, 466, 492, 496, 498,
500, 502, 506, 508, 512, 514, 518, 520, 524, 525,
528, 541, 545, 552, 553, 556, 571, 580, 582, 584,
585, 585, 588, 590, 594, 595, 600, 603, 604, 607,
614, 617, 618, 621, 628, 632, 644, 660, 666, 670,
672, 675, 676, 676, 679, 689, 701, 703, 706, 708,
712, 716, 718, 721, 722, 728, 730, 732, 733, 736,
738, 742, 752, 753, 756, 770, 772, 776, 798, 800,
804, 806, 811, 812, 813, 816, 817, 818, 820, 822,
824, 826, 831, 833, 836, 839, 841, 843, 845, 850,
851, 854, 855, 856, 857, 858, 859, 862, 864, 867,
869, 874, 878, 880, 883, 888, 891, 892, 893, 894,
895, 896, 897, 900, 904, 907, 910, 915, 916, 920,
921, 922, 924, 926, 928, 930, 935, 939, 940, 947,
952, 954, 956, 957, 959, 961, 965, 969, 973, 974,
978, 980, 982, 983, 984, 986, 988, 990, 992, 998,
1000, 1004, 1008, 1017, 1019, 1021, 1023, 1031, 1032, 1035,
1039, 1041, 1045, 1046, 1050, 1052, 1056, 1058, 1062, 1075,
1079, 1084, 1088, 1089, 1091, 1093, 1095, 1096, 1098, 1100,
1102, 1104, 1106, 1108, 1110, 1112, 1116, 1119, 1121, 1123,
1127, 1130, 1132, 1134, 1138, 1144, 1152, 1157, 1161, 1162,
1165, 1167, 1169, 1171, 1173, 1175, 1179, 1183, 1187, 1191,
1198, 1207, 1209, 1213, 1215, 1219, 1221, 1223, 1226, 1228,
1230, 1232, 1234, 1236, 1240, 1242, 1244, 1246, 1248, 1252
};
static const char * const yytname[] = { "$",
"error","$illegal.","SEOS","SCOMMENT","SLABEL","SUNKNOWN","SHOLLERITH","SICON","SRCON","SDCON",
"SBITCON","SOCTCON","SHEXCON","STRUE","SFALSE","SNAME","SNAMEEQ","SFIELD","SSCALE","SINCLUDE",
"SLET","SASSIGN","SAUTOMATIC","SBACKSPACE","SBLOCK","SCALL","SCHARACTER","SCLOSE","SCOMMON","SCOMPLEX",
"SCONTINUE","SDATA","SDCOMPLEX","SDIMENSION","SDO","SDOUBLE","SELSE","SELSEIF","SEND","SENDFILE",
"SENDIF","SENTRY","SEQUIV","SEXTERNAL","SFORMAT","SFUNCTION","SGOTO","SASGOTO","SCOMPGOTO","SARITHIF",
"SLOGIF","SIMPLICIT","SINQUIRE","SINTEGER","SINTRINSIC","SLOGICAL","SNAMELIST","SOPEN","SPARAM","SPAUSE",
"SPRINT","SPROGRAM","SPUNCH","SREAD","SREAL","SRETURN","SREWIND","SSAVE","SSTATIC","SSTOP",
"SSUBROUTINE","STHEN","STO","SUNDEFINED","SWRITE","SLPAR","SRPAR","SEQUALS","SCOLON","SCOMMA",
"SCURRENCY","SPLUS","SMINUS","SSTAR","SSLASH","SPOWER","SCONCAT","SAND","SOR","SNEQV",
"SEQV","SNOT","SEQ","SLT","SGT","SLE","SGE","SNE","SENDDO","SWHILE",
"SSLASHD","program","stat","thislabel","entry","new_proc","entryname","name","progname","progarglist",
"progargs","progarg","arglist","args","arg","filename","spec","dcl","new_dcl","type",
"typespec","typename","lengspec","common","comblock","external","intrinsic","equivalence","equivset","equivlist",
"data","in_data","datalist","datainit","datapop","vallist","@1","val","value","savelist",
"saveitem","paramlist","paramitem","var","datavar","datavarlist","dims","dimlist","@2","dim",
"ubound","labellist","label","implicit","implist","imptype","@3","letgroups","letgroup","letter",
"namelist","namelistentry","namelistlist","in_dcl","funarglist","funargs","expr","uexpr","addop","relop",
"lhs","substring","opt_expr","simple","simple_const","complex_const","bit_const","fexpr","unpar_fexpr","exec",
"logif","dospec","dospecw","iffable","assignlabel","let","goto","opt_comma","call","callarglist",
"callarg","stop","exprlist","end_spec","intonlyon","intonlyoff","io","io1","iofmove","fmkwd",
"iofctl","ctlkwd","infmt","ioctl","ctllist","ioclause","nameeq","read","write","print",
"inlist","inelt","outlist","out2","other","in_ioctl",""
};
#endif
static const short yyr1[] = { 0,
102, 102, 103, 103, 103, 103, 103, 103, 103, 104,
105, 105, 105, 105, 105, 105, 105, 106, 107, 108,
109, 109, 110, 110, 111, 111, 112, 112, 113, 113,
113, 114, 114, 115, 115, 116, 117, 117, 117, 117,
117, 117, 117, 117, 117, 117, 117, 117, 118, 118,
118, 119, 120, 121, 122, 122, 122, 122, 122, 122,
122, 122, 122, 122, 122, 123, 123, 123, 124, 124,
124, 124, 125, 125, 126, 126, 127, 127, 128, 128,
129, 130, 130, 131, 131, 132, 133, 134, 135, 137,
136, 136, 138, 138, 139, 139, 139, 140, 140, 141,
141, 142, 142, 143, 144, 145, 145, 146, 146, 147,
147, 149, 148, 148, 150, 150, 151, 151, 152, 152,
153, 154, 154, 155, 155, 157, 156, 158, 158, 159,
159, 160, 161, 161, 162, 163, 163, 164, 165, 165,
166, 166, 167, 167, 167, 168, 168, 168, 168, 168,
168, 168, 168, 168, 168, 168, 168, 168, 168, 169,
169, 170, 170, 170, 170, 170, 170, 171, 171, 171,
171, 172, 173, 173, 174, 174, 175, 175, 175, 175,
175, 175, 175, 176, 177, 177, 177, 178, 178, 179,
179, 179, 179, 179, 179, 179, 179, 180, 180, 180,
180, 180, 180, 180, 180, 180, 181, 182, 183, 183,
184, 184, 184, 184, 184, 184, 184, 184, 184, 184,
184, 185, 186, 187, 187, 187, 187, 188, 188, 189,
190, 190, 191, 191, 192, 192, 193, 193, 194, 195,
196, 197, 198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 199, 200, 200, 200,
201, 202, 202, 202, 203, 203, 204, 204, 205, 205,
206, 206, 206, 206, 206, 206, 207, 208, 209, 210,
210, 211, 211, 212, 212, 213, 213, 213, 214, 214,
214, 214, 214, 214, 215, 215, 215, 215, 215, 216
};
static const short yyr2[] = { 0,
0, 3, 2, 2, 2, 3, 3, 2, 1, 1,
3, 4, 3, 4, 4, 5, 3, 0, 1, 1,
0, 1, 2, 3, 1, 3, 1, 3, 0, 2,
3, 1, 3, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 2, 1, 5, 7, 5,
5, 0, 2, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 0, 4, 6, 3, 4,
5, 3, 1, 3, 3, 3, 3, 3, 3, 3,
3, 1, 3, 3, 3, 0, 6, 0, 0, 0,
2, 3, 1, 3, 1, 2, 1, 1, 3, 1,
1, 1, 3, 3, 2, 1, 5, 1, 3, 0,
3, 0, 2, 3, 1, 3, 1, 1, 1, 3,
1, 3, 3, 4, 1, 0, 2, 1, 3, 1,
3, 1, 1, 2, 4, 1, 3, 0, 0, 1,
1, 3, 1, 3, 1, 1, 1, 3, 3, 3,
3, 2, 3, 3, 3, 3, 3, 2, 3, 1,
1, 1, 1, 1, 1, 1, 1, 1, 2, 4,
5, 5, 0, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 5, 1, 1, 1, 1, 3, 1,
1, 3, 3, 3, 3, 2, 3, 1, 7, 4,
1, 2, 2, 6, 2, 2, 5, 3, 1, 4,
4, 5, 2, 1, 1, 10, 1, 3, 4, 3,
3, 1, 1, 3, 3, 7, 7, 0, 1, 3,
1, 3, 1, 2, 1, 1, 1, 3, 0, 0,
0, 1, 2, 2, 2, 2, 2, 2, 2, 3,
4, 4, 2, 3, 1, 3, 3, 1, 1, 1,
3, 1, 1, 1, 1, 1, 3, 3, 1, 3,
1, 1, 1, 2, 2, 2, 1, 3, 3, 4,
4, 1, 3, 1, 5, 1, 1, 1, 3, 3,
3, 3, 3, 3, 1, 3, 5, 5, 5, 0
};
static const short yydefact[] = { 1,
0, 9, 10, 0, 0, 2, 8, 0, 223, 239,
64, 258, 18, 239, 61, 264, 138, 57, 239, 86,
59, 63, 239, 58, 239, 239, 239, 260, 239, 0,
138, 138, 47, 18, 239, 239, 239, 239, 239, 138,
262, 55, 138, 60, 133, 263, 138, 235, 239, 18,
239, 56, 239, 259, 45, 65, 236, 18, 62, 239,
201, 3, 4, 37, 228, 66, 54, 228, 39, 40,
41, 228, 43, 44, 5, 0, 198, 0, 214, 217,
239, 215, 242, 0, 239, 0, 239, 0, 0, 255,
36, 6, 0, 21, 0, 0, 213, 88, 228, 205,
0, 7, 206, 20, 29, 19, 0, 0, 0, 0,
0, 0, 0, 0, 126, 0, 0, 0, 21, 300,
173, 0, 73, 100, 101, 46, 98, 0, 300, 0,
88, 18, 229, 0, 240, 53, 229, 0, 0, 0,
0, 88, 126, 0, 134, 203, 202, 168, 0, 0,
173, 179, 180, 181, 182, 187, 186, 185, 177, 178,
0, 160, 161, 245, 246, 0, 190, 191, 183, 0,
188, 243, 300, 0, 247, 300, 266, 188, 249, 248,
253, 0, 222, 0, 22, 13, 230, 110, 0, 69,
84, 0, 0, 0, 0, 0, 17, 0, 79, 75,
29, 121, 224, 225, 0, 0, 0, 122, 125, 0,
77, 0, 0, 300, 300, 188, 11, 278, 0, 0,
174, 143, 0, 146, 220, 147, 145, 0, 0, 29,
279, 110, 90, 0, 138, 0, 72, 228, 76, 78,
80, 85, 123, 0, 139, 169, 0, 218, 0, 233,
0, 231, 221, 277, 272, 273, 271, 0, 269, 0,
196, 0, 0, 0, 0, 0, 257, 271, 261, 0,
0, 0, 284, 250, 282, 0, 0, 143, 145, 254,
288, 287, 256, 0, 112, 105, 70, 0, 108, 0,
106, 0, 0, 209, 200, 241, 0, 30, 35, 34,
0, 32, 0, 82, 15, 0, 0, 119, 0, 0,
0, 127, 0, 0, 102, 0, 281, 280, 0, 12,
0, 143, 158, 0, 0, 0, 0, 0, 0, 0,
0, 162, 164, 163, 166, 165, 167, 0, 0, 152,
74, 99, 14, 66, 0, 0, 29, 52, 0, 241,
0, 0, 0, 140, 141, 0, 211, 234, 219, 0,
189, 268, 0, 275, 276, 274, 193, 194, 195, 197,
192, 267, 251, 0, 252, 0, 0, 143, 0, 0,
0, 0, 0, 212, 0, 0, 0, 0, 89, 0,
0, 228, 0, 31, 0, 81, 0, 0, 228, 0,
0, 207, 132, 0, 128, 130, 0, 48, 0, 189,
27, 23, 0, 25, 144, 0, 149, 150, 151, 159,
157, 156, 155, 154, 148, 153, 50, 0, 51, 0,
175, 91, 93, 0, 95, 176, 97, 16, 110, 0,
67, 71, 136, 135, 170, 0, 173, 232, 271, 270,
0, 283, 144, 0, 0, 0, 143, 290, 143, 294,
143, 292, 111, 0, 117, 113, 115, 118, 0, 109,
90, 0, 237, 208, 0, 204, 33, 83, 0, 0,
120, 0, 124, 0, 0, 104, 103, 0, 24, 0,
143, 92, 96, 0, 66, 241, 0, 173, 171, 142,
0, 168, 0, 143, 0, 0, 0, 114, 0, 0,
0, 210, 0, 199, 226, 227, 0, 129, 131, 28,
26, 184, 94, 95, 49, 68, 137, 172, 285, 297,
299, 298, 116, 118, 107, 87, 238, 0, 0, 216,
0, 0
};
static const short yydefgoto[] = { 1,
4, 5, 62, 94, 185, 148, 186, 320, 413, 414,
197, 301, 302, 92, 63, 64, 439, 65, 66, 67,
136, 68, 125, 69, 70, 71, 199, 303, 72, 98,
191, 192, 471, 345, 346, 432, 433, 126, 127, 314,
315, 190, 289, 290, 286, 385, 386, 466, 467, 307,
308, 73, 208, 209, 210, 404, 405, 406, 74, 145,
444, 96, 353, 354, 277, 222, 223, 339, 224, 246,
356, 435, 226, 227, 169, 170, 216, 75, 76, 294,
295, 77, 184, 78, 79, 134, 80, 251, 252, 81,
474, 93, 194, 392, 82, 83, 84, 85, 86, 87,
179, 172, 258, 259, 260, 88, 89, 90, 274, 275,
280, 281, 282, 218
};
static const short yypact[] = {-32768,
58,-32768,-32768, 15, 833,-32768,-32768, 40,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 45,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768, 52,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768, -29, 2, -22,-32768, 11, -25, 47,
93, 13, 110, 3,-32768, 1083,-32768, 45,-32768, 105,
-32768,-32768,-32768, 948,-32768, 115,-32768, 959, 115, 122,
-32768,-32768, 200, 45, 45, 52,-32768,-32768, 44,-32768,
148,-32768,-32768,-32768, 149,-32768, 161, 45, 45, 241,
45, 175, 186, 212,-32768, 45, 217, 1037, 45,-32768,
743, 239,-32768,-32768,-32768, 209,-32768, 45,-32768, 45,
-32768,-32768,-32768, 45,-32768,-32768, 45, 56, 45, 45,
161,-32768,-32768, 45,-32768,-32768,-32768, 219, 222, 473,
743,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
937,-32768,-32768,-32768,-32768, 220,-32768,-32768,-32768, 333,
306,-32768,-32768, 937,-32768,-32768,-32768, 23, 227, 7,
902, 902,-32768, 237,-32768,-32768,-32768, 235, 45,-32768,
-32768, 8, -1, 241, 743, 51,-32768, 45,-32768,-32768,
149,-32768,-32768, 78, 241, 743, 743,-32768, 244, 304,
-32768, 45, 220,-32768, 333,-32768, 247,-32768, 743, 743,
1244,-32768, 743,-32768,-32768,-32768,-32768, 228, 52, 149,
-32768, 235,-32768, 45,-32768, 926,-32768, 245,-32768,-32768,
-32768,-32768,-32768, 243, 590,-32768, 743,-32768, 241, 1244,
94,-32768,-32768,-32768,-32768,-32768, 101, 100,-32768, 486,
231, 220, 220, 220, 220, 220,-32768, 191,-32768, 60,
60, 60,-32768, 249,-32768, 902, 1244, 35, 37,-32768,
252, 255,-32768, 45,-32768,-32768,-32768, 8,-32768, -5,
-32768, 260, 261,-32768,-32768,-32768, 1077,-32768,-32768,-32768,
112,-32768, 121,-32768,-32768, 266, 123,-32768, 1099, 1121,
330,-32768, 269, 173,-32768, 308,-32768,-32768, 53,-32768,
1143, 281, 1002, 743, 743, 743, 743, 743, 743, 743,
743,-32768,-32768,-32768,-32768,-32768,-32768, 743, 743, 276,
-32768,-32768,-32768, -22, -24, 232, 149,-32768, 685, 1244,
45, 45, 286, 287, 1207, 285, 1244,-32768,-32768, 696,
14,-32768, 937,-32768,-32768, 1244, 231, 231, 231, 66,
130,-32768, 249, 290, 249, 60, 1165, 291, 292, 294,
902, 902, 902,-32768, 179, 725, 295, 8,-32768, 743,
743, 245, 305,-32768, 28,-32768, 45, 241, 245, 241,
241,-32768,-32768, 183,-32768, 283, 743,-32768, 45,-32768,
298,-32768, 187,-32768,-32768, 743, 276, 276, 276, 197,
1002, 1278, 1261, 1261, 213, 1295,-32768, 232,-32768, 743,
-32768,-32768,-32768, 462, 296,-32768,-32768,-32768, 235, 307,
-32768,-32768,-32768, 301, 310, 743, 743,-32768, 333,-32768,
60,-32768, 38, 902, 902, 902, 39,-32768, 42,-32768,
43,-32768,-32768, 725,-32768,-32768,-32768, 1227, 8,-32768,
-32768, 1187, 1244, 302, -1,-32768,-32768,-32768, 189, 743,
-32768, 316,-32768, 330, 330, 1244,-32768, 371,-32768, 381,
322,-32768,-32768, 232, -22,-32768, 45, 743,-32768, 1244,
325, 86, 326, 210, 329, 332, 334,-32768, 725, 336,
46,-32768, 743,-32768,-32768, 1244, 241,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768, 1244,-32768,-32768, 1244, 342, 241,-32768,
410,-32768
};
static const short yypgoto[] = {-32768,
-32768,-32768,-32768, -21, -8, -30, 309,-32768,-32768, -67,
-194,-32768, 32,-32768,-32768,-32768,-32768, 223,-32768,-32768,
-339,-32768, -64,-32768,-32768,-32768, 288,-32768,-32768,-32768,
300, 312,-32768, -39,-32768, 10, -58,-32768, 211,-32768,
41, -129, -367, 156, -229,-32768,-32768, -17, -57, 55,
-109,-32768, 313,-32768,-32768,-32768, -33, -20,-32768,-32768,
-32768, -12,-32768,-32768, 284, -111, 91,-32768, 455, 18,
-117, -381, -45, -170,-32768, -69, 73,-32768,-32768, -309,
-9, 379,-32768,-32768,-32768, -66,-32768,-32768, 132,-32768,
-32768, 1041, 370, -341,-32768,-32768,-32768,-32768,-32768,-32768,
-32768, 81,-32768, 143,-32768,-32768,-32768,-32768, 79, -326,
339, 242, -249, -119
};
#define YYLAST 1393
static const short yytable[] = { 106,
203, 138, 344, 225, 427, 142, 305, 237, 441, 231,
279, 279, 109, -38, 104, -42, -267, 6, 107, 108,
470, 105, 104, 104, 124, -265, 380, 115, 119, -267,
116, 189, 193, 253, 117, 343, 128, -286, 168, -295,
-296, -289, 168, 104, -293, -291, 91, 132, 215, 452,
130, -240, 493, 267, 139, 428, 269, 541, 2, 287,
104, 135, 3, 106, 187, 188, 104, 104, 411, 278,
278, 131, 168, 238, 388, 104, 429, 200, 106, 389,
204, 133, 271, 288, 296, 211, 272, 144, 106, -267,
137, 257, 133, -267, 317, 318, 261, 106, 292, 232,
201, 470, -265, 235, 268, 279, 188, 322, 239, 240,
234, 299, 524, 244, 381, 168, -295, -296, -289, 230,
168, -293, -291, 133, 452, 428, 140, 298, 168, 412,
536, 458, 460, 462, 299, 271, 122, 306, 123, 358,
122, 503, 123, 316, 505, 506, 507, 162, 163, 262,
263, 264, 438, -228, 526, 525, 171, 133, 188, 510,
178, 245, 293, 391, 378, 300, 175, 168, 180, 181,
359, 351, 141, 360, 166, 437, 362, 361, 166, 363,
150, 313, 162, 163, 262, 263, 264, 265, 394, 143,
174, 395, 367, 368, 369, 370, 371, 396, 124, 399,
397, 182, 400, 106, 458, 460, 462, 183, 166, 495,
279, 279, 279, 262, 263, 264, 168, 168, 168, 168,
168, 442, 348, 195, 196, 347, 152, 153, 154, 155,
156, 157, 158, 159, 160, 104, 198, 322, 152, 153,
154, 155, 156, 157, 158, 159, 160, 104, 202, 408,
205, 166, 409, 384, 228, 463, 166, 437, 464, 483,
266, 206, 484, 489, 166, 515, 490, 372, 400, 457,
459, 461, 162, 163, 262, 263, 264, 265, 162, 163,
324, 325, 326, 279, 279, 279, 522, 207, 229, -289,
481, 482, 212, 449, 245, 213, 324, 325, 326, 247,
436, 162, 163, 166, 491, 266, 270, 430, -244, 284,
285, 338, 341, 162, 163, 431, 264, 168, 322, 311,
188, 443, 319, 437, 133, 475, 11, 352, 376, 501,
15, 382, 480, 18, 383, 390, 21, 22, 391, 24,
338, 398, 504, 459, 461, 403, 407, 266, 373, 374,
375, 266, 166, 166, 166, 166, 166, 42, 266, 44,
416, 326, 445, 447, 300, 485, 446, 338, 52, 451,
454, 455, 56, 456, 469, 488, 476, 59, 313, 494,
497, 513, 436, 496, 410, 498, 520, 338, 436, 162,
163, 262, 263, 264, 265, 517, 411, 431, 522, 338,
338, 528, 529, 431, 221, 530, 266, 538, 531, 542,
532, 338, 535, 338, 162, 163, 262, 263, 264, 265,
502, 539, 521, 502, 502, 502, 477, 217, 241, 540,
338, 511, 312, 250, 221, 523, 434, 492, 502, 342,
338, 242, 233, 387, 293, 338, 508, 338, 436, 487,
518, 533, 479, 166, 147, 243, 338, 266, 266, 266,
266, 266, 499, 431, 519, 514, 527, 338, 152, 153,
154, 155, 156, 157, 158, 159, 160, 104, 297, 152,
153, 154, 155, 156, 157, 158, 159, 160, 104, 309,
310, 448, 152, 153, 154, 155, 156, 157, 158, 159,
160, 104, 321, 323, 236, 450, 340, 338, 338, 338,
338, 338, 338, 338, 338, 338, 338, 379, 434, 350,
283, 0, 0, 0, 0, 0, 0, 0, 355, 0,
357, 0, 149, 0, 0, 0, 0, 0, 167, 266,
0, 0, 167, 366, 0, 0, 0, 0, 219, 248,
0, 0, 0, 0, 162, 163, 249, 0, 338, 377,
0, 219, 338, 338, 220, 0, 0, 162, 163, 364,
0, 365, 167, 0, 0, 0, 338, 220, 0, 0,
0, 0, 0, 0, 434, 0, 0, 0, 0, 0,
338, 0, 0, 0, 0, 0, 152, 153, 154, 155,
156, 157, 158, 159, 160, 104, 338, 417, 418, 419,
420, 421, 422, 423, 424, 167, 0, 0, 0, 0,
167, 425, 426, 0, 338, 0, 0, 338, 167, 0,
0, 0, 321, 0, 273, 0, 0, 0, 0, 0,
0, 0, 0, 250, 0, 0, 291, 0, 0, 0,
0, 0, 304, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 219, 0, 167, -173, 468,
0, 162, 163, 472, 473, 0, 0, 0, 0, 0,
0, 220, 0, 0, 0, 0, 0, 0, 0, 0,
486, 152, 153, 154, 155, 156, 157, 158, 159, 160,
104, 0, 152, 153, 154, 155, 156, 157, 158, 159,
160, 104, 0, 0, 0, 0, 167, 167, 167, 167,
167, 0, 0, 0, 273, 273, 273, 0, 0, 500,
221, 152, 153, 154, 155, 156, 157, 158, 159, 160,
104, 0, 291, 0, 0, 0, 0, 468, 0, 152,
153, 154, 155, 156, 157, 158, 159, 160, 104, 0,
219, 0, 0, 516, 0, 0, 162, 163, 440, 0,
0, 219, 0, 0, 0, 0, 220, 162, 163, 249,
0, 221, 0, 0, 0, 0, 0, 220, 0, 0,
0, 0, 534, 0, 0, 0, 537, 0, 0, 0,
219, 0, 0, 0, 0, 0, 162, 163, 465, 0,
0, 0, 0, 0, 0, 0, 220, 167, 219, 0,
0, 0, 0, 0, 162, 163, 0, 0, 0, 0,
273, 0, 0, 0, 220, 0, 0, 0, 7, 0,
0, 0, 291, 0, 0, 0, 0, 0, 0, 0,
0, 478, 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, 0, 51, 52, 53, 54,
55, 56, 57, 58, 0, 273, 59, 60, 152, 153,
154, 155, 156, 157, 158, 159, 160, 104, 0, 0,
0, 0, 0, 291, 0, 0, 0, 0, 0, 0,
0, 61, 152, 153, 154, 155, 156, 157, 158, 159,
160, 104, 0, 152, 153, 154, 155, 156, 157, 158,
159, 160, 104, 254, 152, 153, 154, 155, 156, 157,
158, 159, 160, 104, 0, 152, 153, 154, 155, 156,
157, 158, 159, 160, 104, 0, 0, 276, 0, 0,
0, 0, 0, 162, 163, 0, 0, 0, 0, 0,
0, 0, 0, 220, 0, 0, 0, 0, 0, 0,
0, 349, 0, 0, 0, 0, 0, 162, 163, 0,
0, 0, 213, 0, 0, 0, 0, 220, 162, 163,
255, 0, 256, 161, 0, 0, 0, 0, 0, 162,
163, 164, 0, 165, 161, 0, 0, 0, 0, 0,
162, 163, 177, 152, 153, 154, 155, 156, 157, 158,
159, 160, 104, 0, 95, 0, 0, 0, 0, 97,
0, 0, 0, 99, 0, 100, 101, 102, 0, 103,
0, 0, 0, 0, 0, 110, 111, 112, 113, 114,
0, 0, 0, 162, 163, 324, 325, 326, 327, 118,
0, 120, 0, 121, 332, 333, 334, 335, 336, 337,
129, 0, 0, 9, 10, 0, 12, 0, 14, 0,
16, 0, 213, 19, 0, 0, 0, 0, 162, 163,
214, 151, 28, 0, 0, 173, 0, 176, 0, 35,
36, 37, 38, 0, 0, 41, 0, 0, 0, 0,
46, 0, 48, 49, 0, 0, 51, 0, 53, 54,
0, 0, 57, 393, 146, 0, 0, 60, 162, 163,
324, 325, 326, 327, 328, 329, 330, 331, 0, 332,
333, 334, 335, 336, 337, 401, 0, 0, 0, 0,
162, 163, 324, 325, 326, 327, 328, 329, 330, 331,
0, 332, 333, 334, 335, 336, 337, 402, 0, 0,
0, 0, 162, 163, 324, 325, 326, 327, 328, 329,
330, 331, 0, 332, 333, 334, 335, 336, 337, 415,
0, 0, 0, 0, 162, 163, 324, 325, 326, 327,
328, 329, 330, 331, 0, 332, 333, 334, 335, 336,
337, 453, 0, 0, 0, 0, 162, 163, 324, 325,
326, 327, 328, 329, 330, 331, 0, 332, 333, 334,
335, 336, 337, 512, 0, 0, 0, 0, 162, 163,
324, 325, 326, 327, 328, 329, 330, 331, 0, 332,
333, 334, 335, 336, 337, -174, 0, 0, 162, 163,
324, 325, 326, 327, 328, 329, 330, 331, 0, 332,
333, 334, 335, 336, 337, 509, 0, 0, 162, 163,
324, 325, 326, 327, 328, 329, 330, 331, 0, 332,
333, 334, 335, 336, 337, 162, 163, 324, 325, 326,
327, 328, 329, 330, 331, 0, 332, 333, 334, 335,
336, 337, 162, 163, 324, 325, 326, 327, 328, 329,
0, 0, 0, 332, 333, 334, 335, 336, 337, 162,
163, 324, 325, 326, 327, 328, 0, 0, 0, 0,
332, 333, 334, 335, 336, 337, 162, 163, 324, 325,
326, 327, 0, 0, 0, 0, 0,-32768,-32768,-32768,
-32768,-32768,-32768
};
static const short yycheck[] = { 30,
110, 68, 232, 121, 344, 72, 201, 137, 350, 129,
181, 182, 34, 3, 16, 3, 3, 3, 31, 32,
388, 30, 16, 16, 55, 3, 276, 40, 50, 16,
43, 96, 99, 151, 47, 230, 58, 3, 84, 3,
3, 3, 88, 16, 3, 3, 7, 46, 118, 376,
80, 8, 434, 173, 80, 80, 176, 0, 1, 189,
16, 84, 5, 94, 95, 96, 16, 16, 16, 181,
182, 101, 118, 138, 80, 16, 101, 108, 109, 85,
111, 80, 76, 76, 194, 116, 80, 85, 119, 76,
80, 161, 80, 80, 214, 215, 166, 128, 100, 130,
109, 469, 80, 134, 174, 276, 137, 219, 139, 140,
132, 84, 494, 144, 80, 161, 80, 80, 80, 128,
166, 80, 80, 80, 451, 80, 80, 77, 174, 77,
85, 381, 382, 383, 84, 76, 85, 204, 87, 249,
85, 451, 87, 213, 454, 455, 456, 82, 83, 84,
85, 86, 347, 76, 496, 495, 84, 80, 189, 469,
88, 76, 193, 78, 276, 196, 86, 213, 88, 89,
77, 238, 80, 80, 84, 346, 77, 77, 88, 80,
76, 212, 82, 83, 84, 85, 86, 87, 77, 80,
76, 80, 262, 263, 264, 265, 266, 77, 229, 77,
80, 80, 80, 234, 454, 455, 456, 8, 118, 439,
381, 382, 383, 84, 85, 86, 262, 263, 264, 265,
266, 351, 235, 76, 76, 234, 7, 8, 9, 10,
11, 12, 13, 14, 15, 16, 76, 349, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16, 8, 77,
76, 161, 80, 284, 16, 77, 166, 428, 80, 77,
170, 76, 80, 77, 174, 77, 80, 77, 80, 381,
382, 383, 82, 83, 84, 85, 86, 87, 82, 83,
84, 85, 86, 454, 455, 456, 77, 76, 80, 80,
400, 401, 76, 363, 76, 76, 84, 85, 86, 78,
346, 82, 83, 213, 416, 215, 80, 76, 3, 73,
76, 221, 85, 82, 83, 346, 86, 363, 430, 76,
351, 352, 76, 494, 80, 392, 23, 85, 80, 447,
27, 80, 399, 30, 80, 76, 33, 34, 78, 36,
250, 76, 454, 455, 456, 16, 78, 257, 270, 271,
272, 261, 262, 263, 264, 265, 266, 54, 268, 56,
80, 86, 77, 79, 395, 83, 80, 277, 65, 80,
80, 80, 69, 80, 80, 78, 72, 74, 409, 84,
80, 80, 428, 77, 77, 76, 16, 297, 434, 82,
83, 84, 85, 86, 87, 80, 16, 428, 77, 309,
310, 77, 77, 434, 121, 77, 316, 517, 77, 0,
77, 321, 77, 323, 82, 83, 84, 85, 86, 87,
451, 80, 490, 454, 455, 456, 395, 119, 141, 539,
340, 471, 210, 150, 151, 494, 346, 428, 469, 229,
350, 142, 131, 288, 475, 355, 464, 357, 494, 409,
484, 509, 398, 363, 76, 143, 366, 367, 368, 369,
370, 371, 445, 494, 485, 475, 497, 377, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16, 195, 7,
8, 9, 10, 11, 12, 13, 14, 15, 16, 206,
207, 360, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 219, 220, 135, 363, 223, 417, 418, 419,
420, 421, 422, 423, 424, 425, 426, 276, 428, 236,
182, -1, -1, -1, -1, -1, -1, -1, 245, -1,
247, -1, 78, -1, -1, -1, -1, -1, 84, 449,
-1, -1, 88, 260, -1, -1, -1, -1, 76, 77,
-1, -1, -1, -1, 82, 83, 84, -1, 468, 276,
-1, 76, 472, 473, 92, -1, -1, 82, 83, 84,
-1, 86, 118, -1, -1, -1, 486, 92, -1, -1,
-1, -1, -1, -1, 494, -1, -1, -1, -1, -1,
500, -1, -1, -1, -1, -1, 7, 8, 9, 10,
11, 12, 13, 14, 15, 16, 516, 324, 325, 326,
327, 328, 329, 330, 331, 161, -1, -1, -1, -1,
166, 338, 339, -1, 534, -1, -1, 537, 174, -1,
-1, -1, 349, -1, 180, -1, -1, -1, -1, -1,
-1, -1, -1, 360, -1, -1, 192, -1, -1, -1,
-1, -1, 198, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 76, -1, 213, 79, 386,
-1, 82, 83, 390, 391, -1, -1, -1, -1, -1,
-1, 92, -1, -1, -1, -1, -1, -1, -1, -1,
407, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, -1, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, -1, -1, -1, -1, 262, 263, 264, 265,
266, -1, -1, -1, 270, 271, 272, -1, -1, 446,
447, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, -1, 288, -1, -1, -1, -1, 464, -1, 7,
8, 9, 10, 11, 12, 13, 14, 15, 16, -1,
76, -1, -1, 480, -1, -1, 82, 83, 84, -1,
-1, 76, -1, -1, -1, -1, 92, 82, 83, 84,
-1, 498, -1, -1, -1, -1, -1, 92, -1, -1,
-1, -1, 509, -1, -1, -1, 513, -1, -1, -1,
76, -1, -1, -1, -1, -1, 82, 83, 84, -1,
-1, -1, -1, -1, -1, -1, 92, 363, 76, -1,
-1, -1, -1, -1, 82, 83, -1, -1, -1, -1,
376, -1, -1, -1, 92, -1, -1, -1, 6, -1,
-1, -1, 388, -1, -1, -1, -1, -1, -1, -1,
-1, 397, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
58, 59, 60, 61, 62, -1, 64, 65, 66, 67,
68, 69, 70, 71, -1, 451, 74, 75, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16, -1, -1,
-1, -1, -1, 469, -1, -1, -1, -1, -1, -1,
-1, 99, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, -1, 7, 8, 9, 10, 11, 12, 13,
14, 15, 16, 17, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, -1, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, -1, -1, 76, -1, -1,
-1, -1, -1, 82, 83, -1, -1, -1, -1, -1,
-1, -1, -1, 92, -1, -1, -1, -1, -1, -1,
-1, 76, -1, -1, -1, -1, -1, 82, 83, -1,
-1, -1, 76, -1, -1, -1, -1, 92, 82, 83,
84, -1, 86, 76, -1, -1, -1, -1, -1, 82,
83, 84, -1, 86, 76, -1, -1, -1, -1, -1,
82, 83, 84, 7, 8, 9, 10, 11, 12, 13,
14, 15, 16, -1, 14, -1, -1, -1, -1, 19,
-1, -1, -1, 23, -1, 25, 26, 27, -1, 29,
-1, -1, -1, -1, -1, 35, 36, 37, 38, 39,
-1, -1, -1, 82, 83, 84, 85, 86, 87, 49,
-1, 51, -1, 53, 93, 94, 95, 96, 97, 98,
60, -1, -1, 21, 22, -1, 24, -1, 26, -1,
28, -1, 76, 31, -1, -1, -1, -1, 82, 83,
84, 81, 40, -1, -1, 85, -1, 87, -1, 47,
48, 49, 50, -1, -1, 53, -1, -1, -1, -1,
58, -1, 60, 61, -1, -1, 64, -1, 66, 67,
-1, -1, 70, 77, 72, -1, -1, 75, 82, 83,
84, 85, 86, 87, 88, 89, 90, 91, -1, 93,
94, 95, 96, 97, 98, 77, -1, -1, -1, -1,
82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
-1, 93, 94, 95, 96, 97, 98, 77, -1, -1,
-1, -1, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, -1, 93, 94, 95, 96, 97, 98, 77,
-1, -1, -1, -1, 82, 83, 84, 85, 86, 87,
88, 89, 90, 91, -1, 93, 94, 95, 96, 97,
98, 77, -1, -1, -1, -1, 82, 83, 84, 85,
86, 87, 88, 89, 90, 91, -1, 93, 94, 95,
96, 97, 98, 77, -1, -1, -1, -1, 82, 83,
84, 85, 86, 87, 88, 89, 90, 91, -1, 93,
94, 95, 96, 97, 98, 79, -1, -1, 82, 83,
84, 85, 86, 87, 88, 89, 90, 91, -1, 93,
94, 95, 96, 97, 98, 79, -1, -1, 82, 83,
84, 85, 86, 87, 88, 89, 90, 91, -1, 93,
94, 95, 96, 97, 98, 82, 83, 84, 85, 86,
87, 88, 89, 90, 91, -1, 93, 94, 95, 96,
97, 98, 82, 83, 84, 85, 86, 87, 88, 89,
-1, -1, -1, 93, 94, 95, 96, 97, 98, 82,
83, 84, 85, 86, 87, 88, -1, -1, -1, -1,
93, 94, 95, 96, 97, 98, 82, 83, 84, 85,
86, 87, -1, -1, -1, -1, -1, 93, 94, 95,
96, 97, 98
};
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
#line 3 "/usr/local/lib/bison.simple"
/* Skeleton output parser for bison,
Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef alloca
#ifdef __GNUC__
#define alloca __builtin_alloca
#else /* Not GNU C. */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__)
#include <alloca.h>
#else /* Not sparc */
#ifdef MSDOS
#include <malloc.h>
#endif /* MSDOS */
#endif /* Not sparc. */
#endif /* Not GNU C. */
#endif /* alloca not defined. */
/* This is the parser code that is written into each bison parser
when the %semantic_parser declaration is not specified in the grammar.
It was written by Richard Stallman by simplifying the hairy parser
used when %semantic_parser is specified. */
/* Note: there must be only one dollar sign in this file.
It is replaced by the list of actions, each action
as one case of the switch. */
#define yyerrok (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY)
#define YYEMPTY -2
#define YYEOF 0
#define YYACCEPT return(0)
#define YYABORT return(1)
#define YYERROR goto yyerrlab1
/* Like YYERROR except do call yyerror.
This remains here temporarily to ease the
transition to the new meaning of YYERROR, for GCC.
Once GCC version 2 has supplanted version 1, this can go. */
#define YYFAIL goto yyerrlab
#define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(token, value) \
do \
if (yychar == YYEMPTY && yylen == 1) \
{ yychar = (token), yylval = (value); \
yychar1 = YYTRANSLATE (yychar); \
YYPOPSTACK; \
goto yybackup; \
} \
else \
{ yyerror ("syntax error: cannot back up"); YYERROR; } \
while (0)
#define YYTERROR 1
#define YYERRCODE 256
#ifndef YYPURE
#define YYLEX yylex()
#endif
#ifdef YYPURE
#ifdef YYLSP_NEEDED
#define YYLEX yylex(&yylval, &yylloc)
#else
#define YYLEX yylex(&yylval)
#endif
#endif
/* If nonreentrant, generate the variables here */
#ifndef YYPURE
int yychar; /* the lookahead symbol */
YYSTYPE yylval; /* the semantic value of the */
/* lookahead symbol */
#ifdef YYLSP_NEEDED
YYLTYPE yylloc; /* location data for the lookahead */
/* symbol */
#endif
int yynerrs; /* number of parse errors so far */
#endif /* not YYPURE */
#if YYDEBUG != 0
int yydebug; /* nonzero means print parse trace */
/* Since this is uninitialized, it does not stop multiple parsers
from coexisting. */
#endif
/* YYINITDEPTH indicates the initial size of the parser's stacks */
#ifndef YYINITDEPTH
#define YYINITDEPTH 200
#endif
/* YYMAXDEPTH is the maximum size the stacks can grow to
(effective only if the built-in stack extension method is used). */
#if YYMAXDEPTH == 0
#undef YYMAXDEPTH
#endif
#ifndef YYMAXDEPTH
#define YYMAXDEPTH 10000
#endif
#ifndef __cplusplus
/* This is the most reliable way to avoid incompatibilities
in available built-in functions on various systems. */
static void
__yy_bcopy (from, to, count)
char *from;
char *to;
int count;
{
register char *f = from;
register char *t = to;
register int i = count;
while (i-- > 0)
*t++ = *f++;
}
#else /* __cplusplus */
/* This is the most reliable way to avoid incompatibilities
in available built-in functions on various systems. */
static void
__yy_bcopy (char *from, char *to, int count)
{
register char *f = from;
register char *t = to;
register int i = count;
while (i-- > 0)
*t++ = *f++;
}
#endif
#line 160 "/usr/local/lib/bison.simple"
int
yyparse()
{
register int yystate;
register int yyn;
register short *yyssp;
register YYSTYPE *yyvsp;
int yyerrstatus; /* number of tokens to shift before error messages enabled */
int yychar1; /* lookahead token as an internal (translated) token number */
short yyssa[YYINITDEPTH]; /* the state stack */
YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
short *yyss = yyssa; /* refer to the stacks thru separate pointers */
YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
#ifdef YYLSP_NEEDED
YYLTYPE *yyls = yylsa;
YYLTYPE *yylsp;
YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
#define YYPOPSTACK (yyvsp--, yysp--, yylsp--)
#else
#define YYPOPSTACK (yyvsp--, yysp--)
#endif
int yystacksize = YYINITDEPTH;
#ifdef YYPURE
int yychar;
YYSTYPE yylval;
int yynerrs;
#ifdef YYLSP_NEEDED
YYLTYPE yylloc;
#endif
#endif
YYSTYPE yyval; /* the variable used to return */
/* semantic values from the action */
/* routines */
int yylen;
#if YYDEBUG != 0
if (yydebug)
fprintf(stderr, "Starting parse\n");
#endif
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
yychar = YYEMPTY; /* Cause a token to be read. */
/* Initialize stack pointers.
Waste one element of value and location stack
so that they stay on the same level as the state stack. */
yyssp = yyss - 1;
yyvsp = yyvs;
#ifdef YYLSP_NEEDED
yylsp = yyls;
#endif
/* Push a new state, which is found in yystate . */
/* In all cases, when you get here, the value and location stacks
have just been pushed. so pushing a state here evens the stacks. */
yynewstate:
*++yyssp = yystate;
if (yyssp >= yyss + yystacksize - 1)
{
/* Give user a chance to reallocate the stack */
/* Use copies of these so that the &'s don't force the real ones into memory. */
YYSTYPE *yyvs1 = yyvs;
short *yyss1 = yyss;
#ifdef YYLSP_NEEDED
YYLTYPE *yyls1 = yyls;
#endif
/* Get the current used size of the three stacks, in elements. */
int size = yyssp - yyss + 1;
#ifdef yyoverflow
/* Each stack pointer address is followed by the size of
the data in use in that stack, in bytes. */
yyoverflow("parser stack overflow",
&yyss1, size * sizeof (*yyssp),
&yyvs1, size * sizeof (*yyvsp),
#ifdef YYLSP_NEEDED
&yyls1, size * sizeof (*yylsp),
#endif
&yystacksize);
yyss = yyss1; yyvs = yyvs1;
#ifdef YYLSP_NEEDED
yyls = yyls1;
#endif
#else /* no yyoverflow */
/* Extend the stack our own way. */
if (yystacksize >= YYMAXDEPTH)
{
yyerror("parser stack overflow");
return 2;
}
yystacksize *= 2;
if (yystacksize > YYMAXDEPTH)
yystacksize = YYMAXDEPTH;
yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
__yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
__yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
#ifdef YYLSP_NEEDED
yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
__yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
#endif
#endif /* no yyoverflow */
yyssp = yyss + size - 1;
yyvsp = yyvs + size - 1;
#ifdef YYLSP_NEEDED
yylsp = yyls + size - 1;
#endif
#if YYDEBUG != 0
if (yydebug)
fprintf(stderr, "Stack size increased to %d\n", yystacksize);
#endif
if (yyssp >= yyss + yystacksize - 1)
YYABORT;
}
#if YYDEBUG != 0
if (yydebug)
fprintf(stderr, "Entering state %d\n", yystate);
#endif
yybackup:
/* Do appropriate processing given the current state. */
/* Read a lookahead token if we need one and don't already have one. */
/* yyresume: */
/* First try to decide what to do without reference to lookahead token. */
yyn = yypact[yystate];
if (yyn == YYFLAG)
goto yydefault;
/* Not known => get a lookahead token if don't already have one. */
/* yychar is either YYEMPTY or YYEOF
or a valid token in external form. */
if (yychar == YYEMPTY)
{
#if YYDEBUG != 0
if (yydebug)
fprintf(stderr, "Reading a token: ");
#endif
yychar = YYLEX;
}
/* Convert token to internal form (in yychar1) for indexing tables with */
if (yychar <= 0) /* This means end of input. */
{
yychar1 = 0;
yychar = YYEOF; /* Don't call YYLEX any more */
#if YYDEBUG != 0
if (yydebug)
fprintf(stderr, "Now at end of input.\n");
#endif
}
else
{
yychar1 = YYTRANSLATE(yychar);
#if YYDEBUG != 0
if (yydebug)
fprintf(stderr, "Next token is %d (%s)\n", yychar, yytname[yychar1]);
#endif
}
yyn += yychar1;
if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
goto yydefault;
yyn = yytable[yyn];
/* yyn is what to do for this token type in this state.
Negative => reduce, -yyn is rule number.
Positive => shift, yyn is new state.
New state is final state => don't bother to shift,
just return success.
0, or most negative number => error. */
if (yyn < 0)
{
if (yyn == YYFLAG)
goto yyerrlab;
yyn = -yyn;
goto yyreduce;
}
else if (yyn == 0)
goto yyerrlab;
if (yyn == YYFINAL)
YYACCEPT;
/* Shift the lookahead token. */
#if YYDEBUG != 0
if (yydebug)
fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
#endif
/* Discard the token being shifted unless it is eof. */
if (yychar != YYEOF)
yychar = YYEMPTY;
*++yyvsp = yylval;
#ifdef YYLSP_NEEDED
*++yylsp = yylloc;
#endif
/* count tokens shifted since error; after three, turn off error status. */
if (yyerrstatus) yyerrstatus--;
yystate = yyn;
goto yynewstate;
/* Do the default action for the current state. */
yydefault:
yyn = yydefact[yystate];
if (yyn == 0)
goto yyerrlab;
/* Do a reduction. yyn is the number of a rule to reduce with. */
yyreduce:
yylen = yyr2[yyn];
yyval = yyvsp[1-yylen]; /* implement default value of the action */
#if YYDEBUG != 0
if (yydebug)
{
int i;
fprintf (stderr, "Reducing via rule %d (line %d), ",
yyn, yyrline[yyn]);
/* Print the symboles being reduced, and their result. */
for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
fprintf (stderr, "%s ", yytname[yyrhs[i]]);
fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
}
#endif
switch (yyn) {
case 3:
#line 225 "gram.in"
{
/* stat: is the nonterminal for Fortran statements */
lastwasbranch = NO; ;
break;}
case 5:
#line 231 "gram.in"
{ /* forbid further statement function definitions... */
if (parstate == INDATA && laststfcn != thisstno)
parstate = INEXEC;
thisstno++;
if(yyvsp[-1].labval && (yyvsp[-1].labval->labelno==dorange))
enddo(yyvsp[-1].labval->labelno);
if(lastwasbranch && thislabel==NULL)
warn("statement cannot be reached");
lastwasbranch = thiswasbranch;
thiswasbranch = NO;
if(yyvsp[-1].labval)
{
if(yyvsp[-1].labval->labtype == LABFORMAT)
err("label already that of a format");
else
yyvsp[-1].labval->labtype = LABEXEC;
}
freetemps();
;
break;}
case 6:
#line 251 "gram.in"
{ if (can_include)
doinclude( yyvsp[0].charpval );
else {
fprintf(diagfile, "Cannot open file %s\n", yyvsp[0].charpval);
done(1);
}
;
break;}
case 7:
#line 259 "gram.in"
{ if (yyvsp[-2].labval)
lastwasbranch = NO;
endproc(); /* lastwasbranch = NO; -- set in endproc() */
;
break;}
case 8:
#line 264 "gram.in"
{ extern void unclassifiable();
unclassifiable();
/* flline flushes the current line, ignoring the rest of the text there */
flline(); ;
break;}
case 9:
#line 271 "gram.in"
{ flline(); needkwd = NO; inioctl = NO;
yyerrok; yyclearin; ;
break;}
case 10:
#line 276 "gram.in"
{
if(yystno != 0)
{
yyval.labval = thislabel = mklabel(yystno);
if( ! headerdone ) {
if (procclass == CLUNKNOWN)
procclass = CLMAIN;
puthead(CNULL, procclass);
}
if(thislabel->labdefined)
execerr("label %s already defined",
convic(thislabel->stateno) );
else {
if(thislabel->blklevel!=0 && thislabel->blklevel<blklevel
&& thislabel->labtype!=LABFORMAT)
warn1("there is a branch to label %s from outside block",
convic( (ftnint) (thislabel->stateno) ) );
thislabel->blklevel = blklevel;
thislabel->labdefined = YES;
if(thislabel->labtype != LABFORMAT)
p1_label((long)(thislabel - labeltab));
}
}
else yyval.labval = thislabel = NULL;
;
break;}
case 11:
#line 304 "gram.in"
{startproc(yyvsp[0].extval, CLMAIN); ;
break;}
case 12:
#line 306 "gram.in"
{ warn("ignoring arguments to main program");
/* hashclear(); */
startproc(yyvsp[-1].extval, CLMAIN); ;
break;}
case 13:
#line 310 "gram.in"
{ if(yyvsp[0].extval) NO66("named BLOCKDATA");
startproc(yyvsp[0].extval, CLBLOCK); ;
break;}
case 14:
#line 313 "gram.in"
{ entrypt(CLPROC, TYSUBR, (ftnint) 0, yyvsp[-1].extval, yyvsp[0].chval); ;
break;}
case 15:
#line 315 "gram.in"
{ entrypt(CLPROC, TYUNKNOWN, (ftnint) 0, yyvsp[-1].extval, yyvsp[0].chval); ;
break;}
case 16:
#line 317 "gram.in"
{ entrypt(CLPROC, yyvsp[-4].ival, varleng, yyvsp[-1].extval, yyvsp[0].chval); ;
break;}
case 17:
#line 319 "gram.in"
{ if(parstate==OUTSIDE || procclass==CLMAIN
|| procclass==CLBLOCK)
execerr("misplaced entry statement", CNULL);
entrypt(CLENTRY, 0, (ftnint) 0, yyvsp[-1].extval, yyvsp[0].chval);
;
break;}
case 18:
#line 327 "gram.in"
{ newproc(); ;
break;}
case 19:
#line 331 "gram.in"
{ yyval.extval = newentry(yyvsp[0].namval, 1); ;
break;}
case 20:
#line 335 "gram.in"
{ yyval.namval = mkname(token); ;
break;}
case 21:
#line 338 "gram.in"
{ yyval.extval = NULL; ;
break;}
case 29:
#line 356 "gram.in"
{ yyval.chval = 0; ;
break;}
case 30:
#line 358 "gram.in"
{ NO66(" () argument list");
yyval.chval = 0; ;
break;}
case 31:
#line 361 "gram.in"
{yyval.chval = yyvsp[-1].chval; ;
break;}
case 32:
#line 365 "gram.in"
{ yyval.chval = (yyvsp[0].namval ? mkchain((char *)yyvsp[0].namval,CHNULL) : CHNULL ); ;
break;}
case 33:
#line 367 "gram.in"
{ if(yyvsp[0].namval) yyvsp[-2].chval = yyval.chval = mkchain((char *)yyvsp[0].namval, yyvsp[-2].chval); ;
break;}
case 34:
#line 371 "gram.in"
{ if(yyvsp[0].namval->vstg!=STGUNKNOWN && yyvsp[0].namval->vstg!=STGARG)
dclerr("name declared as argument after use", yyvsp[0].namval);
yyvsp[0].namval->vstg = STGARG;
;
break;}
case 35:
#line 376 "gram.in"
{ NO66("altenate return argument");
/* substars means that '*'ed formal parameters should be replaced.
This is used to specify alternate return labels; in theory, only
parameter slots which have '*' should accept the statement labels.
This compiler chooses to ignore the '*'s in the formal declaration, and
always return the proper value anyway.
This variable is only referred to in proc.c */
yyval.namval = 0; substars = YES; ;
break;}
case 36:
#line 392 "gram.in"
{
char *s;
s = copyn(toklen+1, token);
s[toklen] = '\0';
yyval.charpval = s;
;
break;}
case 45:
#line 408 "gram.in"
{ NO66("SAVE statement");
saveall = YES; ;
break;}
case 46:
#line 411 "gram.in"
{ NO66("SAVE statement"); ;
break;}
case 47:
#line 413 "gram.in"
{ fmtstmt(thislabel); setfmt(thislabel); ;
break;}
case 48:
#line 415 "gram.in"
{ NO66("PARAMETER statement"); ;
break;}
case 49:
#line 419 "gram.in"
{ settype(yyvsp[-4].namval, yyvsp[-6].ival, yyvsp[0].lval);
if(ndim>0) setbound(yyvsp[-4].namval,ndim,dims);
;
break;}
case 50:
#line 423 "gram.in"
{ settype(yyvsp[-2].namval, yyvsp[-4].ival, yyvsp[0].lval);
if(ndim>0) setbound(yyvsp[-2].namval,ndim,dims);
;
break;}
case 51:
#line 427 "gram.in"
{ if (new_dcl == 2) {
err("attempt to give DATA in type-declaration");
new_dcl = 1;
}
;
break;}
case 52:
#line 434 "gram.in"
{ new_dcl = 2; ;
break;}
case 53:
#line 437 "gram.in"
{ varleng = yyvsp[0].lval;
if (vartype == TYLOGICAL && varleng == 1) {
varleng = 0;
err("treating LOGICAL*1 as LOGICAL");
--nerr; /* allow generation of .c file */
}
;
break;}
case 54:
#line 447 "gram.in"
{ varleng = (yyvsp[0].ival<0 || yyvsp[0].ival==TYLONG ? 0 : typesize[yyvsp[0].ival]);
vartype = yyvsp[0].ival; ;
break;}
case 55:
#line 451 "gram.in"
{ yyval.ival = TYLONG; ;
break;}
case 56:
#line 452 "gram.in"
{ yyval.ival = tyreal; ;
break;}
case 57:
#line 453 "gram.in"
{ ++complex_seen; yyval.ival = tycomplex; ;
break;}
case 58:
#line 454 "gram.in"
{ yyval.ival = TYDREAL; ;
break;}
case 59:
#line 455 "gram.in"
{ ++dcomplex_seen; NOEXT("DOUBLE COMPLEX statement"); yyval.ival = TYDCOMPLEX; ;
break;}
case 60:
#line 456 "gram.in"
{ yyval.ival = TYLOGICAL; ;
break;}
case 61:
#line 457 "gram.in"
{ NO66("CHARACTER statement"); yyval.ival = TYCHAR; ;
break;}
case 62:
#line 458 "gram.in"
{ yyval.ival = TYUNKNOWN; ;
break;}
case 63:
#line 459 "gram.in"
{ yyval.ival = TYUNKNOWN; ;
break;}
case 64:
#line 460 "gram.in"
{ NOEXT("AUTOMATIC statement"); yyval.ival = - STGAUTO; ;
break;}
case 65:
#line 461 "gram.in"
{ NOEXT("STATIC statement"); yyval.ival = - STGBSS; ;
break;}
case 66:
#line 465 "gram.in"
{ yyval.lval = varleng; ;
break;}
case 67:
#line 467 "gram.in"
{
expptr p;
p = yyvsp[-1].expval;
NO66("length specification *n");
if( ! ISICON(p) || p->constblock.Const.ci <= 0 )
{
yyval.lval = 0;
dclerr("length must be a positive integer constant",
NPNULL);
}
else {
if (vartype == TYCHAR)
yyval.lval = p->constblock.Const.ci;
else switch((int)p->constblock.Const.ci) {
case 1: yyval.lval = 1; break;
case 2: yyval.lval = typesize[TYSHORT]; break;
case 4: yyval.lval = typesize[TYLONG]; break;
case 8: yyval.lval = typesize[TYDREAL]; break;
case 16: yyval.lval = typesize[TYDCOMPLEX]; break;
default:
dclerr("invalid length",NPNULL);
yyval.lval = varleng;
}
}
;
break;}
case 68:
#line 493 "gram.in"
{ NO66("length specification *(*)"); yyval.lval = -1; ;
break;}
case 69:
#line 497 "gram.in"
{ incomm( yyval.extval = comblock("") , yyvsp[0].namval ); ;
break;}
case 70:
#line 499 "gram.in"
{ yyval.extval = yyvsp[-1].extval; incomm(yyvsp[-1].extval, yyvsp[0].namval); ;
break;}
case 71:
#line 501 "gram.in"
{ yyval.extval = yyvsp[-2].extval; incomm(yyvsp[-2].extval, yyvsp[0].namval); ;
break;}
case 72:
#line 503 "gram.in"
{ incomm(yyvsp[-2].extval, yyvsp[0].namval); ;
break;}
case 73:
#line 507 "gram.in"
{ yyval.extval = comblock(""); ;
break;}
case 74:
#line 509 "gram.in"
{ yyval.extval = comblock(token); ;
break;}
case 75:
#line 513 "gram.in"
{ setext(yyvsp[0].namval); ;
break;}
case 76:
#line 515 "gram.in"
{ setext(yyvsp[0].namval); ;
break;}
case 77:
#line 519 "gram.in"
{ NO66("INTRINSIC statement"); setintr(yyvsp[0].namval); ;
break;}
case 78:
#line 521 "gram.in"
{ setintr(yyvsp[0].namval); ;
break;}
case 81:
#line 529 "gram.in"
{
struct Equivblock *p;
if(nequiv >= maxequiv)
many("equivalences", 'q', maxequiv);
p = & eqvclass[nequiv++];
p->eqvinit = NO;
p->eqvbottom = 0;
p->eqvtop = 0;
p->equivs = yyvsp[-1].eqvval;
;
break;}
case 82:
#line 542 "gram.in"
{ yyval.eqvval=ALLOC(Eqvchain);
yyval.eqvval->eqvitem.eqvlhs = (struct Primblock *)yyvsp[0].expval;
;
break;}
case 83:
#line 546 "gram.in"
{ yyval.eqvval=ALLOC(Eqvchain);
yyval.eqvval->eqvitem.eqvlhs = (struct Primblock *) yyvsp[0].expval;
yyval.eqvval->eqvnextp = yyvsp[-2].eqvval;
;
break;}
case 86:
#line 557 "gram.in"
{ if(parstate == OUTSIDE)
{
newproc();
startproc(ESNULL, CLMAIN);
}
if(parstate < INDATA)
{
enddcl();
parstate = INDATA;
datagripe = 1;
}
;
break;}
case 87:
#line 572 "gram.in"
{ ftnint junk;
if(nextdata(&junk) != NULL)
err("too few initializers");
frdata(yyvsp[-4].chval);
frrpl();
;
break;}
case 88:
#line 580 "gram.in"
{ frchain(&datastack); curdtp = 0; ;
break;}
case 89:
#line 582 "gram.in"
{ pop_datastack(); ;
break;}
case 90:
#line 584 "gram.in"
{ toomanyinit = NO; ;
break;}
case 93:
#line 589 "gram.in"
{ dataval(ENULL, yyvsp[0].expval); ;
break;}
case 94:
#line 591 "gram.in"
{ dataval(yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 96:
#line 596 "gram.in"
{ if( yyvsp[-1].ival==OPMINUS && ISCONST(yyvsp[0].expval) )
consnegop((Constp)yyvsp[0].expval);
yyval.expval = yyvsp[0].expval;
;
break;}
case 100:
#line 608 "gram.in"
{ int k;
yyvsp[0].namval->vsave = YES;
k = yyvsp[0].namval->vstg;
if( ! ONEOF(k, M(STGUNKNOWN)|M(STGBSS)|M(STGINIT)) )
dclerr("can only save static variables", yyvsp[0].namval);
;
break;}
case 104:
#line 622 "gram.in"
{ if(yyvsp[-2].namval->vclass == CLUNKNOWN)
make_param((struct Paramblock *)yyvsp[-2].namval, yyvsp[0].expval);
else dclerr("cannot make into parameter", yyvsp[-2].namval);
;
break;}
case 105:
#line 629 "gram.in"
{ if(ndim>0) setbound(yyvsp[-1].namval, ndim, dims); ;
break;}
case 106:
#line 633 "gram.in"
{ Namep np;
np = ( (struct Primblock *) yyvsp[0].expval) -> namep;
vardcl(np);
if(np->vstg == STGCOMMON)
extsymtab[np->vardesc.varno].extinit = YES;
else if(np->vstg==STGEQUIV)
eqvclass[np->vardesc.varno].eqvinit = YES;
else if(np->vstg!=STGINIT && np->vstg!=STGBSS)
dclerr("inconsistent storage classes", np);
yyval.chval = mkchain((char *)yyvsp[0].expval, CHNULL);
;
break;}
case 107:
#line 645 "gram.in"
{ chainp p; struct Impldoblock *q;
pop_datastack();
q = ALLOC(Impldoblock);
q->tag = TIMPLDO;
(q->varnp = (Namep) (yyvsp[-1].chval->datap))->vimpldovar = 1;
p = yyvsp[-1].chval->nextp;
if(p) { q->implb = (expptr)(p->datap); p = p->nextp; }
if(p) { q->impub = (expptr)(p->datap); p = p->nextp; }
if(p) { q->impstep = (expptr)(p->datap); }
frchain( & (yyvsp[-1].chval) );
yyval.chval = mkchain((char *)q, CHNULL);
q->datalist = hookup(yyvsp[-3].chval, yyval.chval);
;
break;}
case 108:
#line 661 "gram.in"
{ if (!datastack)
curdtp = 0;
datastack = mkchain((char *)curdtp, datastack);
curdtp = yyvsp[0].chval; curdtelt = 0;
;
break;}
case 109:
#line 667 "gram.in"
{ yyval.chval = hookup(yyvsp[-2].chval, yyvsp[0].chval); ;
break;}
case 110:
#line 671 "gram.in"
{ ndim = 0; ;
break;}
case 112:
#line 675 "gram.in"
{ ndim = 0; ;
break;}
case 115:
#line 680 "gram.in"
{
if(ndim == maxdim)
err("too many dimensions");
else if(ndim < maxdim)
{ dims[ndim].lb = 0;
dims[ndim].ub = yyvsp[0].expval;
}
++ndim;
;
break;}
case 116:
#line 690 "gram.in"
{
if(ndim == maxdim)
err("too many dimensions");
else if(ndim < maxdim)
{ dims[ndim].lb = yyvsp[-2].expval;
dims[ndim].ub = yyvsp[0].expval;
}
++ndim;
;
break;}
case 117:
#line 702 "gram.in"
{ yyval.expval = 0; ;
break;}
case 119:
#line 707 "gram.in"
{ nstars = 1; labarray[0] = yyvsp[0].labval; ;
break;}
case 120:
#line 709 "gram.in"
{ if(nstars < MAXLABLIST) labarray[nstars++] = yyvsp[0].labval; ;
break;}
case 121:
#line 713 "gram.in"
{ yyval.labval = execlab( convci(toklen, token) ); ;
break;}
case 122:
#line 717 "gram.in"
{ NO66("IMPLICIT statement"); ;
break;}
case 125:
#line 723 "gram.in"
{ if (vartype != TYUNKNOWN)
dclerr("-- expected letter range",NPNULL);
setimpl(vartype, varleng, 'a', 'z'); ;
break;}
case 126:
#line 728 "gram.in"
{ needkwd = 1; ;
break;}
case 130:
#line 737 "gram.in"
{ setimpl(vartype, varleng, yyvsp[0].ival, yyvsp[0].ival); ;
break;}
case 131:
#line 739 "gram.in"
{ setimpl(vartype, varleng, yyvsp[-2].ival, yyvsp[0].ival); ;
break;}
case 132:
#line 743 "gram.in"
{ if(toklen!=1 || token[0]<'a' || token[0]>'z')
{
dclerr("implicit item must be single letter", NPNULL);
yyval.ival = 0;
}
else yyval.ival = token[0];
;
break;}
case 135:
#line 757 "gram.in"
{
if(yyvsp[-2].namval->vclass == CLUNKNOWN)
{
yyvsp[-2].namval->vclass = CLNAMELIST;
yyvsp[-2].namval->vtype = TYINT;
yyvsp[-2].namval->vstg = STGBSS;
yyvsp[-2].namval->varxptr.namelist = yyvsp[0].chval;
yyvsp[-2].namval->vardesc.varno = ++lastvarno;
}
else dclerr("cannot be a namelist name", yyvsp[-2].namval);
;
break;}
case 136:
#line 771 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].namval, CHNULL); ;
break;}
case 137:
#line 773 "gram.in"
{ yyval.chval = hookup(yyvsp[-2].chval, mkchain((char *)yyvsp[0].namval, CHNULL)); ;
break;}
case 138:
#line 777 "gram.in"
{ switch(parstate)
{
case OUTSIDE: newproc();
startproc(ESNULL, CLMAIN);
case INSIDE: parstate = INDCL;
case INDCL: break;
case INDATA:
if (datagripe) {
errstr(
"Statement order error: declaration after DATA",
CNULL);
datagripe = 0;
}
break;
default:
dclerr("declaration among executables", NPNULL);
}
;
break;}
case 139:
#line 799 "gram.in"
{ yyval.chval = 0; ;
break;}
case 140:
#line 801 "gram.in"
{ yyval.chval = revchain(yyvsp[0].chval); ;
break;}
case 141:
#line 805 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].expval, CHNULL); ;
break;}
case 142:
#line 807 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].expval, yyvsp[-2].chval); ;
break;}
case 144:
#line 812 "gram.in"
{ yyval.expval = yyvsp[-1].expval; ;
break;}
case 148:
#line 819 "gram.in"
{ yyval.expval = mkexpr(yyvsp[-1].ival, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 149:
#line 821 "gram.in"
{ yyval.expval = mkexpr(OPSTAR, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 150:
#line 823 "gram.in"
{ yyval.expval = mkexpr(OPSLASH, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 151:
#line 825 "gram.in"
{ yyval.expval = mkexpr(OPPOWER, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 152:
#line 827 "gram.in"
{ if(yyvsp[-1].ival == OPMINUS)
yyval.expval = mkexpr(OPNEG, yyvsp[0].expval, ENULL);
else yyval.expval = yyvsp[0].expval;
;
break;}
case 153:
#line 832 "gram.in"
{ yyval.expval = mkexpr(yyvsp[-1].ival, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 154:
#line 834 "gram.in"
{ NO66(".EQV. operator");
yyval.expval = mkexpr(OPEQV, yyvsp[-2].expval,yyvsp[0].expval); ;
break;}
case 155:
#line 837 "gram.in"
{ NO66(".NEQV. operator");
yyval.expval = mkexpr(OPNEQV, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 156:
#line 840 "gram.in"
{ yyval.expval = mkexpr(OPOR, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 157:
#line 842 "gram.in"
{ yyval.expval = mkexpr(OPAND, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 158:
#line 844 "gram.in"
{ yyval.expval = mkexpr(OPNOT, yyvsp[0].expval, ENULL); ;
break;}
case 159:
#line 846 "gram.in"
{ NO66("concatenation operator //");
yyval.expval = mkexpr(OPCONCAT, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 160:
#line 850 "gram.in"
{ yyval.ival = OPPLUS; ;
break;}
case 161:
#line 851 "gram.in"
{ yyval.ival = OPMINUS; ;
break;}
case 162:
#line 854 "gram.in"
{ yyval.ival = OPEQ; ;
break;}
case 163:
#line 855 "gram.in"
{ yyval.ival = OPGT; ;
break;}
case 164:
#line 856 "gram.in"
{ yyval.ival = OPLT; ;
break;}
case 165:
#line 857 "gram.in"
{ yyval.ival = OPGE; ;
break;}
case 166:
#line 858 "gram.in"
{ yyval.ival = OPLE; ;
break;}
case 167:
#line 859 "gram.in"
{ yyval.ival = OPNE; ;
break;}
case 168:
#line 863 "gram.in"
{ yyval.expval = mkprim(yyvsp[0].namval, LBNULL, CHNULL); ;
break;}
case 169:
#line 865 "gram.in"
{ NO66("substring operator :");
yyval.expval = mkprim(yyvsp[-1].namval, LBNULL, yyvsp[0].chval); ;
break;}
case 170:
#line 868 "gram.in"
{ yyval.expval = mkprim(yyvsp[-3].namval, mklist(yyvsp[-1].chval), CHNULL); ;
break;}
case 171:
#line 870 "gram.in"
{ NO66("substring operator :");
yyval.expval = mkprim(yyvsp[-4].namval, mklist(yyvsp[-2].chval), yyvsp[0].chval); ;
break;}
case 172:
#line 875 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[-3].expval, mkchain((char *)yyvsp[-1].expval,CHNULL)); ;
break;}
case 173:
#line 879 "gram.in"
{ yyval.expval = 0; ;
break;}
case 175:
#line 884 "gram.in"
{ if(yyvsp[0].namval->vclass == CLPARAM)
yyval.expval = (expptr) cpexpr(
( (struct Paramblock *) (yyvsp[0].namval) ) -> paramval);
;
break;}
case 177:
#line 891 "gram.in"
{ yyval.expval = mklogcon(1); ;
break;}
case 178:
#line 892 "gram.in"
{ yyval.expval = mklogcon(0); ;
break;}
case 179:
#line 893 "gram.in"
{ yyval.expval = mkstrcon(toklen, token); ;
break;}
case 180:
#line 894 "gram.in"
{ yyval.expval = mkintcon( convci(toklen, token) ); ;
break;}
case 181:
#line 895 "gram.in"
{ yyval.expval = mkrealcon(tyreal, token); ;
break;}
case 182:
#line 896 "gram.in"
{ yyval.expval = mkrealcon(TYDREAL, token); ;
break;}
case 184:
#line 901 "gram.in"
{ yyval.expval = mkcxcon(yyvsp[-3].expval,yyvsp[-1].expval); ;
break;}
case 185:
#line 905 "gram.in"
{ NOEXT("hex constant");
yyval.expval = mkbitcon(4, toklen, token); ;
break;}
case 186:
#line 908 "gram.in"
{ NOEXT("octal constant");
yyval.expval = mkbitcon(3, toklen, token); ;
break;}
case 187:
#line 911 "gram.in"
{ NOEXT("binary constant");
yyval.expval = mkbitcon(1, toklen, token); ;
break;}
case 189:
#line 917 "gram.in"
{ yyval.expval = yyvsp[-1].expval; ;
break;}
case 192:
#line 923 "gram.in"
{ yyval.expval = mkexpr(yyvsp[-1].ival, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 193:
#line 925 "gram.in"
{ yyval.expval = mkexpr(OPSTAR, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 194:
#line 927 "gram.in"
{ yyval.expval = mkexpr(OPSLASH, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 195:
#line 929 "gram.in"
{ yyval.expval = mkexpr(OPPOWER, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 196:
#line 931 "gram.in"
{ if(yyvsp[-1].ival == OPMINUS)
yyval.expval = mkexpr(OPNEG, yyvsp[0].expval, ENULL);
else yyval.expval = yyvsp[0].expval;
;
break;}
case 197:
#line 936 "gram.in"
{ NO66("concatenation operator //");
yyval.expval = mkexpr(OPCONCAT, yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 199:
#line 941 "gram.in"
{
if(yyvsp[-3].labval->labdefined)
execerr("no backward DO loops", CNULL);
yyvsp[-3].labval->blklevel = blklevel+1;
exdo(yyvsp[-3].labval->labelno, NPNULL, yyvsp[0].chval);
;
break;}
case 200:
#line 948 "gram.in"
{
exdo((int)(ctls - ctlstack - 2), NPNULL, yyvsp[0].chval);
NOEXT("DO without label");
;
break;}
case 201:
#line 953 "gram.in"
{ exenddo(NPNULL); ;
break;}
case 202:
#line 955 "gram.in"
{ exendif(); thiswasbranch = NO; ;
break;}
case 204:
#line 958 "gram.in"
{ exelif(yyvsp[-2].expval); lastwasbranch = NO; ;
break;}
case 205:
#line 960 "gram.in"
{ exelse(); lastwasbranch = NO; ;
break;}
case 206:
#line 962 "gram.in"
{ exendif(); lastwasbranch = NO; ;
break;}
case 207:
#line 966 "gram.in"
{ exif(yyvsp[-1].expval); ;
break;}
case 208:
#line 970 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[-2].namval, yyvsp[0].chval); ;
break;}
case 210:
#line 975 "gram.in"
{ yyval.chval = mkchain(CNULL, (chainp)yyvsp[-1].expval); ;
break;}
case 211:
#line 979 "gram.in"
{ exequals((struct Primblock *)yyvsp[-2].expval, yyvsp[0].expval); ;
break;}
case 212:
#line 981 "gram.in"
{ exassign(yyvsp[0].namval, yyvsp[-2].labval); ;
break;}
case 215:
#line 985 "gram.in"
{ inioctl = NO; ;
break;}
case 216:
#line 987 "gram.in"
{ exarif(yyvsp[-6].expval, yyvsp[-4].labval, yyvsp[-2].labval, yyvsp[0].labval); thiswasbranch = YES; ;
break;}
case 217:
#line 989 "gram.in"
{ excall(yyvsp[0].namval, LBNULL, 0, labarray); ;
break;}
case 218:
#line 991 "gram.in"
{ excall(yyvsp[-2].namval, LBNULL, 0, labarray); ;
break;}
case 219:
#line 993 "gram.in"
{ if(nstars < MAXLABLIST)
excall(yyvsp[-3].namval, mklist(revchain(yyvsp[-1].chval)), nstars, labarray);
else
err("too many alternate returns");
;
break;}
case 220:
#line 999 "gram.in"
{ exreturn(yyvsp[0].expval); thiswasbranch = YES; ;
break;}
case 221:
#line 1001 "gram.in"
{ exstop(yyvsp[-2].ival, yyvsp[0].expval); thiswasbranch = yyvsp[-2].ival; ;
break;}
case 222:
#line 1005 "gram.in"
{ yyval.labval = mklabel( convci(toklen, token) ); ;
break;}
case 223:
#line 1009 "gram.in"
{ if(parstate == OUTSIDE)
{
newproc();
startproc(ESNULL, CLMAIN);
}
;
break;}
case 224:
#line 1018 "gram.in"
{ exgoto(yyvsp[0].labval); thiswasbranch = YES; ;
break;}
case 225:
#line 1020 "gram.in"
{ exasgoto(yyvsp[0].namval); thiswasbranch = YES; ;
break;}
case 226:
#line 1022 "gram.in"
{ exasgoto(yyvsp[-4].namval); thiswasbranch = YES; ;
break;}
case 227:
#line 1024 "gram.in"
{ if(nstars < MAXLABLIST)
putcmgo(putx(fixtype(yyvsp[0].expval)), nstars, labarray);
else
err("computed GOTO list too long");
;
break;}
case 230:
#line 1036 "gram.in"
{ nstars = 0; yyval.namval = yyvsp[0].namval; ;
break;}
case 231:
#line 1040 "gram.in"
{ yyval.chval = yyvsp[0].expval ? mkchain((char *)yyvsp[0].expval,CHNULL) : CHNULL; ;
break;}
case 232:
#line 1042 "gram.in"
{ yyval.chval = yyvsp[0].expval ? mkchain((char *)yyvsp[0].expval, yyvsp[-2].chval) : yyvsp[-2].chval; ;
break;}
case 234:
#line 1047 "gram.in"
{ if(nstars<MAXLABLIST) labarray[nstars++] = yyvsp[0].labval; yyval.expval = 0; ;
break;}
case 235:
#line 1051 "gram.in"
{ yyval.ival = 0; ;
break;}
case 236:
#line 1053 "gram.in"
{ yyval.ival = 2; ;
break;}
case 237:
#line 1057 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].expval, CHNULL); ;
break;}
case 238:
#line 1059 "gram.in"
{ yyval.chval = hookup(yyvsp[-2].chval, mkchain((char *)yyvsp[0].expval,CHNULL) ); ;
break;}
case 239:
#line 1063 "gram.in"
{ if(parstate == OUTSIDE)
{
newproc();
startproc(ESNULL, CLMAIN);
}
/* This next statement depends on the ordering of the state table encoding */
if(parstate < INDATA) enddcl();
;
break;}
case 240:
#line 1076 "gram.in"
{ intonly = YES; ;
break;}
case 241:
#line 1080 "gram.in"
{ intonly = NO; ;
break;}
case 242:
#line 1085 "gram.in"
{ endio(); ;
break;}
case 244:
#line 1090 "gram.in"
{ ioclause(IOSUNIT, yyvsp[0].expval); endioctl(); ;
break;}
case 245:
#line 1092 "gram.in"
{ ioclause(IOSUNIT, ENULL); endioctl(); ;
break;}
case 246:
#line 1094 "gram.in"
{ ioclause(IOSUNIT, IOSTDERR); endioctl(); ;
break;}
case 248:
#line 1097 "gram.in"
{ doio(CHNULL); ;
break;}
case 249:
#line 1099 "gram.in"
{ doio(CHNULL); ;
break;}
case 250:
#line 1101 "gram.in"
{ doio(revchain(yyvsp[0].chval)); ;
break;}
case 251:
#line 1103 "gram.in"
{ doio(revchain(yyvsp[0].chval)); ;
break;}
case 252:
#line 1105 "gram.in"
{ doio(revchain(yyvsp[0].chval)); ;
break;}
case 253:
#line 1107 "gram.in"
{ doio(CHNULL); ;
break;}
case 254:
#line 1109 "gram.in"
{ doio(revchain(yyvsp[0].chval)); ;
break;}
case 255:
#line 1111 "gram.in"
{ doio(CHNULL); ;
break;}
case 256:
#line 1113 "gram.in"
{ doio(revchain(yyvsp[0].chval)); ;
break;}
case 258:
#line 1120 "gram.in"
{ iostmt = IOBACKSPACE; ;
break;}
case 259:
#line 1122 "gram.in"
{ iostmt = IOREWIND; ;
break;}
case 260:
#line 1124 "gram.in"
{ iostmt = IOENDFILE; ;
break;}
case 262:
#line 1131 "gram.in"
{ iostmt = IOINQUIRE; ;
break;}
case 263:
#line 1133 "gram.in"
{ iostmt = IOOPEN; ;
break;}
case 264:
#line 1135 "gram.in"
{ iostmt = IOCLOSE; ;
break;}
case 265:
#line 1139 "gram.in"
{
ioclause(IOSUNIT, ENULL);
ioclause(IOSFMT, yyvsp[0].expval);
endioctl();
;
break;}
case 266:
#line 1145 "gram.in"
{
ioclause(IOSUNIT, ENULL);
ioclause(IOSFMT, ENULL);
endioctl();
;
break;}
case 267:
#line 1153 "gram.in"
{
ioclause(IOSUNIT, yyvsp[-1].expval);
endioctl();
;
break;}
case 268:
#line 1158 "gram.in"
{ endioctl(); ;
break;}
case 271:
#line 1166 "gram.in"
{ ioclause(IOSPOSITIONAL, yyvsp[0].expval); ;
break;}
case 272:
#line 1168 "gram.in"
{ ioclause(IOSPOSITIONAL, ENULL); ;
break;}
case 273:
#line 1170 "gram.in"
{ ioclause(IOSPOSITIONAL, IOSTDERR); ;
break;}
case 274:
#line 1172 "gram.in"
{ ioclause(yyvsp[-1].ival, yyvsp[0].expval); ;
break;}
case 275:
#line 1174 "gram.in"
{ ioclause(yyvsp[-1].ival, ENULL); ;
break;}
case 276:
#line 1176 "gram.in"
{ ioclause(yyvsp[-1].ival, IOSTDERR); ;
break;}
case 277:
#line 1180 "gram.in"
{ yyval.ival = iocname(); ;
break;}
case 278:
#line 1184 "gram.in"
{ iostmt = IOREAD; ;
break;}
case 279:
#line 1188 "gram.in"
{ iostmt = IOWRITE; ;
break;}
case 280:
#line 1192 "gram.in"
{
iostmt = IOWRITE;
ioclause(IOSUNIT, ENULL);
ioclause(IOSFMT, yyvsp[-1].expval);
endioctl();
;
break;}
case 281:
#line 1199 "gram.in"
{
iostmt = IOWRITE;
ioclause(IOSUNIT, ENULL);
ioclause(IOSFMT, ENULL);
endioctl();
;
break;}
case 282:
#line 1208 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].tagval, CHNULL); ;
break;}
case 283:
#line 1210 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].tagval, yyvsp[-2].chval); ;
break;}
case 284:
#line 1214 "gram.in"
{ yyval.tagval = (tagptr) yyvsp[0].expval; ;
break;}
case 285:
#line 1216 "gram.in"
{ yyval.tagval = (tagptr) mkiodo(yyvsp[-1].chval,revchain(yyvsp[-3].chval)); ;
break;}
case 286:
#line 1220 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].expval, CHNULL); ;
break;}
case 287:
#line 1222 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].tagval, CHNULL); ;
break;}
case 289:
#line 1227 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].expval, mkchain((char *)yyvsp[-2].expval, CHNULL) ); ;
break;}
case 290:
#line 1229 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].tagval, mkchain((char *)yyvsp[-2].expval, CHNULL) ); ;
break;}
case 291:
#line 1231 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].expval, mkchain((char *)yyvsp[-2].tagval, CHNULL) ); ;
break;}
case 292:
#line 1233 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].tagval, mkchain((char *)yyvsp[-2].tagval, CHNULL) ); ;
break;}
case 293:
#line 1235 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].expval, yyvsp[-2].chval); ;
break;}
case 294:
#line 1237 "gram.in"
{ yyval.chval = mkchain((char *)yyvsp[0].tagval, yyvsp[-2].chval); ;
break;}
case 295:
#line 1241 "gram.in"
{ yyval.tagval = (tagptr) yyvsp[0].expval; ;
break;}
case 296:
#line 1243 "gram.in"
{ yyval.tagval = (tagptr) yyvsp[-1].expval; ;
break;}
case 297:
#line 1245 "gram.in"
{ yyval.tagval = (tagptr) mkiodo(yyvsp[-1].chval, mkchain((char *)yyvsp[-3].expval, CHNULL) ); ;
break;}
case 298:
#line 1247 "gram.in"
{ yyval.tagval = (tagptr) mkiodo(yyvsp[-1].chval, mkchain((char *)yyvsp[-3].tagval, CHNULL) ); ;
break;}
case 299:
#line 1249 "gram.in"
{ yyval.tagval = (tagptr) mkiodo(yyvsp[-1].chval, revchain(yyvsp[-3].chval)); ;
break;}
case 300:
#line 1253 "gram.in"
{ startioctl(); ;
break;}
}
/* the action file gets copied in in place of this dollarsign */
#line 423 "/usr/local/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;
for (x = 0; x < (sizeof(yytname) / sizeof(char *)); x++)
if (yycheck[x + yyn] == x)
size += strlen(yytname[x]) + 15, count++;
msg = (char *) xmalloc(size + 15);
strcpy(msg, "parse error");
if (count < 5)
{
count = 0;
for (x = 0; x < (sizeof(yytname) / sizeof(char *)); x++)
if (yycheck[x + yyn] == x)
{
strcat(msg, count == 0 ? ", expecting `" : " or `");
strcat(msg, yytname[x]);
strcat(msg, "'");
count++;
}
}
yyerror(msg);
free(msg);
}
else
#endif /* YYERROR_VERBOSE */
yyerror("parse error");
}
yyerrlab1: /* here on error raised explicitly by an action */
if (yyerrstatus == 3)
{
/* if just tried and failed to reuse lookahead token after an error, discard it. */
/* return failure if at end of input */
if (yychar == YYEOF)
YYABORT;
#if YYDEBUG != 0
if (yydebug)
fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
#endif
yychar = YYEMPTY;
}
/* Else will try to reuse lookahead token
after shifting the error token. */
yyerrstatus = 3; /* Each real token shifted decrements this */
goto yyerrhandle;
yyerrdefault: /* current state does not do anything special for the error token. */
#if 0
/* This is wrong; only states that explicitly want error tokens
should shift them. */
yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
if (yyn) goto yydefault;
#endif
yyerrpop: /* pop the current state because it cannot handle the error token */
if (yyssp == yyss) YYABORT;
yyvsp--;
yystate = *--yyssp;
#ifdef YYLSP_NEEDED
yylsp--;
#endif
#if YYDEBUG != 0
if (yydebug)
{
short *ssp1 = yyss - 1;
fprintf (stderr, "Error: state stack now");
while (ssp1 != yyssp)
fprintf (stderr, " %d", *++ssp1);
fprintf (stderr, "\n");
}
#endif
yyerrhandle:
yyn = yypact[yystate];
if (yyn == YYFLAG)
goto yyerrdefault;
yyn += YYTERROR;
if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
goto yyerrdefault;
yyn = yytable[yyn];
if (yyn < 0)
{
if (yyn == YYFLAG)
goto yyerrpop;
yyn = -yyn;
goto yyreduce;
}
else if (yyn == 0)
goto yyerrpop;
if (yyn == YYFINAL)
YYACCEPT;
#if YYDEBUG != 0
if (yydebug)
fprintf(stderr, "Shifting error token, ");
#endif
*++yyvsp = yylval;
#ifdef YYLSP_NEEDED
*++yylsp = yylloc;
#endif
yystate = yyn;
goto yynewstate;
}
#line 1255 "gram.in"