2 static const char yysccsid[] =
"@(#)yaccpar 1.9 (Berkeley) 02/21/93";
11 #define YYPATCH 20070509
14 #define yyclearin (yychar = YYEMPTY)
15 #define yyerrok (yyerrflag = 0)
16 #define YYRECOVERING (yyerrflag != 0)
22 #line 2 "cmdparse.ypp"
93 #line 73 "cmdparse.ypp"
99 #line 100 "cmdparse.cpp"
112 #define YYERRCODE 256
114 0, 0, 0, 0, 0, 1, 1, 1, 3, 3,
115 4, 4, 4, 4, 4, 4, 4, 4, 2, 2,
119 3, 3, 1, 1, 1, 3, 3, 4, 2, 0,
120 1, 2, 2, 2, 2, 3, 3, 0, 2, 0,
124 0, 3, 4, 5, 0, 0, 0, 0, 0, 1,
125 2, 0, 0, 0, 6, 0, 0, 7, 0, 0,
126 19, 8, 0, 0, 9, 0, 0, 0, 0, 13,
127 12, 14, 23, 24, 16, 17,
133 -41, 0, 0, 0, 0, -251, -251, -258, -248, 0,
134 0, -26, -40, -249, 0, -21, -247, 0, -241, -243,
135 0, 0, -239, -262, 0, -242, -237, -240, -235, 0,
139 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
140 0, 27, 28, 29, 0, 28, 30, 0, 0, 31,
141 0, 0, 0, 32, 0, 33, 0, 34, 0, 0,
147 #define YYTABLESIZE 221
149 7, 29, 12, 30, 31, 32, 1, 2, 3, 4,
150 8, 9, 13, 14, 19, 20, 23, 24, 17, 26,
151 27, 28, 33, 34, 35, 36, 20, 10, 25, 18,
152 21, 11, 22, 15, 22, 0, 0, 0, 0, 0,
153 0, 11, 0, 0, 0, 0, 0, 0, 0, 0,
154 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
155 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
156 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
157 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
158 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
159 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
160 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
161 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
162 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
163 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
164 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
165 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
166 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
167 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
168 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
169 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
170 0, 0, 0, 0, 0, 0, 0, 0, 0, 6,
174 42, 264, 261, 266, 267, 268, 257, 258, 259, 260,
175 262, 263, 261, 40, 264, 265, 264, 265, 40, 261,
176 264, 261, 265, 261, 265, 261, 0, 0, 0, 0,
177 0, 0, 0, 0, 16, -1, -1, -1, -1, -1,
178 -1, 7, -1, -1, -1, -1, -1, -1, -1, -1,
179 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
180 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
181 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
182 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
183 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
184 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
185 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
186 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
187 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
188 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
189 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
190 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
191 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
192 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
193 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
194 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
195 -1, -1, -1, -1, -1, -1, -1, -1, -1, 261,
202 #define YYMAXTOKEN 268
205 "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,
206 0,0,0,0,0,0,
"'('",0,
"'*'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
207 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
208 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
209 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
210 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
211 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
"EXECIO",
"HI",
"TE",
"TS",
212 "CONSTANT",
"DISKW",
"DISKR",
"STEM",
"FINIS",
"LIFO",
"FIFO",
"SKIP",
216 "stmt : EXECIO CONSTANT disk_clause",
217 "stmt : EXECIO '*' disk_clause",
221 "disk_clause : DISKW CONSTANT diskw_option",
222 "disk_clause : DISKR CONSTANT diskr_option",
223 "disk_clause : DISKR CONSTANT CONSTANT diskr_option",
224 "diskr_option : '(' diskr_options",
226 "diskr_options : FINIS",
227 "diskr_options : FINIS FIFO",
228 "diskr_options : FINIS LIFO",
229 "diskr_options : FINIS SKIP",
230 "diskr_options : STEM CONSTANT",
231 "diskr_options : STEM CONSTANT FINIS",
232 "diskr_options : FINIS STEM CONSTANT",
234 "diskw_option : '(' diskw_options",
236 "diskw_options : FINIS",
237 "diskw_options : STEM CONSTANT",
238 "diskw_options : STEM CONSTANT FINIS",
239 "diskw_options : FINIS STEM CONSTANT",
250 #define YYMAXDEPTH YYSTACKSIZE
253 #define YYSTACKSIZE YYMAXDEPTH
255 #define YYSTACKSIZE 500
256 #define YYMAXDEPTH 500
260 #define YYINITSTACKSIZE 500
276 #line 211 "cmdparse.ypp"
291 static char token [1024];
369 fprintf (stderr,
"Token \"%s\"\n", token);
412 char *utoken, *uutoken;
414 utoken = strdup(token);
416 while (*uutoken !=
'\0')
418 *uutoken = toupper(*uutoken);
421 for (i = 0;
kwtable[i].type != EOF; i++)
445 for (i = 0; i < strlen (token); i++)
446 if (!isdigit(*(token + i)))
451 #line 451 "cmdparse.cpp"
468 ? (
short *)realloc(
yyss, newsize *
sizeof(*newss))
469 : (
short *)malloc(newsize *
sizeof(*newss));
476 ? (
YYSTYPE *)realloc(
yyvs, newsize *
sizeof(*newvs))
477 : (
YYSTYPE *)malloc(newsize *
sizeof(*newvs));
488 #define YYABORT goto yyabort
489 #define YYREJECT goto yyabort
490 #define YYACCEPT goto yyaccept
491 #define YYERROR goto yyerrlab
495 register int yym, yyn, yystate;
497 register const char *yys;
499 if ((yys = getenv(
"YYDEBUG")) != 0)
502 if (yyn >=
'0' && yyn <=
'9')
514 *
yyssp = yystate = 0;
517 if ((yyn =
yydefred[yystate]) != 0)
goto yyreduce;
526 if (!yys) yys =
"illegal-symbol";
527 printf(
"%sdebug: state %d, reading %d (%s)\n",
537 printf(
"%sdebug: state %d, shifting to state %d\n",
578 printf(
"%sdebug: state %d, error recovery shifting\
593 printf(
"%sdebug: error recovery discarding state %d\n",
604 if (
yychar == 0)
goto yyabort;
610 if (!yys) yys =
"illegal-symbol";
611 printf(
"%sdebug: state %d, error recovery discards token %d (%s)\n",
622 printf(
"%sdebug: state %d, reducing by rule %d (%s)\n",
623 YYPREFIX, yystate, yyn, yyrule[yyn]);
633 #line 96 "cmdparse.ypp"
645 #line 106 "cmdparse.ypp"
653 #line 112 "cmdparse.ypp"
659 #line 116 "cmdparse.ypp"
665 #line 120 "cmdparse.ypp"
671 #line 126 "cmdparse.ypp"
678 #line 131 "cmdparse.ypp"
685 #line 136 "cmdparse.ypp"
697 #line 152 "cmdparse.ypp"
703 #line 156 "cmdparse.ypp"
709 #line 160 "cmdparse.ypp"
716 #line 165 "cmdparse.ypp"
723 #line 170 "cmdparse.ypp"
729 #line 174 "cmdparse.ypp"
736 #line 179 "cmdparse.ypp"
743 #line 191 "cmdparse.ypp"
749 #line 195 "cmdparse.ypp"
755 #line 199 "cmdparse.ypp"
762 #line 204 "cmdparse.ypp"
768 #line 768 "cmdparse.cpp"
774 if (yystate == 0 && yym == 0)
778 printf(
"%sdebug: after reduction, shifting from state 0 to\
792 if (!yys) yys =
"illegal-symbol";
793 printf(
"%sdebug: state %d, reading %d (%s)\n",
798 if (
yychar == 0)
goto yyaccept;
801 if ((yyn =
yygindex[yym]) && (yyn += yystate) >= 0 &&
808 printf(
"%sdebug: after reduction, shifting from state %d \
820 yyerror(
"yacc stack overflow");
int kwsearch(char *token)
static int yygrowstack(void)
void yyerror(char *token)
static const char yysccsid[]
bool isnumeric(char *token)
static struct @21 kwtable[]
char * pszSymbol[SYMTABLESIZE]
EXECIO_OPTIONS ExecIO_Options