ooRexx  4.2.0-source
About: ooRexx (Open Object Rexx) is a free implementation of Object Rexx. Object Rexx is an enhancement of the classic Rexx interpreter; a full-featured programming language with a human-oriented syntax.
  Fossies Dox: ooRexx-4.2.0-source.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

cmdparse.cpp
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 2.7. */
2 
3 /* Bison implementation for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
6 
7  This program is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 /* As a special exception, you may create a larger work that contains
21  part or all of the Bison parser skeleton and distribute that work
22  under terms of your choice, so long as that work isn't itself a
23  parser generator using the skeleton or a modified version thereof
24  as a parser skeleton. Alternatively, if you modify or redistribute
25  the parser skeleton itself, you may (at your option) remove this
26  special exception, which will cause the skeleton and the resulting
27  Bison output files to be licensed under the GNU General Public
28  License without this special exception.
29 
30  This special exception was added by the Free Software Foundation in
31  version 2.2 of Bison. */
32 
33 /* C LALR(1) parser skeleton written by Richard Stallman, by
34  simplifying the original so-called "semantic" parser. */
35 
36 /* All symbols defined below should begin with yy or YY, to avoid
37  infringing on user name space. This should be done even for local
38  variables, as they might otherwise be expanded by user macros.
39  There are some unavoidable exceptions within include files to
40  define necessary library symbols; they are noted "INFRINGES ON
41  USER NAME SPACE" below. */
42 
43 /* Identify Bison output. */
44 #define YYBISON 1
45 
46 /* Bison version. */
47 #define YYBISON_VERSION "2.7"
48 
49 /* Skeleton name. */
50 #define YYSKELETON_NAME "yacc.c"
51 
52 /* Pure parsers. */
53 #define YYPURE 0
54 
55 /* Push parsers. */
56 #define YYPUSH 0
57 
58 /* Pull parsers. */
59 #define YYPULL 1
60 
61 
62 
63 
64 /* Copy the first part of user declarations. */
65 /* Line 371 of yacc.c */
66 #line 1 "./extensions/hostemu/cmdparse.ypp"
67 
68 /*----------------------------------------------------------------------------*/
69 /* */
70 /* Copyright (c) 2009-2010 Rexx Language Association. All rights reserved. */
71 /* */
72 /* This program and the accompanying materials are made available under */
73 /* the terms of the Common Public License v1.0 which accompanies this */
74 /* distribution. A copy is also available at the following address: */
75 /* http://www.oorexx.org/license.html */
76 /* */
77 /* Redistribution and use in source and binary forms, with or */
78 /* without modification, are permitted provided that the following */
79 /* conditions are met: */
80 /* */
81 /* Redistributions of source code must retain the above copyright */
82 /* notice, this list of conditions and the following disclaimer. */
83 /* Redistributions in binary form must reproduce the above copyright */
84 /* notice, this list of conditions and the following disclaimer in */
85 /* the documentation and/or other materials provided with the distribution. */
86 /* */
87 /* Neither the name of Rexx Language Association nor the names */
88 /* of its contributors may be used to endorse or promote products */
89 /* derived from this software without specific prior written permission. */
90 /* */
91 /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
92 /* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
93 /* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS */
94 /* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
95 /* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
96 /* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
97 /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */
98 /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY */
99 /* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
100 /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
101 /* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
102 /* */
103 /* Authors; */
104 /* W. David Ashley <dashley@us.ibm.com> */
105 /* */
106 /*----------------------------------------------------------------------------*/
107 
108 
109 /*----------------------------------------------------------------------------*/
110 /* !!!CAUTION!!! */
111 /* Do not edit the cmdparse.cpp file! This file is produced by yacc! You */
112 /* should edit the cmdparse.y file and regen the changes via make! */
113 /*----------------------------------------------------------------------------*/
114 
115 
116 #include <stdlib.h>
117 #include <string.h>
118 #include <stdio.h>
119 #include <ctype.h>
120 #include <rexx.h>
121 
122 #include "hostemu.h"
123 
124 /*--------------------------------------------------------------------*/
125 /* Local function prototypes */
126 /*--------------------------------------------------------------------*/
127 
128 int yylex (
129  void); /* no arguments */
130 void yyerror (
131  char * token); /* token string */
132 int kwsearch (
133  char * token); /* token string */
134 bool isnumeric (
135  char * token); /* token string */
136 
137 
138 
139 /* Line 371 of yacc.c */
140 #line 141 "cmdparse.cpp"
141 
142 # ifndef YY_NULL
143 # if defined __cplusplus && 201103L <= __cplusplus
144 # define YY_NULL nullptr
145 # else
146 # define YY_NULL 0
147 # endif
148 # endif
149 
150 /* Enabling verbose error messages. */
151 #ifdef YYERROR_VERBOSE
152 # undef YYERROR_VERBOSE
153 # define YYERROR_VERBOSE 1
154 #else
155 # define YYERROR_VERBOSE 0
156 #endif
157 
158 
159 /* Enabling traces. */
160 #ifndef YYDEBUG
161 # define YYDEBUG 0
162 #endif
163 #if YYDEBUG
164 extern int yydebug;
165 #endif
166 
167 /* Tokens. */
168 #ifndef YYTOKENTYPE
169 # define YYTOKENTYPE
170  /* Put the tokens into the symbol table, so that GDB and other debuggers
171  know about them. */
172  enum yytokentype {
173  EXECIO = 258,
174  HI = 259,
175  TE = 260,
176  TS = 261,
177  CONSTANT = 262,
178  DISKW = 263,
179  DISKR = 264,
180  STEM = 265,
181  FINIS = 266,
182  LIFO = 267,
183  FIFO = 268,
184  SKIP = 269
185  };
186 #endif
187 /* Tokens. */
188 #define EXECIO 258
189 #define HI 259
190 #define TE 260
191 #define TS 261
192 #define CONSTANT 262
193 #define DISKW 263
194 #define DISKR 264
195 #define STEM 265
196 #define FINIS 266
197 #define LIFO 267
198 #define FIFO 268
199 #define SKIP 269
200 
201 
202 
203 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
204 typedef union YYSTYPE
205 {
206 /* Line 387 of yacc.c */
207 #line 74 "./extensions/hostemu/cmdparse.ypp"
208 
209  int numval;
210  char * strval;
211 
212 
213 /* Line 387 of yacc.c */
214 #line 215 "cmdparse.cpp"
215 } YYSTYPE;
216 # define YYSTYPE_IS_TRIVIAL 1
217 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
218 # define YYSTYPE_IS_DECLARED 1
219 #endif
220 
221 extern YYSTYPE yylval;
222 
223 #ifdef YYPARSE_PARAM
224 #if defined __STDC__ || defined __cplusplus
225 int yyparse (void *YYPARSE_PARAM);
226 #else
227 int yyparse ();
228 #endif
229 #else /* ! YYPARSE_PARAM */
230 #if defined __STDC__ || defined __cplusplus
231 int yyparse (void);
232 #else
233 int yyparse ();
234 #endif
235 #endif /* ! YYPARSE_PARAM */
236 
237 
238 
239 /* Copy the second part of user declarations. */
240 
241 /* Line 390 of yacc.c */
242 #line 243 "cmdparse.cpp"
243 
244 #ifdef short
245 # undef short
246 #endif
247 
248 #ifdef YYTYPE_UINT8
249 typedef YYTYPE_UINT8 yytype_uint8;
250 #else
251 typedef unsigned char yytype_uint8;
252 #endif
253 
254 #ifdef YYTYPE_INT8
255 typedef YYTYPE_INT8 yytype_int8;
256 #elif (defined __STDC__ || defined __C99__FUNC__ \
257  || defined __cplusplus || defined _MSC_VER)
258 typedef signed char yytype_int8;
259 #else
260 typedef short int yytype_int8;
261 #endif
262 
263 #ifdef YYTYPE_UINT16
264 typedef YYTYPE_UINT16 yytype_uint16;
265 #else
266 typedef unsigned short int yytype_uint16;
267 #endif
268 
269 #ifdef YYTYPE_INT16
270 typedef YYTYPE_INT16 yytype_int16;
271 #else
272 typedef short int yytype_int16;
273 #endif
274 
275 #ifndef YYSIZE_T
276 # ifdef __SIZE_TYPE__
277 # define YYSIZE_T __SIZE_TYPE__
278 # elif defined size_t
279 # define YYSIZE_T size_t
280 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
281  || defined __cplusplus || defined _MSC_VER)
282 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
283 # define YYSIZE_T size_t
284 # else
285 # define YYSIZE_T unsigned int
286 # endif
287 #endif
288 
289 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
290 
291 #ifndef YY_
292 # if defined YYENABLE_NLS && YYENABLE_NLS
293 # if ENABLE_NLS
294 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
295 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
296 # endif
297 # endif
298 # ifndef YY_
299 # define YY_(Msgid) Msgid
300 # endif
301 #endif
302 
303 /* Suppress unused-variable warnings by "using" E. */
304 #if ! defined lint || defined __GNUC__
305 # define YYUSE(E) ((void) (E))
306 #else
307 # define YYUSE(E) /* empty */
308 #endif
309 
310 /* Identity function, used to suppress warnings about constant conditions. */
311 #ifndef lint
312 # define YYID(N) (N)
313 #else
314 #if (defined __STDC__ || defined __C99__FUNC__ \
315  || defined __cplusplus || defined _MSC_VER)
316 static int
317 YYID (int yyi)
318 #else
319 static int
320 YYID (yyi)
321  int yyi;
322 #endif
323 {
324  return yyi;
325 }
326 #endif
327 
328 #if ! defined yyoverflow || YYERROR_VERBOSE
329 
330 /* The parser invokes alloca or malloc; define the necessary symbols. */
331 
332 # ifdef YYSTACK_USE_ALLOCA
333 # if YYSTACK_USE_ALLOCA
334 # ifdef __GNUC__
335 # define YYSTACK_ALLOC __builtin_alloca
336 # elif defined __BUILTIN_VA_ARG_INCR
337 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
338 # elif defined _AIX
339 # define YYSTACK_ALLOC __alloca
340 # elif defined _MSC_VER
341 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
342 # define alloca _alloca
343 # else
344 # define YYSTACK_ALLOC alloca
345 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
346  || defined __cplusplus || defined _MSC_VER)
347 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
348  /* Use EXIT_SUCCESS as a witness for stdlib.h. */
349 # ifndef EXIT_SUCCESS
350 # define EXIT_SUCCESS 0
351 # endif
352 # endif
353 # endif
354 # endif
355 # endif
356 
357 # ifdef YYSTACK_ALLOC
358  /* Pacify GCC's `empty if-body' warning. */
359 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
360 # ifndef YYSTACK_ALLOC_MAXIMUM
361  /* The OS might guarantee only one guard page at the bottom of the stack,
362  and a page size can be as small as 4096 bytes. So we cannot safely
363  invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
364  to allow for a few compiler-allocated temporary stack slots. */
365 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
366 # endif
367 # else
368 # define YYSTACK_ALLOC YYMALLOC
369 # define YYSTACK_FREE YYFREE
370 # ifndef YYSTACK_ALLOC_MAXIMUM
371 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
372 # endif
373 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
374  && ! ((defined YYMALLOC || defined malloc) \
375  && (defined YYFREE || defined free)))
376 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
377 # ifndef EXIT_SUCCESS
378 # define EXIT_SUCCESS 0
379 # endif
380 # endif
381 # ifndef YYMALLOC
382 # define YYMALLOC malloc
383 # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
384  || defined __cplusplus || defined _MSC_VER)
385 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
386 # endif
387 # endif
388 # ifndef YYFREE
389 # define YYFREE free
390 # if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
391  || defined __cplusplus || defined _MSC_VER)
392 void free (void *); /* INFRINGES ON USER NAME SPACE */
393 # endif
394 # endif
395 # endif
396 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
397 
398 
399 #if (! defined yyoverflow \
400  && (! defined __cplusplus \
401  || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
402 
403 /* A type that is properly aligned for any stack member. */
404 union yyalloc
405 {
408 };
409 
410 /* The size of the maximum gap between one aligned stack and the next. */
411 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
412 
413 /* The size of an array large to enough to hold all stacks, each with
414  N elements. */
415 # define YYSTACK_BYTES(N) \
416  ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
417  + YYSTACK_GAP_MAXIMUM)
418 
419 # define YYCOPY_NEEDED 1
420 
421 /* Relocate STACK from its old location to the new one. The
422  local variables YYSIZE and YYSTACKSIZE give the old and new number of
423  elements in the stack, and YYPTR gives the new location of the
424  stack. Advance YYPTR to a properly aligned location for the next
425  stack. */
426 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
427  do \
428  { \
429  YYSIZE_T yynewbytes; \
430  YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
431  Stack = &yyptr->Stack_alloc; \
432  yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
433  yyptr += yynewbytes / sizeof (*yyptr); \
434  } \
435  while (YYID (0))
436 
437 #endif
438 
439 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
440 /* Copy COUNT objects from SRC to DST. The source and destination do
441  not overlap. */
442 # ifndef YYCOPY
443 # if defined __GNUC__ && 1 < __GNUC__
444 # define YYCOPY(Dst, Src, Count) \
445  __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
446 # else
447 # define YYCOPY(Dst, Src, Count) \
448  do \
449  { \
450  YYSIZE_T yyi; \
451  for (yyi = 0; yyi < (Count); yyi++) \
452  (Dst)[yyi] = (Src)[yyi]; \
453  } \
454  while (YYID (0))
455 # endif
456 # endif
457 #endif /* !YYCOPY_NEEDED */
458 
459 /* YYFINAL -- State number of the termination state. */
460 #define YYFINAL 8
461 /* YYLAST -- Last index in YYTABLE. */
462 #define YYLAST 32
463 
464 /* YYNTOKENS -- Number of terminals. */
465 #define YYNTOKENS 17
466 /* YYNNTS -- Number of nonterminals. */
467 #define YYNNTS 7
468 /* YYNRULES -- Number of rules. */
469 #define YYNRULES 26
470 /* YYNRULES -- Number of states. */
471 #define YYNSTATES 38
472 
473 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
474 #define YYUNDEFTOK 2
475 #define YYMAXUTOK 269
476 
477 #define YYTRANSLATE(YYX) \
478  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
479 
480 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
481 static const yytype_uint8 yytranslate[] =
482 {
483  0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
484  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
485  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
486  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
487  16, 2, 15, 2, 2, 2, 2, 2, 2, 2,
488  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
489  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
490  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
491  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
492  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
493  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
494  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
495  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
496  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
497  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
498  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
499  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
500  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
501  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
502  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
503  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
504  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
505  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
506  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
507  2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
508  2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
509  5, 6, 7, 8, 9, 10, 11, 12, 13, 14
510 };
511 
512 #if YYDEBUG
513 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
514  YYRHS. */
515 static const yytype_uint8 yyprhs[] =
516 {
517  0, 0, 3, 7, 11, 13, 15, 17, 21, 25,
518  30, 33, 34, 36, 39, 42, 45, 48, 52, 56,
519  57, 60, 61, 63, 66, 70, 74
520 };
521 
522 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
523 static const yytype_int8 yyrhs[] =
524 {
525  18, 0, -1, 3, 7, 19, -1, 3, 15, 19,
526  -1, 4, -1, 5, -1, 6, -1, 8, 7, 22,
527  -1, 9, 7, 20, -1, 9, 7, 7, 20, -1,
528  16, 21, -1, -1, 11, -1, 11, 13, -1, 11,
529  12, -1, 11, 14, -1, 10, 7, -1, 10, 7,
530  11, -1, 11, 10, 7, -1, -1, 16, 23, -1,
531  -1, 11, -1, 10, 7, -1, 10, 7, 11, -1,
532  11, 10, 7, -1, -1
533 };
534 
535 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
536 static const yytype_uint8 yyrline[] =
537 {
538  0, 95, 95, 105, 111, 115, 119, 125, 130, 135,
539  147, 148, 151, 155, 159, 164, 169, 173, 178, 183,
540  186, 187, 190, 194, 198, 203, 208
541 };
542 #endif
543 
544 #if YYDEBUG || YYERROR_VERBOSE || 0
545 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
546  First, the terminals, then, starting at YYNTOKENS, nonterminals. */
547 static const char *const yytname[] =
548 {
549  "$end", "error", "$undefined", "EXECIO", "HI", "TE", "TS", "CONSTANT",
550  "DISKW", "DISKR", "STEM", "FINIS", "LIFO", "FIFO", "SKIP", "'*'", "'('",
551  "$accept", "stmt", "disk_clause", "diskr_option", "diskr_options",
552  "diskw_option", "diskw_options", YY_NULL
553 };
554 #endif
555 
556 # ifdef YYPRINT
557 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
558  token YYLEX-NUM. */
559 static const yytype_uint16 yytoknum[] =
560 {
561  0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
562  265, 266, 267, 268, 269, 42, 40
563 };
564 # endif
565 
566 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
567 static const yytype_uint8 yyr1[] =
568 {
569  0, 17, 18, 18, 18, 18, 18, 19, 19, 19,
570  20, 20, 21, 21, 21, 21, 21, 21, 21, 21,
571  22, 22, 23, 23, 23, 23, 23
572 };
573 
574 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
575 static const yytype_uint8 yyr2[] =
576 {
577  0, 2, 3, 3, 1, 1, 1, 3, 3, 4,
578  2, 0, 1, 2, 2, 2, 2, 3, 3, 0,
579  2, 0, 1, 2, 3, 3, 0
580 };
581 
582 /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
583  Performed when YYTABLE doesn't specify something else to do. Zero
584  means the default is an error. */
585 static const yytype_uint8 yydefact[] =
586 {
587  0, 0, 4, 5, 6, 0, 0, 0, 1, 0,
588  0, 2, 3, 21, 11, 26, 7, 11, 19, 8,
589  0, 22, 20, 9, 0, 12, 10, 23, 0, 16,
590  0, 14, 13, 15, 24, 25, 17, 18
591 };
592 
593 /* YYDEFGOTO[NTERM-NUM]. */
594 static const yytype_int8 yydefgoto[] =
595 {
596  -1, 5, 11, 19, 26, 16, 22
597 };
598 
599 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
600  STATE-NUM. */
601 #define YYPACT_NINF -10
602 static const yytype_int8 yypact[] =
603 {
604  8, -5, -10, -10, -10, 19, -2, -2, -10, 1,
605  13, -10, -10, 6, -7, 5, -10, 9, 7, -10,
606  14, 16, -10, -10, 17, -9, -10, 12, 20, 18,
607  21, -10, -10, -10, -10, -10, -10, -10
608 };
609 
610 /* YYPGOTO[NTERM-NUM]. */
611 static const yytype_int8 yypgoto[] =
612 {
613  -10, -10, 23, 15, -10, -10, -10
614 };
615 
616 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
617  positive, shift that token. If negative, reduce the rule which
618  number is the opposite. If YYTABLE_NINF, syntax error. */
619 #define YYTABLE_NINF -1
620 static const yytype_uint8 yytable[] =
621 {
622  17, 30, 6, 31, 32, 33, 9, 10, 13, 18,
623  7, 1, 2, 3, 4, 20, 21, 24, 25, 8,
624  14, 27, 15, 34, 29, 18, 28, 35, 37, 36,
625  12, 0, 23
626 };
627 
628 #define yypact_value_is_default(Yystate) \
629  (!!((Yystate) == (-10)))
630 
631 #define yytable_value_is_error(Yytable_value) \
632  YYID (0)
633 
634 static const yytype_int8 yycheck[] =
635 {
636  7, 10, 7, 12, 13, 14, 8, 9, 7, 16,
637  15, 3, 4, 5, 6, 10, 11, 10, 11, 0,
638  7, 7, 16, 11, 7, 16, 10, 7, 7, 11,
639  7, -1, 17
640 };
641 
642 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
643  symbol of state STATE-NUM. */
644 static const yytype_uint8 yystos[] =
645 {
646  0, 3, 4, 5, 6, 18, 7, 15, 0, 8,
647  9, 19, 19, 7, 7, 16, 22, 7, 16, 20,
648  10, 11, 23, 20, 10, 11, 21, 7, 10, 7,
649  10, 12, 13, 14, 11, 7, 11, 7
650 };
651 
652 #define yyerrok (yyerrstatus = 0)
653 #define yyclearin (yychar = YYEMPTY)
654 #define YYEMPTY (-2)
655 #define YYEOF 0
656 
657 #define YYACCEPT goto yyacceptlab
658 #define YYABORT goto yyabortlab
659 #define YYERROR goto yyerrorlab
660 
661 
662 /* Like YYERROR except do call yyerror. This remains here temporarily
663  to ease the transition to the new meaning of YYERROR, for GCC.
664  Once GCC version 2 has supplanted version 1, this can go. However,
665  YYFAIL appears to be in use. Nevertheless, it is formally deprecated
666  in Bison 2.4.2's NEWS entry, where a plan to phase it out is
667  discussed. */
668 
669 #define YYFAIL goto yyerrlab
670 #if defined YYFAIL
671  /* This is here to suppress warnings from the GCC cpp's
672  -Wunused-macros. Normally we don't worry about that warning, but
673  some users do, and we want to make it easy for users to remove
674  YYFAIL uses, which will produce warnings from Bison 2.5. */
675 #endif
676 
677 #define YYRECOVERING() (!!yyerrstatus)
678 
679 #define YYBACKUP(Token, Value) \
680 do \
681  if (yychar == YYEMPTY) \
682  { \
683  yychar = (Token); \
684  yylval = (Value); \
685  YYPOPSTACK (yylen); \
686  yystate = *yyssp; \
687  goto yybackup; \
688  } \
689  else \
690  { \
691  yyerror (YY_("syntax error: cannot back up")); \
692  YYERROR; \
693  } \
694 while (YYID (0))
695 
696 /* Error token number */
697 #define YYTERROR 1
698 #define YYERRCODE 256
699 
700 
701 /* This macro is provided for backward compatibility. */
702 #ifndef YY_LOCATION_PRINT
703 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
704 #endif
705 
706 
707 /* YYLEX -- calling `yylex' with the right arguments. */
708 #ifdef YYLEX_PARAM
709 # define YYLEX yylex (YYLEX_PARAM)
710 #else
711 # define YYLEX yylex ()
712 #endif
713 
714 /* Enable debugging if requested. */
715 #if YYDEBUG
716 
717 # ifndef YYFPRINTF
718 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
719 # define YYFPRINTF fprintf
720 # endif
721 
722 # define YYDPRINTF(Args) \
723 do { \
724  if (yydebug) \
725  YYFPRINTF Args; \
726 } while (YYID (0))
727 
728 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
729 do { \
730  if (yydebug) \
731  { \
732  YYFPRINTF (stderr, "%s ", Title); \
733  yy_symbol_print (stderr, \
734  Type, Value); \
735  YYFPRINTF (stderr, "\n"); \
736  } \
737 } while (YYID (0))
738 
739 
740 /*--------------------------------.
741 | Print this symbol on YYOUTPUT. |
742 `--------------------------------*/
743 
744 /*ARGSUSED*/
745 #if (defined __STDC__ || defined __C99__FUNC__ \
746  || defined __cplusplus || defined _MSC_VER)
747 static void
748 yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
749 #else
750 static void
751 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
752  FILE *yyoutput;
753  int yytype;
754  YYSTYPE const * const yyvaluep;
755 #endif
756 {
757  FILE *yyo = yyoutput;
758  YYUSE (yyo);
759  if (!yyvaluep)
760  return;
761 # ifdef YYPRINT
762  if (yytype < YYNTOKENS)
763  YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
764 # else
765  YYUSE (yyoutput);
766 # endif
767  switch (yytype)
768  {
769  default:
770  break;
771  }
772 }
773 
774 
775 /*--------------------------------.
776 | Print this symbol on YYOUTPUT. |
777 `--------------------------------*/
778 
779 #if (defined __STDC__ || defined __C99__FUNC__ \
780  || defined __cplusplus || defined _MSC_VER)
781 static void
782 yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
783 #else
784 static void
785 yy_symbol_print (yyoutput, yytype, yyvaluep)
786  FILE *yyoutput;
787  int yytype;
788  YYSTYPE const * const yyvaluep;
789 #endif
790 {
791  if (yytype < YYNTOKENS)
792  YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
793  else
794  YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
795 
796  yy_symbol_value_print (yyoutput, yytype, yyvaluep);
797  YYFPRINTF (yyoutput, ")");
798 }
799 
800 /*------------------------------------------------------------------.
801 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
802 | TOP (included). |
803 `------------------------------------------------------------------*/
804 
805 #if (defined __STDC__ || defined __C99__FUNC__ \
806  || defined __cplusplus || defined _MSC_VER)
807 static void
808 yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
809 #else
810 static void
811 yy_stack_print (yybottom, yytop)
812  yytype_int16 *yybottom;
813  yytype_int16 *yytop;
814 #endif
815 {
816  YYFPRINTF (stderr, "Stack now");
817  for (; yybottom <= yytop; yybottom++)
818  {
819  int yybot = *yybottom;
820  YYFPRINTF (stderr, " %d", yybot);
821  }
822  YYFPRINTF (stderr, "\n");
823 }
824 
825 # define YY_STACK_PRINT(Bottom, Top) \
826 do { \
827  if (yydebug) \
828  yy_stack_print ((Bottom), (Top)); \
829 } while (YYID (0))
830 
831 
832 /*------------------------------------------------.
833 | Report that the YYRULE is going to be reduced. |
834 `------------------------------------------------*/
835 
836 #if (defined __STDC__ || defined __C99__FUNC__ \
837  || defined __cplusplus || defined _MSC_VER)
838 static void
839 yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
840 #else
841 static void
842 yy_reduce_print (yyvsp, yyrule)
843  YYSTYPE *yyvsp;
844  int yyrule;
845 #endif
846 {
847  int yynrhs = yyr2[yyrule];
848  int yyi;
849  unsigned long int yylno = yyrline[yyrule];
850  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
851  yyrule - 1, yylno);
852  /* The symbols being reduced. */
853  for (yyi = 0; yyi < yynrhs; yyi++)
854  {
855  YYFPRINTF (stderr, " $%d = ", yyi + 1);
856  yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
857  &(yyvsp[(yyi + 1) - (yynrhs)])
858  );
859  YYFPRINTF (stderr, "\n");
860  }
861 }
862 
863 # define YY_REDUCE_PRINT(Rule) \
864 do { \
865  if (yydebug) \
866  yy_reduce_print (yyvsp, Rule); \
867 } while (YYID (0))
868 
869 /* Nonzero means print parse trace. It is left uninitialized so that
870  multiple parsers can coexist. */
871 int yydebug;
872 #else /* !YYDEBUG */
873 # define YYDPRINTF(Args)
874 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
875 # define YY_STACK_PRINT(Bottom, Top)
876 # define YY_REDUCE_PRINT(Rule)
877 #endif /* !YYDEBUG */
878 
879 
880 /* YYINITDEPTH -- initial size of the parser's stacks. */
881 #ifndef YYINITDEPTH
882 # define YYINITDEPTH 200
883 #endif
884 
885 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
886  if the built-in stack extension method is used).
887 
888  Do not make this value too large; the results are undefined if
889  YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
890  evaluated with infinite-precision integer arithmetic. */
891 
892 #ifndef YYMAXDEPTH
893 # define YYMAXDEPTH 10000
894 #endif
895 
896 
897 #if YYERROR_VERBOSE
898 
899 # ifndef yystrlen
900 # if defined __GLIBC__ && defined _STRING_H
901 # define yystrlen strlen
902 # else
903 /* Return the length of YYSTR. */
904 #if (defined __STDC__ || defined __C99__FUNC__ \
905  || defined __cplusplus || defined _MSC_VER)
906 static YYSIZE_T
907 yystrlen (const char *yystr)
908 #else
909 static YYSIZE_T
910 yystrlen (yystr)
911  const char *yystr;
912 #endif
913 {
914  YYSIZE_T yylen;
915  for (yylen = 0; yystr[yylen]; yylen++)
916  continue;
917  return yylen;
918 }
919 # endif
920 # endif
921 
922 # ifndef yystpcpy
923 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
924 # define yystpcpy stpcpy
925 # else
926 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
927  YYDEST. */
928 #if (defined __STDC__ || defined __C99__FUNC__ \
929  || defined __cplusplus || defined _MSC_VER)
930 static char *
931 yystpcpy (char *yydest, const char *yysrc)
932 #else
933 static char *
934 yystpcpy (yydest, yysrc)
935  char *yydest;
936  const char *yysrc;
937 #endif
938 {
939  char *yyd = yydest;
940  const char *yys = yysrc;
941 
942  while ((*yyd++ = *yys++) != '\0')
943  continue;
944 
945  return yyd - 1;
946 }
947 # endif
948 # endif
949 
950 # ifndef yytnamerr
951 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
952  quotes and backslashes, so that it's suitable for yyerror. The
953  heuristic is that double-quoting is unnecessary unless the string
954  contains an apostrophe, a comma, or backslash (other than
955  backslash-backslash). YYSTR is taken from yytname. If YYRES is
956  null, do not copy; instead, return the length of what the result
957  would have been. */
958 static YYSIZE_T
959 yytnamerr (char *yyres, const char *yystr)
960 {
961  if (*yystr == '"')
962  {
963  YYSIZE_T yyn = 0;
964  char const *yyp = yystr;
965 
966  for (;;)
967  switch (*++yyp)
968  {
969  case '\'':
970  case ',':
971  goto do_not_strip_quotes;
972 
973  case '\\':
974  if (*++yyp != '\\')
975  goto do_not_strip_quotes;
976  /* Fall through. */
977  default:
978  if (yyres)
979  yyres[yyn] = *yyp;
980  yyn++;
981  break;
982 
983  case '"':
984  if (yyres)
985  yyres[yyn] = '\0';
986  return yyn;
987  }
988  do_not_strip_quotes: ;
989  }
990 
991  if (! yyres)
992  return yystrlen (yystr);
993 
994  return yystpcpy (yyres, yystr) - yyres;
995 }
996 # endif
997 
998 /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
999  about the unexpected token YYTOKEN for the state stack whose top is
1000  YYSSP.
1001 
1002  Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
1003  not large enough to hold the message. In that case, also set
1004  *YYMSG_ALLOC to the required number of bytes. Return 2 if the
1005  required number of bytes is too large to store. */
1006 static int
1007 yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
1008  yytype_int16 *yyssp, int yytoken)
1009 {
1010  YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
1011  YYSIZE_T yysize = yysize0;
1012  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1013  /* Internationalized format string. */
1014  const char *yyformat = YY_NULL;
1015  /* Arguments of yyformat. */
1016  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1017  /* Number of reported tokens (one for the "unexpected", one per
1018  "expected"). */
1019  int yycount = 0;
1020 
1021  /* There are many possibilities here to consider:
1022  - Assume YYFAIL is not used. It's too flawed to consider. See
1023  <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
1024  for details. YYERROR is fine as it does not invoke this
1025  function.
1026  - If this state is a consistent state with a default action, then
1027  the only way this function was invoked is if the default action
1028  is an error action. In that case, don't check for expected
1029  tokens because there are none.
1030  - The only way there can be no lookahead present (in yychar) is if
1031  this state is a consistent state with a default action. Thus,
1032  detecting the absence of a lookahead is sufficient to determine
1033  that there is no unexpected or expected token to report. In that
1034  case, just report a simple "syntax error".
1035  - Don't assume there isn't a lookahead just because this state is a
1036  consistent state with a default action. There might have been a
1037  previous inconsistent state, consistent state with a non-default
1038  action, or user semantic action that manipulated yychar.
1039  - Of course, the expected token list depends on states to have
1040  correct lookahead information, and it depends on the parser not
1041  to perform extra reductions after fetching a lookahead from the
1042  scanner and before detecting a syntax error. Thus, state merging
1043  (from LALR or IELR) and default reductions corrupt the expected
1044  token list. However, the list is correct for canonical LR with
1045  one exception: it will still contain any token that will not be
1046  accepted due to an error action in a later state.
1047  */
1048  if (yytoken != YYEMPTY)
1049  {
1050  int yyn = yypact[*yyssp];
1051  yyarg[yycount++] = yytname[yytoken];
1052  if (!yypact_value_is_default (yyn))
1053  {
1054  /* Start YYX at -YYN if negative to avoid negative indexes in
1055  YYCHECK. In other words, skip the first -YYN actions for
1056  this state because they are default actions. */
1057  int yyxbegin = yyn < 0 ? -yyn : 0;
1058  /* Stay within bounds of both yycheck and yytname. */
1059  int yychecklim = YYLAST - yyn + 1;
1060  int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1061  int yyx;
1062 
1063  for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1064  if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
1065  && !yytable_value_is_error (yytable[yyx + yyn]))
1066  {
1067  if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1068  {
1069  yycount = 1;
1070  yysize = yysize0;
1071  break;
1072  }
1073  yyarg[yycount++] = yytname[yyx];
1074  {
1075  YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
1076  if (! (yysize <= yysize1
1077  && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
1078  return 2;
1079  yysize = yysize1;
1080  }
1081  }
1082  }
1083  }
1084 
1085  switch (yycount)
1086  {
1087 # define YYCASE_(N, S) \
1088  case N: \
1089  yyformat = S; \
1090  break
1091  YYCASE_(0, YY_("syntax error"));
1092  YYCASE_(1, YY_("syntax error, unexpected %s"));
1093  YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
1094  YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
1095  YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
1096  YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1097 # undef YYCASE_
1098  }
1099 
1100  {
1101  YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
1102  if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
1103  return 2;
1104  yysize = yysize1;
1105  }
1106 
1107  if (*yymsg_alloc < yysize)
1108  {
1109  *yymsg_alloc = 2 * yysize;
1110  if (! (yysize <= *yymsg_alloc
1111  && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
1112  *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
1113  return 1;
1114  }
1115 
1116  /* Avoid sprintf, as that infringes on the user's name space.
1117  Don't have undefined behavior even if the translation
1118  produced a string with the wrong number of "%s"s. */
1119  {
1120  char *yyp = *yymsg;
1121  int yyi = 0;
1122  while ((*yyp = *yyformat) != '\0')
1123  if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
1124  {
1125  yyp += yytnamerr (yyp, yyarg[yyi++]);
1126  yyformat += 2;
1127  }
1128  else
1129  {
1130  yyp++;
1131  yyformat++;
1132  }
1133  }
1134  return 0;
1135 }
1136 #endif /* YYERROR_VERBOSE */
1137 
1138 /*-----------------------------------------------.
1139 | Release the memory associated to this symbol. |
1140 `-----------------------------------------------*/
1141 
1142 /*ARGSUSED*/
1143 #if (defined __STDC__ || defined __C99__FUNC__ \
1144  || defined __cplusplus || defined _MSC_VER)
1145 static void
1146 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
1147 #else
1148 static void
1149 yydestruct (yymsg, yytype, yyvaluep)
1150  const char *yymsg;
1151  int yytype;
1153 #endif
1154 {
1155  YYUSE (yyvaluep);
1156 
1157  if (!yymsg)
1158  yymsg = "Deleting";
1159  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1160 
1161  switch (yytype)
1162  {
1163 
1164  default:
1165  break;
1166  }
1167 }
1168 
1169 
1170 
1171 
1172 /* The lookahead symbol. */
1174 
1175 
1176 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1177 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1178 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
1179 #endif
1180 #ifndef YY_INITIAL_VALUE
1181 # define YY_INITIAL_VALUE(Value) /* Nothing. */
1182 #endif
1183 
1184 /* The semantic value of the lookahead symbol. */
1186 
1187 /* Number of syntax errors so far. */
1189 
1190 
1191 /*----------.
1192 | yyparse. |
1193 `----------*/
1194 
1195 #ifdef YYPARSE_PARAM
1196 #if (defined __STDC__ || defined __C99__FUNC__ \
1197  || defined __cplusplus || defined _MSC_VER)
1198 int
1199 yyparse (void *YYPARSE_PARAM)
1200 #else
1201 int
1202 yyparse (YYPARSE_PARAM)
1203  void *YYPARSE_PARAM;
1204 #endif
1205 #else /* ! YYPARSE_PARAM */
1206 #if (defined __STDC__ || defined __C99__FUNC__ \
1207  || defined __cplusplus || defined _MSC_VER)
1208 int
1209 yyparse (void)
1210 #else
1211 int
1213 
1214 #endif
1215 #endif
1216 {
1217  int yystate;
1218  /* Number of tokens to shift before error messages enabled. */
1219  int yyerrstatus;
1220 
1221  /* The stacks and their tools:
1222  `yyss': related to states.
1223  `yyvs': related to semantic values.
1224 
1225  Refer to the stacks through separate pointers, to allow yyoverflow
1226  to reallocate them elsewhere. */
1227 
1228  /* The state stack. */
1229  yytype_int16 yyssa[YYINITDEPTH];
1230  yytype_int16 *yyss;
1231  yytype_int16 *yyssp;
1232 
1233  /* The semantic value stack. */
1234  YYSTYPE yyvsa[YYINITDEPTH];
1235  YYSTYPE *yyvs;
1236  YYSTYPE *yyvsp;
1237 
1238  YYSIZE_T yystacksize;
1239 
1240  int yyn;
1241  int yyresult;
1242  /* Lookahead token as an internal (translated) token number. */
1243  int yytoken = 0;
1244  /* The variables used to return semantic value and location from the
1245  action routines. */
1246  YYSTYPE yyval;
1247 
1248 #if YYERROR_VERBOSE
1249  /* Buffer for error messages, and its allocated size. */
1250  char yymsgbuf[128];
1251  char *yymsg = yymsgbuf;
1252  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1253 #endif
1254 
1255 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1256 
1257  /* The number of symbols on the RHS of the reduced rule.
1258  Keep to zero when no symbol should be popped. */
1259  int yylen = 0;
1260 
1261  yyssp = yyss = yyssa;
1262  yyvsp = yyvs = yyvsa;
1263  yystacksize = YYINITDEPTH;
1264 
1265  YYDPRINTF ((stderr, "Starting parse\n"));
1266 
1267  yystate = 0;
1268  yyerrstatus = 0;
1269  yynerrs = 0;
1270  yychar = YYEMPTY; /* Cause a token to be read. */
1271  goto yysetstate;
1272 
1273 /*------------------------------------------------------------.
1274 | yynewstate -- Push a new state, which is found in yystate. |
1275 `------------------------------------------------------------*/
1276  yynewstate:
1277  /* In all cases, when you get here, the value and location stacks
1278  have just been pushed. So pushing a state here evens the stacks. */
1279  yyssp++;
1280 
1281  yysetstate:
1282  *yyssp = yystate;
1283 
1284  if (yyss + yystacksize - 1 <= yyssp)
1285  {
1286  /* Get the current used size of the three stacks, in elements. */
1287  YYSIZE_T yysize = yyssp - yyss + 1;
1288 
1289 #ifdef yyoverflow
1290  {
1291  /* Give user a chance to reallocate the stack. Use copies of
1292  these so that the &'s don't force the real ones into
1293  memory. */
1294  YYSTYPE *yyvs1 = yyvs;
1295  yytype_int16 *yyss1 = yyss;
1296 
1297  /* Each stack pointer address is followed by the size of the
1298  data in use in that stack, in bytes. This used to be a
1299  conditional around just the two extra args, but that might
1300  be undefined if yyoverflow is a macro. */
1301  yyoverflow (YY_("memory exhausted"),
1302  &yyss1, yysize * sizeof (*yyssp),
1303  &yyvs1, yysize * sizeof (*yyvsp),
1304  &yystacksize);
1305 
1306  yyss = yyss1;
1307  yyvs = yyvs1;
1308  }
1309 #else /* no yyoverflow */
1310 # ifndef YYSTACK_RELOCATE
1311  goto yyexhaustedlab;
1312 # else
1313  /* Extend the stack our own way. */
1314  if (YYMAXDEPTH <= yystacksize)
1315  goto yyexhaustedlab;
1316  yystacksize *= 2;
1317  if (YYMAXDEPTH < yystacksize)
1318  yystacksize = YYMAXDEPTH;
1319 
1320  {
1321  yytype_int16 *yyss1 = yyss;
1322  union yyalloc *yyptr =
1323  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1324  if (! yyptr)
1325  goto yyexhaustedlab;
1326  YYSTACK_RELOCATE (yyss_alloc, yyss);
1327  YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1328 # undef YYSTACK_RELOCATE
1329  if (yyss1 != yyssa)
1330  YYSTACK_FREE (yyss1);
1331  }
1332 # endif
1333 #endif /* no yyoverflow */
1334 
1335  yyssp = yyss + yysize - 1;
1336  yyvsp = yyvs + yysize - 1;
1337 
1338  YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1339  (unsigned long int) yystacksize));
1340 
1341  if (yyss + yystacksize - 1 <= yyssp)
1342  YYABORT;
1343  }
1344 
1345  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1346 
1347  if (yystate == YYFINAL)
1348  YYACCEPT;
1349 
1350  goto yybackup;
1351 
1352 /*-----------.
1353 | yybackup. |
1354 `-----------*/
1355 yybackup:
1356 
1357  /* Do appropriate processing given the current state. Read a
1358  lookahead token if we need one and don't already have one. */
1359 
1360  /* First try to decide what to do without reference to lookahead token. */
1361  yyn = yypact[yystate];
1362  if (yypact_value_is_default (yyn))
1363  goto yydefault;
1364 
1365  /* Not known => get a lookahead token if don't already have one. */
1366 
1367  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
1368  if (yychar == YYEMPTY)
1369  {
1370  YYDPRINTF ((stderr, "Reading a token: "));
1371  yychar = YYLEX;
1372  }
1373 
1374  if (yychar <= YYEOF)
1375  {
1376  yychar = yytoken = YYEOF;
1377  YYDPRINTF ((stderr, "Now at end of input.\n"));
1378  }
1379  else
1380  {
1381  yytoken = YYTRANSLATE (yychar);
1382  YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1383  }
1384 
1385  /* If the proper action on seeing token YYTOKEN is to reduce or to
1386  detect an error, take that action. */
1387  yyn += yytoken;
1388  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1389  goto yydefault;
1390  yyn = yytable[yyn];
1391  if (yyn <= 0)
1392  {
1393  if (yytable_value_is_error (yyn))
1394  goto yyerrlab;
1395  yyn = -yyn;
1396  goto yyreduce;
1397  }
1398 
1399  /* Count tokens shifted since error; after three, turn off error
1400  status. */
1401  if (yyerrstatus)
1402  yyerrstatus--;
1403 
1404  /* Shift the lookahead token. */
1405  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1406 
1407  /* Discard the shifted token. */
1408  yychar = YYEMPTY;
1409 
1410  yystate = yyn;
1412  *++yyvsp = yylval;
1414 
1415  goto yynewstate;
1416 
1417 
1418 /*-----------------------------------------------------------.
1419 | yydefault -- do the default action for the current state. |
1420 `-----------------------------------------------------------*/
1421 yydefault:
1422  yyn = yydefact[yystate];
1423  if (yyn == 0)
1424  goto yyerrlab;
1425  goto yyreduce;
1426 
1427 
1428 /*-----------------------------.
1429 | yyreduce -- Do a reduction. |
1430 `-----------------------------*/
1431 yyreduce:
1432  /* yyn is the number of a rule to reduce with. */
1433  yylen = yyr2[yyn];
1434 
1435  /* If YYLEN is nonzero, implement the default value of the action:
1436  `$$ = $1'.
1437 
1438  Otherwise, the following line sets YYVAL to garbage.
1439  This behavior is undocumented and Bison
1440  users should not rely upon it. Assigning to YYVAL
1441  unconditionally makes the parser a bit smaller, and it avoids a
1442  GCC warning that YYVAL may be used uninitialized. */
1443  yyval = yyvsp[1-yylen];
1444 
1445 
1446  YY_REDUCE_PRINT (yyn);
1447  switch (yyn)
1448  {
1449  case 2:
1450 /* Line 1792 of yacc.c */
1451 #line 96 "./extensions/hostemu/cmdparse.ypp"
1452  {
1455  /* if constant is not a numeric string we have an error */
1456  if (isnumeric ((yyvsp[(2) - (3)].strval)))
1457  ExecIO_Options.lRcdCnt = atoi ((yyvsp[(2) - (3)].strval));
1458  else
1459  return 1;
1460  }
1461  break;
1462 
1463  case 3:
1464 /* Line 1792 of yacc.c */
1465 #line 106 "./extensions/hostemu/cmdparse.ypp"
1466  {
1469  ExecIO_Options.lRcdCnt = -1;
1470  }
1471  break;
1472 
1473  case 4:
1474 /* Line 1792 of yacc.c */
1475 #line 112 "./extensions/hostemu/cmdparse.ypp"
1476  {
1477  lStmtType = HI_STMT;
1478  }
1479  break;
1480 
1481  case 5:
1482 /* Line 1792 of yacc.c */
1483 #line 116 "./extensions/hostemu/cmdparse.ypp"
1484  {
1485  lStmtType = TE_STMT;
1486  }
1487  break;
1488 
1489  case 6:
1490 /* Line 1792 of yacc.c */
1491 #line 120 "./extensions/hostemu/cmdparse.ypp"
1492  {
1493  lStmtType = TS_STMT;
1494  }
1495  break;
1496 
1497  case 7:
1498 /* Line 1792 of yacc.c */
1499 #line 126 "./extensions/hostemu/cmdparse.ypp"
1500  {
1501  ExecIO_Options.fRW = true;
1502  strcpy (ExecIO_Options.aFilename, (yyvsp[(2) - (3)].strval));
1503  }
1504  break;
1505 
1506  case 8:
1507 /* Line 1792 of yacc.c */
1508 #line 131 "./extensions/hostemu/cmdparse.ypp"
1509  {
1510  ExecIO_Options.fRW = false;
1511  strcpy (ExecIO_Options.aFilename, (yyvsp[(2) - (3)].strval));
1512  }
1513  break;
1514 
1515  case 9:
1516 /* Line 1792 of yacc.c */
1517 #line 136 "./extensions/hostemu/cmdparse.ypp"
1518  {
1519  ExecIO_Options.fRW = false;
1520  strcpy (ExecIO_Options.aFilename, (yyvsp[(2) - (4)].strval));
1521  /* if constant is not a numeric string we have an error */
1522  if (isnumeric ((yyvsp[(3) - (4)].strval)))
1523  ExecIO_Options.lStartRcd = atoi ((yyvsp[(3) - (4)].strval));
1524  else
1525  return 1;
1526  }
1527  break;
1528 
1529  case 12:
1530 /* Line 1792 of yacc.c */
1531 #line 152 "./extensions/hostemu/cmdparse.ypp"
1532  {
1533  ExecIO_Options.fFinis = true;
1534  }
1535  break;
1536 
1537  case 13:
1538 /* Line 1792 of yacc.c */
1539 #line 156 "./extensions/hostemu/cmdparse.ypp"
1540  {
1541  ExecIO_Options.fFinis = false;
1542  }
1543  break;
1544 
1545  case 14:
1546 /* Line 1792 of yacc.c */
1547 #line 160 "./extensions/hostemu/cmdparse.ypp"
1548  {
1549  ExecIO_Options.fFinis = true;
1551  }
1552  break;
1553 
1554  case 15:
1555 /* Line 1792 of yacc.c */
1556 #line 165 "./extensions/hostemu/cmdparse.ypp"
1557  {
1558  ExecIO_Options.fFinis = true;
1560  }
1561  break;
1562 
1563  case 16:
1564 /* Line 1792 of yacc.c */
1565 #line 170 "./extensions/hostemu/cmdparse.ypp"
1566  {
1567  strcpy (ExecIO_Options.aStem, (yyvsp[(2) - (2)].strval));
1568  }
1569  break;
1570 
1571  case 17:
1572 /* Line 1792 of yacc.c */
1573 #line 174 "./extensions/hostemu/cmdparse.ypp"
1574  {
1575  strcpy (ExecIO_Options.aStem, (yyvsp[(2) - (3)].strval));
1576  ExecIO_Options.fFinis = true;
1577  }
1578  break;
1579 
1580  case 18:
1581 /* Line 1792 of yacc.c */
1582 #line 179 "./extensions/hostemu/cmdparse.ypp"
1583  {
1584  strcpy (ExecIO_Options.aStem, (yyvsp[(3) - (3)].strval));
1585  ExecIO_Options.fFinis = true;
1586  }
1587  break;
1588 
1589  case 22:
1590 /* Line 1792 of yacc.c */
1591 #line 191 "./extensions/hostemu/cmdparse.ypp"
1592  {
1593  ExecIO_Options.fFinis = true;
1594  }
1595  break;
1596 
1597  case 23:
1598 /* Line 1792 of yacc.c */
1599 #line 195 "./extensions/hostemu/cmdparse.ypp"
1600  {
1601  strcpy (ExecIO_Options.aStem, (yyvsp[(2) - (2)].strval));
1602  }
1603  break;
1604 
1605  case 24:
1606 /* Line 1792 of yacc.c */
1607 #line 199 "./extensions/hostemu/cmdparse.ypp"
1608  {
1609  strcpy (ExecIO_Options.aStem, (yyvsp[(2) - (3)].strval));
1610  ExecIO_Options.fFinis = true;
1611  }
1612  break;
1613 
1614  case 25:
1615 /* Line 1792 of yacc.c */
1616 #line 204 "./extensions/hostemu/cmdparse.ypp"
1617  {
1618  strcpy (ExecIO_Options.aStem, (yyvsp[(3) - (3)].strval));
1619  ExecIO_Options.fFinis = true;
1620  }
1621  break;
1622 
1623 
1624 /* Line 1792 of yacc.c */
1625 #line 1626 "cmdparse.cpp"
1626  default: break;
1627  }
1628  /* User semantic actions sometimes alter yychar, and that requires
1629  that yytoken be updated with the new translation. We take the
1630  approach of translating immediately before every use of yytoken.
1631  One alternative is translating here after every semantic action,
1632  but that translation would be missed if the semantic action invokes
1633  YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
1634  if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
1635  incorrect destructor might then be invoked immediately. In the
1636  case of YYERROR or YYBACKUP, subsequent parser actions might lead
1637  to an incorrect destructor call or verbose syntax error message
1638  before the lookahead is translated. */
1639  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
1640 
1641  YYPOPSTACK (yylen);
1642  yylen = 0;
1643  YY_STACK_PRINT (yyss, yyssp);
1644 
1645  *++yyvsp = yyval;
1646 
1647  /* Now `shift' the result of the reduction. Determine what state
1648  that goes to, based on the state we popped back to and the rule
1649  number reduced by. */
1650 
1651  yyn = yyr1[yyn];
1652 
1653  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
1654  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
1655  yystate = yytable[yystate];
1656  else
1657  yystate = yydefgoto[yyn - YYNTOKENS];
1658 
1659  goto yynewstate;
1660 
1661 
1662 /*------------------------------------.
1663 | yyerrlab -- here on detecting error |
1664 `------------------------------------*/
1665 yyerrlab:
1666  /* Make sure we have latest lookahead translation. See comments at
1667  user semantic actions for why this is necessary. */
1668  yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
1669 
1670  /* If not already recovering from an error, report this error. */
1671  if (!yyerrstatus)
1672  {
1673  ++yynerrs;
1674 #if ! YYERROR_VERBOSE
1675  yyerror (YY_("syntax error"));
1676 #else
1677 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
1678  yyssp, yytoken)
1679  {
1680  char const *yymsgp = YY_("syntax error");
1681  int yysyntax_error_status;
1682  yysyntax_error_status = YYSYNTAX_ERROR;
1683  if (yysyntax_error_status == 0)
1684  yymsgp = yymsg;
1685  else if (yysyntax_error_status == 1)
1686  {
1687  if (yymsg != yymsgbuf)
1688  YYSTACK_FREE (yymsg);
1689  yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
1690  if (!yymsg)
1691  {
1692  yymsg = yymsgbuf;
1693  yymsg_alloc = sizeof yymsgbuf;
1694  yysyntax_error_status = 2;
1695  }
1696  else
1697  {
1698  yysyntax_error_status = YYSYNTAX_ERROR;
1699  yymsgp = yymsg;
1700  }
1701  }
1702  yyerror (yymsgp);
1703  if (yysyntax_error_status == 2)
1704  goto yyexhaustedlab;
1705  }
1706 # undef YYSYNTAX_ERROR
1707 #endif
1708  }
1709 
1710 
1711 
1712  if (yyerrstatus == 3)
1713  {
1714  /* If just tried and failed to reuse lookahead token after an
1715  error, discard it. */
1716 
1717  if (yychar <= YYEOF)
1718  {
1719  /* Return failure if at end of input. */
1720  if (yychar == YYEOF)
1721  YYABORT;
1722  }
1723  else
1724  {
1725  yydestruct ("Error: discarding",
1726  yytoken, &yylval);
1727  yychar = YYEMPTY;
1728  }
1729  }
1730 
1731  /* Else will try to reuse lookahead token after shifting the error
1732  token. */
1733  goto yyerrlab1;
1734 
1735 
1736 /*---------------------------------------------------.
1737 | yyerrorlab -- error raised explicitly by YYERROR. |
1738 `---------------------------------------------------*/
1739 yyerrorlab:
1740 
1741  /* Pacify compilers like GCC when the user code never invokes
1742  YYERROR and the label yyerrorlab therefore never appears in user
1743  code. */
1744  if (/*CONSTCOND*/ 0)
1745  goto yyerrorlab;
1746 
1747  /* Do not reclaim the symbols of the rule which action triggered
1748  this YYERROR. */
1749  YYPOPSTACK (yylen);
1750  yylen = 0;
1751  YY_STACK_PRINT (yyss, yyssp);
1752  yystate = *yyssp;
1753  goto yyerrlab1;
1754 
1755 
1756 /*-------------------------------------------------------------.
1757 | yyerrlab1 -- common code for both syntax error and YYERROR. |
1758 `-------------------------------------------------------------*/
1759 yyerrlab1:
1760  yyerrstatus = 3; /* Each real token shifted decrements this. */
1761 
1762  for (;;)
1763  {
1764  yyn = yypact[yystate];
1765  if (!yypact_value_is_default (yyn))
1766  {
1767  yyn += YYTERROR;
1768  if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
1769  {
1770  yyn = yytable[yyn];
1771  if (0 < yyn)
1772  break;
1773  }
1774  }
1775 
1776  /* Pop the current state because it cannot handle the error token. */
1777  if (yyssp == yyss)
1778  YYABORT;
1779 
1780 
1781  yydestruct ("Error: popping",
1782  yystos[yystate], yyvsp);
1783  YYPOPSTACK (1);
1784  yystate = *yyssp;
1785  YY_STACK_PRINT (yyss, yyssp);
1786  }
1787 
1789  *++yyvsp = yylval;
1791 
1792 
1793  /* Shift the error token. */
1794  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
1795 
1796  yystate = yyn;
1797  goto yynewstate;
1798 
1799 
1800 /*-------------------------------------.
1801 | yyacceptlab -- YYACCEPT comes here. |
1802 `-------------------------------------*/
1803 yyacceptlab:
1804  yyresult = 0;
1805  goto yyreturn;
1806 
1807 /*-----------------------------------.
1808 | yyabortlab -- YYABORT comes here. |
1809 `-----------------------------------*/
1810 yyabortlab:
1811  yyresult = 1;
1812  goto yyreturn;
1813 
1814 #if !defined yyoverflow || YYERROR_VERBOSE
1815 /*-------------------------------------------------.
1816 | yyexhaustedlab -- memory exhaustion comes here. |
1817 `-------------------------------------------------*/
1818 yyexhaustedlab:
1819  yyerror (YY_("memory exhausted"));
1820  yyresult = 2;
1821  /* Fall through. */
1822 #endif
1823 
1824 yyreturn:
1825  if (yychar != YYEMPTY)
1826  {
1827  /* Make sure we have latest lookahead translation. See comments at
1828  user semantic actions for why this is necessary. */
1829  yytoken = YYTRANSLATE (yychar);
1830  yydestruct ("Cleanup: discarding lookahead",
1831  yytoken, &yylval);
1832  }
1833  /* Do not reclaim the symbols of the rule which action triggered
1834  this YYABORT or YYACCEPT. */
1835  YYPOPSTACK (yylen);
1836  YY_STACK_PRINT (yyss, yyssp);
1837  while (yyssp != yyss)
1838  {
1839  yydestruct ("Cleanup: popping",
1840  yystos[*yyssp], yyvsp);
1841  YYPOPSTACK (1);
1842  }
1843 #ifndef yyoverflow
1844  if (yyss != yyssa)
1845  YYSTACK_FREE (yyss);
1846 #endif
1847 #if YYERROR_VERBOSE
1848  if (yymsg != yymsgbuf)
1849  YYSTACK_FREE (yymsg);
1850 #endif
1851  /* Make sure YYID is used. */
1852  return YYID (yyresult);
1853 }
1854 
1855 
1856 /* Line 2055 of yacc.c */
1857 #line 210 "./extensions/hostemu/cmdparse.ypp"
1858 
1859 
1860 
1861 /*--------------------------------------------------------------------*/
1862 /* */
1863 /* yylex () - lexical analyzer. */
1864 /* */
1865 /*--------------------------------------------------------------------*/
1866 
1867 int yylex (
1868  void) /* no arguments */
1869  {
1870 
1871  /* local function variables */
1872  int tktype, idx = 0;
1873  static char token [1024];
1874 
1875  while (*(prxCmd -> strptr + lCmdPtr) == ' ' ||
1876  *(prxCmd -> strptr + lCmdPtr) == '\t')
1877  lCmdPtr++;
1878  if (*(prxCmd -> strptr + lCmdPtr) == '\0')
1879  return 0;
1880  if (*(prxCmd -> strptr + lCmdPtr) == '*')
1881  {
1882  lCmdPtr++;
1883  return '*';
1884  }
1885  else if (*(prxCmd -> strptr + lCmdPtr) == '(')
1886  {
1887  lCmdPtr++;
1888  return '(';
1889  }
1890  else if (*(prxCmd -> strptr + lCmdPtr) == '\"')
1891  {
1892  lCmdPtr++;
1893  while (*(prxCmd -> strptr + lCmdPtr) != '\"')
1894  {
1895  if (*(prxCmd -> strptr + lCmdPtr) == '\0')
1896  return 0;
1897  if (idx == 1024)
1898  return 0;
1899  token[idx] = *(prxCmd -> strptr + lCmdPtr);
1900  lCmdPtr++;
1901  idx++;
1902  }
1903  token[idx] = '\0';
1904  lCmdPtr++;
1905  /* insert it into our symbol table */
1906  if (ulNumSym == SYMTABLESIZE)
1907  return 0;
1908  pszSymbol[ulNumSym] = (char *)malloc(strlen (token) + 1);
1909  strcpy (pszSymbol[ulNumSym], token);
1911  ulNumSym++;
1912  return CONSTANT;
1913  }
1914  else if (isalpha (*(prxCmd -> strptr + lCmdPtr)) ||
1915  isdigit (*(prxCmd -> strptr + lCmdPtr)) ||
1916  *(prxCmd -> strptr + lCmdPtr) == '\\')
1917  {
1918  while (*(prxCmd -> strptr + lCmdPtr) != ' ' &&
1919  *(prxCmd -> strptr + lCmdPtr) != '\0')
1920  {
1921  if (idx == 1024)
1922  return 0;
1923  token[idx] = *(prxCmd -> strptr + lCmdPtr);
1924  lCmdPtr++;
1925  idx++;
1926  }
1927  token[idx] = '\0';
1928  /* insert it into our symbol table */
1929  if (ulNumSym == SYMTABLESIZE)
1930  return 0;
1931  pszSymbol[ulNumSym] = (char *)malloc(strlen (token) + 1);
1932  strcpy (pszSymbol[ulNumSym], token);
1934  ulNumSym++;
1935  return kwsearch (token);
1936  }
1937  return 0;
1938  }
1939 
1940 
1941 /*--------------------------------------------------------------------*/
1942 /* */
1943 /* yyerror () - error handler. */
1944 /* */
1945 /*--------------------------------------------------------------------*/
1946 
1947 void yyerror (
1948  char * token) /* token string */
1949  {
1950 
1951  fprintf (stderr, "Token \"%s\"\n", token);
1952  return;
1953  }
1954 
1955 
1956 /*--------------------------------------------------------------------*/
1957 /* */
1958 /* Keyword table */
1959 /* */
1960 /*--------------------------------------------------------------------*/
1961 
1962 static struct
1963  {
1964  const char * kw;
1965  int type;
1966  } kwtable [] = {
1967  "HI", HI,
1968  "TE", TE,
1969  "TS", TS,
1970  "EXECIO", EXECIO,
1971  "DISKW", DISKW,
1972  "DISKR", DISKR,
1973  "STEM", STEM,
1974  "FINIS", FINIS,
1975  "FIFO", FIFO,
1976  "LIFO", LIFO,
1977  "SKIP", SKIP,
1978  "eot", EOF
1979  };
1980 
1981 
1982 /*--------------------------------------------------------------------*/
1983 /* */
1984 /* kwsearch () - search for keywords. */
1985 /* */
1986 /*--------------------------------------------------------------------*/
1987 
1989  char * token) /* token string */
1990  {
1991 
1992  /* local function variables */
1993  int i;
1994  char *utoken, *uutoken;
1995 
1996  utoken = strdup(token);
1997  uutoken = utoken;
1998  while (*uutoken != '\0')
1999  {
2000  *uutoken = toupper(*uutoken);
2001  uutoken++;
2002  }
2003  for (i = 0; kwtable[i].type != EOF; i++)
2004  if (strcmp(utoken, kwtable[i].kw) == 0)
2005  {
2006  free(utoken);
2007  return kwtable[i].type;
2008  }
2009  free(utoken);
2010  return CONSTANT;
2011  }
2012 
2013 
2014 /*--------------------------------------------------------------------*/
2015 /* */
2016 /* isnumeric () - is a string numeric? */
2017 /* */
2018 /*--------------------------------------------------------------------*/
2019 
2021  char * token) /* token string */
2022  {
2023 
2024  /* local function variables */
2025  int i;
2026 
2027  for (i = 0; i < strlen (token); i++)
2028  if (!isdigit(*(token + i)))
2029  return false;
2030  return true;
2031  }
2032 
yytokentype
yytokentype
Definition: cmdparse.cpp:172
yynerrs
int yynerrs
Definition: cmdparse.cpp:1188
TE
#define TE
Definition: cmdparse.cpp:190
YYINITDEPTH
#define YYINITDEPTH
Definition: cmdparse.cpp:882
YYEMPTY
#define YYEMPTY
Definition: cmdparse.cpp:654
FIFO
#define FIFO
Definition: cmdparse.cpp:198
yychar
int yychar
Definition: cmdparse.cpp:1173
yytable
static const yytype_uint8 yytable[]
Definition: cmdparse.cpp:620
rexx.h
prxCmd
PCONSTRXSTRING prxCmd
Definition: hostemu.cpp:62
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
Definition: cmdparse.cpp:1177
SKIP
#define SKIP
Definition: cmdparse.cpp:199
YYEOF
#define YYEOF
Definition: cmdparse.cpp:655
type
int type
Definition: cmdparse.cpp:1965
YYACCEPT
#define YYACCEPT
Definition: cmdparse.cpp:657
_EXECIO_OPTIONS::fRW
bool fRW
Definition: hostemu.h:76
kwsearch
int kwsearch(char *token)
Definition: cmdparse.cpp:1988
_EXECIO_OPTIONS::aFilename
char aFilename[1024]
Definition: hostemu.h:77
yylval
YYSTYPE yylval
Definition: cmdparse.cpp:1185
YYSTACK_ALLOC
#define YYSTACK_ALLOC
Definition: cmdparse.cpp:368
yydefact
static const yytype_uint8 yydefact[]
Definition: cmdparse.cpp:585
YYTRANSLATE
#define YYTRANSLATE(YYX)
Definition: cmdparse.cpp:477
YYID
#define YYID(N)
Definition: cmdparse.cpp:312
EXECIO_STMT
#define EXECIO_STMT
Definition: hostemu.h:69
YYSTYPE
union YYSTYPE YYSTYPE
TS
#define TS
Definition: cmdparse.cpp:191
yyr2
static const yytype_uint8 yyr2[]
Definition: cmdparse.cpp:575
YYSTACK_RELOCATE
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
Definition: cmdparse.cpp:426
yyvaluep
YYSTYPE * yyvaluep
Definition: cmdparse.cpp:1152
YY_INITIAL_VALUE
#define YY_INITIAL_VALUE(Value)
Definition: cmdparse.cpp:1181
yydestruct
static void yydestruct(yymsg, yytype, yyvaluep) const char *yymsg
kwtable
static struct @1 kwtable[]
_EXECIO_OPTIONS::lDirection
long lDirection
Definition: hostemu.h:81
HI_STMT
#define HI_STMT
Definition: hostemu.h:70
YYSIZE_T
#define YYSIZE_T
Definition: cmdparse.cpp:285
yylex
int yylex(void)
Definition: cmdparse.cpp:1867
yyalloc::yyss_alloc
yytype_int16 yyss_alloc
Definition: cmdparse.cpp:406
_EXECIO_OPTIONS::lStartRcd
long lStartRcd
Definition: hostemu.h:80
HI
#define HI
Definition: cmdparse.cpp:189
_EXECIO_OPTIONS::lRcdCnt
long lRcdCnt
Definition: hostemu.h:75
kw
const char * kw
Definition: cmdparse.cpp:1964
YYMAXDEPTH
#define YYMAXDEPTH
Definition: cmdparse.cpp:893
lCmdPtr
long lCmdPtr
Definition: hostemu.cpp:64
CONSTANT
#define CONSTANT
Definition: cmdparse.cpp:192
yycheck
static const yytype_int8 yycheck[]
Definition: cmdparse.cpp:634
yypact
static const yytype_int8 yypact[]
Definition: cmdparse.cpp:602
YYLAST
#define YYLAST
Definition: cmdparse.cpp:462
YYSTYPE::numval
int numval
Definition: cmdparse.cpp:209
yytype_uint8
unsigned char yytype_uint8
Definition: cmdparse.cpp:251
YYSTACK_FREE
#define YYSTACK_FREE
Definition: cmdparse.cpp:369
TE_STMT
#define TE_STMT
Definition: hostemu.h:71
yytype
int yytype
Definition: cmdparse.cpp:1151
YYSTACK_BYTES
#define YYSTACK_BYTES(N)
Definition: cmdparse.cpp:415
YY_SYMBOL_PRINT
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
Definition: cmdparse.cpp:874
YYSTYPE
Definition: cmdparse.cpp:204
FINIS
#define FINIS
Definition: cmdparse.cpp:196
YY_STACK_PRINT
#define YY_STACK_PRINT(Bottom, Top)
Definition: cmdparse.cpp:875
TS_STMT
#define TS_STMT
Definition: hostemu.h:72
yyerror
void yyerror(char *token)
Definition: cmdparse.cpp:1947
yytable_value_is_error
#define yytable_value_is_error(Yytable_value)
Definition: cmdparse.cpp:631
yyparse
int yyparse()
Definition: cmdparse.cpp:1212
yyalloc::yyvs_alloc
YYSTYPE yyvs_alloc
Definition: cmdparse.cpp:407
yytranslate
static const yytype_uint8 yytranslate[]
Definition: cmdparse.cpp:481
yydefgoto
static const yytype_int8 yydefgoto[]
Definition: cmdparse.cpp:594
lStmtType
long lStmtType
Definition: hostemu.cpp:68
EXECIO
#define EXECIO
Definition: cmdparse.cpp:188
YY_
#define YY_(Msgid)
Definition: cmdparse.cpp:299
isnumeric
bool isnumeric(char *token)
Definition: cmdparse.cpp:2020
YY_IGNORE_MAYBE_UNINITIALIZED_END
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
Definition: cmdparse.cpp:1178
YYPOPSTACK
#define YYPOPSTACK(N)
yytype_int16
short int yytype_int16
Definition: cmdparse.cpp:272
YYABORT
#define YYABORT
Definition: cmdparse.cpp:658
yytype_uint16
unsigned short int yytype_uint16
Definition: cmdparse.cpp:266
hostemu.h
SYMTABLESIZE
#define SYMTABLESIZE
Definition: hostemu.h:68
yystos
static const yytype_uint8 yystos[]
Definition: cmdparse.cpp:644
YYUSE
#define YYUSE(E)
Definition: cmdparse.cpp:305
YYFINAL
#define YYFINAL
Definition: cmdparse.cpp:460
YY_NULL
#define YY_NULL
Definition: cmdparse.cpp:146
yyalloc
Definition: cmdparse.cpp:404
DISKW
#define DISKW
Definition: cmdparse.cpp:193
STEM
#define STEM
Definition: cmdparse.cpp:195
YYTERROR
#define YYTERROR
Definition: cmdparse.cpp:697
yypgoto
static const yytype_int8 yypgoto[]
Definition: cmdparse.cpp:611
YY_REDUCE_PRINT
#define YY_REDUCE_PRINT(Rule)
Definition: cmdparse.cpp:876
DISKR
#define DISKR
Definition: cmdparse.cpp:194
yyr1
static const yytype_uint8 yyr1[]
Definition: cmdparse.cpp:567
ulNumSym
unsigned long ulNumSym
Definition: hostemu.cpp:65
YYDPRINTF
#define YYDPRINTF(Args)
Definition: cmdparse.cpp:873
pszSymbol
char * pszSymbol[15]
Definition: hostemu.cpp:66
YYLEX
#define YYLEX
Definition: cmdparse.cpp:711
ExecIO_Options
EXECIO_OPTIONS ExecIO_Options
Definition: hostemu.cpp:63
YYSTYPE::strval
char * strval
Definition: cmdparse.cpp:210
LIFO
#define LIFO
Definition: cmdparse.cpp:197
_EXECIO_OPTIONS::aStem
char aStem[251]
Definition: hostemu.h:78
YYNTOKENS
#define YYNTOKENS
Definition: cmdparse.cpp:465
yypact_value_is_default
#define yypact_value_is_default(Yystate)
Definition: cmdparse.cpp:628
yytype_int8
short int yytype_int8
Definition: cmdparse.cpp:260
YYSTACK_ALLOC_MAXIMUM
#define YYSTACK_ALLOC_MAXIMUM
Definition: cmdparse.cpp:371
_EXECIO_OPTIONS::fFinis
bool fFinis
Definition: hostemu.h:79