cmdparse.cpp File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <rexx.h>
#include "hostemu.h"
Include dependency graph for cmdparse.cpp:

Go to the source code of this file.

Classes

union  YYSTYPE
 

Macros

#define YYBYACC   1
 
#define YYMAJOR   1
 
#define YYMINOR   9
 
#define YYPATCH   20070509
 
#define YYEMPTY   (-1)
 
#define yyclearin   (yychar = YYEMPTY)
 
#define yyerrok   (yyerrflag = 0)
 
#define YYRECOVERING   (yyerrflag != 0)
 
#define YYPREFIX   "yy"
 
#define EXECIO   257
 
#define HI   258
 
#define TE   259
 
#define TS   260
 
#define CONSTANT   261
 
#define DISKW   262
 
#define DISKR   263
 
#define STEM   264
 
#define FINIS   265
 
#define LIFO   266
 
#define FIFO   267
 
#define SKIP   268
 
#define YYERRCODE   256
 
#define YYTABLESIZE   221
 
#define YYFINAL   5
 
#define YYDEBUG   0
 
#define YYMAXTOKEN   268
 
#define YYSTACKSIZE   500
 
#define YYMAXDEPTH   500
 
#define YYINITSTACKSIZE   500
 
#define YYABORT   goto yyabort
 
#define YYREJECT   goto yyabort
 
#define YYACCEPT   goto yyaccept
 
#define YYERROR   goto yyerrlab
 

Functions

int yyparse (void)
 
static int yygrowstack (void)
 
int yylex (void)
 
void yyerror (char *token)
 
int kwsearch (char *token)
 
bool isnumeric (char *token)
 

Variables

static const char yysccsid [] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93"
 
short yylhs []
 
short yylen []
 
short yydefred []
 
short yydgoto []
 
short yysindex []
 
short yyrindex []
 
short yygindex []
 
short yytable []
 
short yycheck []
 
int yydebug
 
int yynerrs
 
int yyerrflag
 
int yychar
 
short * yyssp
 
YYSTYPEyyvsp
 
YYSTYPE yyval
 
YYSTYPE yylval
 
static short * yyss
 
static short * yysslim
 
static YYSTYPEyyvs
 
static int yystacksize
 
struct {
   const char *   kw
 
   int   type
 
kwtable []
 

Macro Definition Documentation

◆ CONSTANT

#define CONSTANT   261

Definition at line 104 of file cmdparse.cpp.

◆ DISKR

#define DISKR   263

Definition at line 106 of file cmdparse.cpp.

◆ DISKW

#define DISKW   262

Definition at line 105 of file cmdparse.cpp.

◆ EXECIO

#define EXECIO   257

Definition at line 100 of file cmdparse.cpp.

◆ FIFO

#define FIFO   267

Definition at line 110 of file cmdparse.cpp.

◆ FINIS

#define FINIS   265

Definition at line 108 of file cmdparse.cpp.

◆ HI

#define HI   258

Definition at line 101 of file cmdparse.cpp.

◆ LIFO

#define LIFO   266

Definition at line 109 of file cmdparse.cpp.

◆ SKIP

#define SKIP   268

Definition at line 111 of file cmdparse.cpp.

◆ STEM

#define STEM   264

Definition at line 107 of file cmdparse.cpp.

◆ TE

#define TE   259

Definition at line 102 of file cmdparse.cpp.

◆ TS

#define TS   260

Definition at line 103 of file cmdparse.cpp.

◆ YYABORT

#define YYABORT   goto yyabort

Definition at line 488 of file cmdparse.cpp.

◆ YYACCEPT

#define YYACCEPT   goto yyaccept

Definition at line 490 of file cmdparse.cpp.

◆ YYBYACC

#define YYBYACC   1

Definition at line 8 of file cmdparse.cpp.

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

Definition at line 14 of file cmdparse.cpp.

◆ YYDEBUG

#define YYDEBUG   0

Definition at line 200 of file cmdparse.cpp.

◆ YYEMPTY

#define YYEMPTY   (-1)

Definition at line 13 of file cmdparse.cpp.

◆ YYERRCODE

#define YYERRCODE   256

Definition at line 112 of file cmdparse.cpp.

◆ yyerrok

#define yyerrok   (yyerrflag = 0)

Definition at line 15 of file cmdparse.cpp.

◆ YYERROR

#define YYERROR   goto yyerrlab

Definition at line 491 of file cmdparse.cpp.

◆ YYFINAL

#define YYFINAL   5

Definition at line 198 of file cmdparse.cpp.

◆ YYINITSTACKSIZE

#define YYINITSTACKSIZE   500

Definition at line 260 of file cmdparse.cpp.

◆ YYMAJOR

#define YYMAJOR   1

Definition at line 9 of file cmdparse.cpp.

◆ YYMAXDEPTH

#define YYMAXDEPTH   500

Definition at line 256 of file cmdparse.cpp.

◆ YYMAXTOKEN

#define YYMAXTOKEN   268

Definition at line 202 of file cmdparse.cpp.

◆ YYMINOR

#define YYMINOR   9

Definition at line 10 of file cmdparse.cpp.

◆ YYPATCH

#define YYPATCH   20070509

Definition at line 11 of file cmdparse.cpp.

◆ YYPREFIX

#define YYPREFIX   "yy"

Definition at line 21 of file cmdparse.cpp.

◆ YYRECOVERING

#define YYRECOVERING   (yyerrflag != 0)

Definition at line 16 of file cmdparse.cpp.

◆ YYREJECT

#define YYREJECT   goto yyabort

Definition at line 489 of file cmdparse.cpp.

◆ YYSTACKSIZE

#define YYSTACKSIZE   500

Definition at line 255 of file cmdparse.cpp.

◆ YYTABLESIZE

#define YYTABLESIZE   221

Definition at line 147 of file cmdparse.cpp.

Function Documentation

◆ isnumeric()

bool isnumeric ( char *  token)

Definition at line 438 of file cmdparse.cpp.

Referenced by yyparse().

◆ kwsearch()

int kwsearch ( char *  token)

Definition at line 406 of file cmdparse.cpp.

References CONSTANT, kw, and kwtable.

Referenced by yylex().

◆ yyerror()

void yyerror ( char *  token)

Definition at line 365 of file cmdparse.cpp.

Referenced by yyparse().

◆ yygrowstack()

static int yygrowstack ( void  )
static

Definition at line 453 of file cmdparse.cpp.

References YYINITSTACKSIZE, YYMAXDEPTH, yyss, yysslim, yyssp, yystacksize, yyvs, and yyvsp.

Referenced by yyparse().

◆ yylex()

int yylex ( void  )

Definition at line 285 of file cmdparse.cpp.

References CONSTANT, kwsearch(), lCmdPtr, prxCmd, pszSymbol, YYSTYPE::strval, SYMTABLESIZE, ulNumSym, and yylval.

Referenced by yyparse().

◆ yyparse()

Variable Documentation

◆ kw

const char* kw

Definition at line 382 of file cmdparse.cpp.

Referenced by kwsearch().

◆ 

kwtable[] { ... } struct
Initial value:
= {
"HI", HI,
"TE", TE,
"TS", TS,
"EXECIO", EXECIO,
"DISKW", DISKW,
"DISKR", DISKR,
"STEM", STEM,
"FINIS", FINIS,
"FIFO", FIFO,
"LIFO", LIFO,
"SKIP", SKIP,
"eot", EOF
}
#define FINIS
Definition: cmdparse.cpp:108
#define HI
Definition: cmdparse.cpp:101
#define SKIP
Definition: cmdparse.cpp:111
#define TE
Definition: cmdparse.cpp:102
#define DISKR
Definition: cmdparse.cpp:106
#define TS
Definition: cmdparse.cpp:103
#define LIFO
Definition: cmdparse.cpp:109
#define DISKW
Definition: cmdparse.cpp:105
#define STEM
Definition: cmdparse.cpp:107
#define FIFO
Definition: cmdparse.cpp:110
#define EXECIO
Definition: cmdparse.cpp:100

Referenced by kwsearch().

◆ type

◆ yychar

int yychar

Definition at line 265 of file cmdparse.cpp.

Referenced by yyparse().

◆ yycheck

short yycheck[]
Initial value:
= { 40,
42, 264, 261, 266, 267, 268, 257, 258, 259, 260,
262, 263, 261, 40, 264, 265, 264, 265, 40, 261,
264, 261, 265, 261, 265, 261, 0, 0, 0, 0,
0, 0, 0, 0, 16, -1, -1, -1, -1, -1,
-1, 7, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 261,
261,
}

Definition at line 173 of file cmdparse.cpp.

Referenced by yyparse().

◆ yydebug

int yydebug

Definition at line 262 of file cmdparse.cpp.

Referenced by yyparse().

◆ yydefred

short yydefred[]
Initial value:
= { 0,
0, 3, 4, 5, 0, 0, 0, 0, 0, 1,
2, 0, 0, 0, 6, 0, 0, 7, 0, 0,
19, 8, 0, 0, 9, 0, 0, 0, 0, 13,
12, 14, 23, 24, 16, 17,
}

Definition at line 123 of file cmdparse.cpp.

Referenced by yyparse().

◆ yydgoto

short yydgoto[]
Initial value:
= { 5,
10, 15, 18, 25, 21,
}

Definition at line 129 of file cmdparse.cpp.

Referenced by yyparse().

◆ yyerrflag

int yyerrflag

Definition at line 264 of file cmdparse.cpp.

Referenced by yyparse().

◆ yygindex

short yygindex[]
Initial value:
= { 0,
35, 0, 19, 0, 0,
}

Definition at line 144 of file cmdparse.cpp.

Referenced by yyparse().

◆ yylen

short yylen[]
Initial value:
= { 2,
3, 3, 1, 1, 1, 3, 3, 4, 2, 0,
1, 2, 2, 2, 2, 3, 3, 0, 2, 0,
1, 2, 3, 3, 0,
}

Definition at line 118 of file cmdparse.cpp.

Referenced by yyparse().

◆ yylhs

short yylhs[]
Initial value:
= { -1,
0, 0, 0, 0, 0, 1, 1, 1, 3, 3,
4, 4, 4, 4, 4, 4, 4, 4, 2, 2,
5, 5, 5, 5, 5,
}

Definition at line 113 of file cmdparse.cpp.

Referenced by yyparse().

◆ yylval

YYSTYPE yylval

Definition at line 269 of file cmdparse.cpp.

Referenced by yylex(), and yyparse().

◆ yynerrs

int yynerrs

Definition at line 263 of file cmdparse.cpp.

Referenced by yyparse().

◆ yyrindex

short yyrindex[]
Initial value:
= { 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 27, 28, 29, 0, 28, 30, 0, 0, 31,
0, 0, 0, 32, 0, 33, 0, 34, 0, 0,
0, 0, 0, 0, 0, 0,
}

Definition at line 138 of file cmdparse.cpp.

Referenced by yyparse().

◆ yysccsid

const char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93"
static

Definition at line 2 of file cmdparse.cpp.

◆ yysindex

short yysindex[]
Initial value:
= { -250,
-41, 0, 0, 0, 0, -251, -251, -258, -248, 0,
0, -26, -40, -249, 0, -21, -247, 0, -241, -243,
0, 0, -239, -262, 0, -242, -237, -240, -235, 0,
0, 0, 0, 0, 0, 0,
}

Definition at line 132 of file cmdparse.cpp.

Referenced by yyparse().

◆ yyss

short* yyss
static

Definition at line 272 of file cmdparse.cpp.

Referenced by yygrowstack(), and yyparse().

◆ yysslim

short* yysslim
static

Definition at line 273 of file cmdparse.cpp.

Referenced by yygrowstack(), and yyparse().

◆ yyssp

short* yyssp

Definition at line 266 of file cmdparse.cpp.

Referenced by yygrowstack(), and yyparse().

◆ yystacksize

int yystacksize
static

Definition at line 275 of file cmdparse.cpp.

Referenced by yygrowstack().

◆ yytable

short yytable[]
Initial value:
= { 17,
7, 29, 12, 30, 31, 32, 1, 2, 3, 4,
8, 9, 13, 14, 19, 20, 23, 24, 17, 26,
27, 28, 33, 34, 35, 36, 20, 10, 25, 18,
21, 11, 22, 15, 22, 0, 0, 0, 0, 0,
0, 11, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 6,
16,
}

Definition at line 148 of file cmdparse.cpp.

Referenced by yyparse().

◆ yyval

YYSTYPE yyval

Definition at line 268 of file cmdparse.cpp.

Referenced by yyparse().

◆ yyvs

YYSTYPE* yyvs
static

Definition at line 274 of file cmdparse.cpp.

Referenced by yygrowstack(), and yyparse().

◆ yyvsp

YYSTYPE* yyvsp

Definition at line 267 of file cmdparse.cpp.

Referenced by yygrowstack(), and yyparse().