# 2.11BSD#431 - /usr/ingres/source/yyyacc/yyy0.c

##### Variables

    actsiz            X
    amem              X
    apstate           X
    arrndx            X
    clset             X
    cnames            X
    cnamp             X
    cnamsz            X
    ctokn             X
    cwset             X
    extval            X
    fatfl             X
    indgo             X
    lastred           X
    levprd            X
    lineno            X
    lkst              X
    lsetsz            X
    machine           X
    maxtmp            X
    mem               X
    mem0              X
    memact            X
    memsiz            X
    mstates           X
    ndeFout           X
    nerrors           X
    nlset             X
    nnonter           X
    nolook            X
    nontrst           X
    nprod             X
    nstate            X
    nterms            X
    ntlim             X
    ntstates          X
    numbval           X
    oflag             X
    peekc             X
    pempty            X
    pfirst            X
    prdlim            X
    prdptr            X
    pres              X
    pstate            X
    rflag             X
    sflag             X
    stsize            X
    tbitset           X
    temp1             X
    temp2             X
    tlim              X
    trmlev            X
    trmset            X
    tstates           X
    tystate           X
    wsets             X
    wssize            X
    zzacent           X
    zzacsave          X
    zzclose           X
    zzcwset           X
    zzgobest          X
    zzgoent           X
    zznsave           X
    zzpairs           X
    zzrrconf          X
    zzsrconf          X

##### Macros

    _actsize          X
    _cnamsz           X
    _lsetsize         X
    _memsize          X
    _nnonterm         X
    _nprod            X
    _nstates          X
    _nterms           X
    _tbitset          X
    _tempsize         X
    _wsetsize         X

##### struct's

    item              X
    looksets          X
    sxxx1             X
    sxxx2             X
    wset              X

       1: # include   <stdio.h>
       2:
       3: # define _actsize 2000
       4: # define _memsize 3500
       5: # define _nstates 500
       6: # define _nterms 100
       7: # define _nprod 350
       8: # define _nnonterm 200
       9: # define _tempsize 400
      10: # define _cnamsz 2500
      11: # define _lsetsize 300
      12: # define _wsetsize 150
      13:
      14: # define _tbitset 8 /* increased from 6 for equel -- -tih */
      15:
      16: int tbitset;  /* size of lookahed sets */
      17: int nolook = 0; /* flag to suppress lookahead computations */
      18: struct looksets { int lset[ _tbitset ]; } ;
      19: struct item { int *pitem; } ;
      20:
      21: /* this file contains the definitions for most externally known data */
      22:
      23: int nstate = 0;     /* number of states */
      24: struct item *pstate[_nstates];  /* pointers to the descriptions of the states */
      25: int apstate[_nstates];  /* index to the actions for the states */
      26: int tystate[_nstates];  /* contains type information about the states */
      27: int stsize = _nstates;  /* maximum number of states, at present */
      28: int memsiz = _memsize;  /* maximum size for productions and states */
      29: int mem0[_memsize] ; /* production storage */
      30: int *mem = mem0;
      31: int amem[_actsize];  /* action table storage */
      32: int actsiz = _actsize; /* action table size */
      33: int memact = 0;     /* next free action table position */
      34: int nprod = 1;  /* number of productions */
      35: int *prdptr[_nprod];    /* pointers to descriptions of productions */
      36: int prdlim = _nprod ;  /* the maximum number of productions */
      37:     /* levprd - productions levels to break conflicts */
      38: int levprd[_nprod] = {0,0};
      39:   /* last two bits code associativity:
      40:        0 = no definition
      41:        1 = left associative
      42:        2 = binary
      43:        3 = right associative
      44:      bit 04 is 1 if the production has an action
      45:      the high 13 bits have the production level
      46:      */
      47: int nterms = 0; /* number of terminals */
      48: int tlim = _nterms ; /* the maximum number of terminals */
      49: /*	the ascii representations of the terminals	*/
      50: int extval = 0;  /* start of output values */
      51: struct sxxx1 {char *name; int value;} trmset[_nterms];
      52: char cnames[_cnamsz];
      53: int cnamsz = _cnamsz;
      54: char *cnamp;
      55: int maxtmp = _tempsize; /* the size of the temp1 array */
      56: int temp1[_tempsize]; /* temporary storage, indexed by terms + nterms or states */
      57: int temp2[_nnonterm]; /* temporary storage indexed by nonterminals */
      58: int trmlev[_nterms];    /* vector with the precedence of the terminals */
      59:   /* The levels are the same as for levprd, but bit 04 is always 0 */
      60: /* the ascii representations of the nonterminals */
      61: struct sxxx2 { char *name; } nontrst[_nnonterm];
      62: int ntlim = _nnonterm ; /* limit to the number of nonterminals */
      63: int indgo[_nstates];        /* index to the stored goto table */
      64: int ***pres; /* vector of pointers to the productions yielding each nonterminal */
      65: struct looksets **pfirst; /* vector of pointers to first sets for each nonterminal */
      66: int *pempty = 0 ; /* table of nonterminals nontrivially deriving e */
      67: int nnonter = -1;   /* the number of nonterminals */
      68: int lastred = 0;    /* the number of the last reduction of a state */
      69: FILE    *ftable;        /* y.tab.c file */
      70: FILE    *Foutput;       /* y.output file */
      71: int arrndx; /* used in the output of arrays on y.tab.c */
      72: int zzcwset = 0;
      73: int zzpairs = 0;
      74: int zzgoent = 0;
      75: int zzgobest = 0;
      76: int zzacent = 0;
      77: int zzacsave = 0;
      78: int zznsave = 0;
      79: int zzclose = 0;
      80: int zzsrconf = 0;
      81: int zzrrconf = 0;
      82: char *ctokn;
      83: int lineno = 1; /* current input line number */
      84: int peekc = -1; /* look-ahead character */
      85: int tstates[ _nterms ]; /* states generated by terminal gotos */
      86: int ntstates[ _nnonterm ]; /* states generated by nonterminal gotos */
      87: int mstates[ _nstates ]; /* chain of overflows of term/nonterm generation lists  */
      88:
      89: struct looksets clset;
      90: struct looksets lkst [ _lsetsize ];
      91: int nlset = 0; /* next lookahead set index */
      92: int lsetsz = _lsetsize; /* number of lookahead sets */
      93:
      94: struct wset { int *pitem, flag, ws[_tbitset]; } wsets[ _wsetsize ];
      95: int cwset;
      96: int wssize = _wsetsize;
      97:
      98: int numbval;  /* the value of an input number */
      99: int rflag = 0;  /* ratfor flag */
     100: int sflag = 0;  /* suppress crap flag */
     101: int oflag = 0;  /* optimization flag */
     102:
     103: int ndeFout = 3;  /* number of defined symbols output */
     104: int nerrors = 0;    /* number of errors */
     105: int fatfl = 1;      /* if on, error is fatal */
     106: int machine;   /* has a number describing the machine */

#### Defined variables

actsiz defined in line 32; used 4 times

- in /usr/ingres/source/yyyacc/y4.c line 132, 142
- in /usr/ingres/source/yyyacc/yyy1.c line 186
- in /usr/ingres/source/yyyacc/yyy3.c line 202

amem defined in line 31; used 8 times

- in /usr/ingres/source/yyyacc/y4.c line 115-116(2), 135(2), 144, 150, 271
- in /usr/ingres/source/yyyacc/yyy3.c line 202

apstate defined in line 25; used 5 times

- in /usr/ingres/source/yyyacc/y4.c line 115-116(2), 345(2)
- in /usr/ingres/source/yyyacc/yyy3.c line 242

arrndx defined in line 71; used 2 times

- in /usr/ingres/source/yyyacc/yyy1.c line 220-225(2)

clset defined in line 89; used 12 times

- in /usr/ingres/source/yyyacc/yyy3.c line 111-114(2), 195-196(2), 288, 298-305(5), 319, 333

cnames defined in line 52; used 2 times

- in /usr/ingres/source/yyyacc/yyy2.c line 67, 279

cnamp defined in line 54; used 7 times

- in /usr/ingres/source/yyyacc/yyy2.c line 67, 279-280(2), 315, 351, 406-411(2)

cnamsz defined in line 53; used 1 times

- in /usr/ingres/source/yyyacc/yyy2.c line 279

ctokn defined in line 82; used 32 times

- in /usr/ingres/source/yyyacc/yyy1.c line 235, 242
- in /usr/ingres/source/yyyacc/yyy2.c line 59-64(3), 209-219(9), 231-234(10), 315, 351, 382, 403-416(5)

cwset defined in line 95; used 21 times

- in /usr/ingres/source/yyyacc/y4.c line 18, 28
- in /usr/ingres/source/yyyacc/yyy3.c line 213, 222, 263-269(5), 277, 292, 316, 325-334(6), 344-348(3)

extval defined in line 50; used 2 times

- in /usr/ingres/source/yyyacc/yyy2.c line 61, 239

fatfl defined in line 105; used 3 times

- in /usr/ingres/source/yyyacc/yyy1.c line 213
- in /usr/ingres/source/yyyacc/yyy3.c line 13, 21

indgo defined in line 63; used 2 times

- in /usr/ingres/source/yyyacc/y4.c line 271
- in /usr/ingres/source/yyyacc/yyy3.c line 243

lastred defined in line 68; used 16 times

- in /usr/ingres/source/yyyacc/y4.c line 27-31(2), 38-44(4), 50, 57, 305-309(2), 317, 323, 381(2), 415(2)

levprd defined in line 38; used 6 times

- in /usr/ingres/source/yyyacc/y4.c line 286
- in /usr/ingres/source/yyyacc/yyy2.c line 139-143(2), 152, 170, 188

lineno defined in line 83; used 8 times

- in /usr/ingres/source/yyyacc/yyy1.c line 212
- in /usr/ingres/source/yyyacc/yyy2.c line 292, 298, 305, 395, 426, 436, 536

lkst defined in line 90; used 4 times

- in /usr/ingres/source/yyyacc/yyy3.c line 369-373(2), 379-381(2)

lsetsz defined in line 92; used 2 times

- in /usr/ingres/source/yyyacc/yyy1.c line 187
- in /usr/ingres/source/yyyacc/yyy3.c line 377

machine defined in line 106; used 4 times

- in /usr/ingres/source/yyyacc/yyy1.c line 57-65(3), 77

maxtmp defined in line 55; never used
mem defined in line 30; used 26 times

- in /usr/ingres/source/yyyacc/yyy1.c line 250-252(3)
- in /usr/ingres/source/yyyacc/yyy2.c line 66, 113-119(6), 125, 132-140(7), 150-154(3)
- in /usr/ingres/source/yyyacc/yyy3.c line 12-20(4), 194

mem0 defined in line 29; used 5 times

- in line 30
- in /usr/ingres/source/yyyacc/yyy1.c line 185, 252
- in /usr/ingres/source/yyyacc/yyy2.c line 66
- in /usr/ingres/source/yyyacc/yyy3.c line 156

memact defined in line 33; used 5 times

- in /usr/ingres/source/yyyacc/y4.c line 143-148(3)
- in /usr/ingres/source/yyyacc/yyy1.c line 186
- in /usr/ingres/source/yyyacc/yyy3.c line 201

memsiz defined in line 28; used 3 times

- in /usr/ingres/source/yyyacc/yyy1.c line 185, 252
- in /usr/ingres/source/yyyacc/yyy3.c line 156

mstates defined in line 87; used 3 times

- in /usr/ingres/source/yyyacc/yyy3.c line 94, 124-128(2)

ndeFout defined in line 103; used 3 times

- in /usr/ingres/source/yyyacc/yyy2.c line 106, 252, 273

nerrors defined in line 104; used 2 times

- in /usr/ingres/source/yyyacc/yyy1.c line 207
- in /usr/ingres/source/yyyacc/yyy3.c line 22

nlset defined in line 91; used 5 times

- in /usr/ingres/source/yyyacc/yyy1.c line 187
- in /usr/ingres/source/yyyacc/yyy3.c line 367, 377-381(3)

nnonter defined in line 67; used 24 times

- in /usr/ingres/source/yyyacc/y4.c line 168, 220, 233, 257
- in /usr/ingres/source/yyyacc/yyy1.c line 168, 174-180(3)
- in /usr/ingres/source/yyyacc/yyy2.c line 208-210(3), 409
- in /usr/ingres/source/yyyacc/yyy3.c line 9-10(2), 33-34(2), 53, 64-67(2), 164-165(2), 210, 237, 243

nolook defined in line 17; used 5 times

- in /usr/ingres/source/yyyacc/y4.c line 14
- in /usr/ingres/source/yyyacc/yyy3.c line 295, 318, 328, 347

nontrst defined in line 61; used 14 times

- in /usr/ingres/source/yyyacc/y4.c line 256-257(2), 265, 341
- in /usr/ingres/source/yyyacc/yyy1.c line 138, 154, 174-175(2)
- in /usr/ingres/source/yyyacc/yyy2.c line 169, 209, 410
- in /usr/ingres/source/yyyacc/yyy3.c line 17, 68, 238

nprod defined in line 34; used 16 times

- in /usr/ingres/source/yyyacc/y4.c line 105-109(2), 239
- in /usr/ingres/source/yyyacc/yyy1.c line 181
- in /usr/ingres/source/yyyacc/yyy2.c line 139-154(7), 170, 187
- in /usr/ingres/source/yyyacc/yyy3.c line 14, 166, 175

nstate defined in line 23; used 30 times

- in /usr/ingres/source/yyyacc/y4.c line 13, 91, 178, 187, 199, 263-266(2)
- in /usr/ingres/source/yyyacc/yyy1.c line 169, 181-188(3)
- in /usr/ingres/source/yyyacc/yyy3.c line 78-79(2), 107(2), 121-132(8), 143-147(3), 154, 193-198(2), 207

nterms defined in line 47; used 38 times

- in /usr/ingres/source/yyyacc/y4.c line 17, 32, 116, 307, 313, 323, 372, 403
- in /usr/ingres/source/yyyacc/yyy1.c line 39, 167-171(2), 179, 283
- in /usr/ingres/source/yyyacc/yyy2.c line 213-227(10), 234-243(5), 252, 273, 404
- in /usr/ingres/source/yyyacc/yyy3.c line 210, 229-243(6)

ntlim defined in line 62; used 3 times

- in /usr/ingres/source/yyyacc/yyy1.c line 180
- in /usr/ingres/source/yyyacc/yyy2.c line 208(2)

ntstates defined in line 86; used 3 times

- in /usr/ingres/source/yyyacc/yyy3.c line 94, 124-125(2)

numbval defined in line 98; used 4 times

- in /usr/ingres/source/yyyacc/yyy2.c line 105, 342-345(3)

oflag defined in line 101; used 4 times

- in /usr/ingres/source/yyyacc/yyy1.c line 74
- in /usr/ingres/source/yyyacc/yyy2.c line 33-38(2), 53

peekc defined in line 84; used 15 times

- in /usr/ingres/source/yyyacc/yyy2.c line 290-293(3), 347, 357(3), 363, 388-394(7)

pempty defined in line 66; used 10 times

- in /usr/ingres/source/yyyacc/yyy3.c line 43, 58, 70, 164-168(3), 176-179(3), 303

pfirst defined in line 65; used 4 times

- in /usr/ingres/source/yyyacc/yyy3.c line 33, 64-69(2), 302

prdlim defined in line 36; used 1 times

- in /usr/ingres/source/yyyacc/yyy1.c line 181

prdptr defined in line 35; used 19 times

- in /usr/ingres/source/yyyacc/y4.c line 105-109(3), 240-242(2)
- in /usr/ingres/source/yyyacc/yyy1.c line 137
- in /usr/ingres/source/yyyacc/yyy2.c line 113, 119, 125, 151-154(2)
- in /usr/ingres/source/yyyacc/yyy3.c line 15(2), 167-168(2), 176-179(3), 196

pres defined in line 64; used 10 times

- in /usr/ingres/source/yyyacc/yyy3.c line 9-20(4), 36-37(2), 54-55(2), 313-314(2)

pstate defined in line 24; used 27 times

- in /usr/ingres/source/yyyacc/y4.c line 267-268(2), 331-332(2), 350-351(2), 393-394(2)
- in /usr/ingres/source/yyyacc/yyy1.c line 183
- in /usr/ingres/source/yyyacc/yyy3.c line 78-79(2), 96-97(2), 107(2), 121, 146-147(2), 154, 194-199(4), 218(2), 264-265(2)

rflag defined in line 99; used 12 times

- in /usr/ingres/source/yyyacc/yyy1.c line 80, 92, 98, 164
- in /usr/ingres/source/yyyacc/yyy2.c line 37, 84, 126, 145-147(2), 184, 268, 480

sflag defined in line 100; used 2 times

- in /usr/ingres/source/yyyacc/yyy1.c line 164
- in /usr/ingres/source/yyyacc/yyy2.c line 42

stsize defined in line 27; used 2 times

- in /usr/ingres/source/yyyacc/yyy1.c line 181
- in /usr/ingres/source/yyyacc/yyy3.c line 122

tbitset defined in line 16; used 9 times

- in /usr/ingres/source/yyyacc/yyy1.c line 39, 269
- in /usr/ingres/source/yyyacc/yyy3.c line 35, 195, 268, 288, 333, 370, 378

temp1 defined in line 56; used 39 times

- in /usr/ingres/source/yyyacc/y4.c line 17-23(4), 34-39(6), 50, 57-62(2), 93-98(2), 233-234(2), 241-245(3), 257, 270, 308-314(4), 323(2), 373, 403
- in /usr/ingres/source/yyyacc/yyy3.c line 210, 228-229(2), 235-243(6)

temp2 defined in line 57; used 2 times

- in /usr/ingres/source/yyyacc/y4.c line 173, 220

tlim defined in line 48; used 3 times

- in /usr/ingres/source/yyyacc/yyy1.c line 179
- in /usr/ingres/source/yyyacc/yyy2.c line 213(2)

trmlev defined in line 58; used 5 times

- in /usr/ingres/source/yyyacc/y4.c line 287
- in /usr/ingres/source/yyyacc/yyy2.c line 74, 139, 170, 242

trmset defined in line 51; used 23 times

- in /usr/ingres/source/yyyacc/y4.c line 374
- in /usr/ingres/source/yyyacc/yyy1.c line 154, 171
- in /usr/ingres/source/yyyacc/yyy2.c line 105-107(2), 192-197(2), 214-227(9), 234-239(3), 254, 268(2), 405

tstates defined in line 85; used 3 times

- in /usr/ingres/source/yyyacc/yyy3.c line 94, 128-129(2)

tystate defined in line 26; used 28 times

- in /usr/ingres/source/yyyacc/y4.c line 14, 92-98(3), 179-187(4), 200-202(3), 263, 271-276(3), 357-358(2), 368, 383, 398-399(2)
- in /usr/ingres/source/yyyacc/yyy3.c line 112, 131, 197, 208-209(2), 218(2)

wsets defined in line 94; used 37 times

- in /usr/ingres/source/yyyacc/y4.c line 19, 29-33(2)
- in /usr/ingres/source/yyyacc/yyy3.c line 35-40(2), 57(3), 64, 214-216(3), 223-225(4), 266-268(3), 279-283(3), 293-294(3), 305, 317-319(4), 326-327(2), 333, 349-352(4)

wssize defined in line 96; used 2 times

- in /usr/ingres/source/yyyacc/yyy1.c line 184
- in /usr/ingres/source/yyyacc/yyy3.c line 325

zzacent defined in line 76; used 2 times

- in /usr/ingres/source/yyyacc/y4.c line 384
- in /usr/ingres/source/yyyacc/yyy1.c line 189

zzacsave defined in line 77; used 2 times

- in /usr/ingres/source/yyyacc/y4.c line 358
- in /usr/ingres/source/yyyacc/yyy1.c line 190

zzclose defined in line 79; used 2 times

- in /usr/ingres/source/yyyacc/yyy1.c line 188
- in /usr/ingres/source/yyyacc/yyy3.c line 259

zzcwset defined in line 72; used 3 times

- in /usr/ingres/source/yyyacc/yyy1.c line 184
- in /usr/ingres/source/yyyacc/yyy3.c line 344(2)

zzgobest defined in line 75; used 2 times

- in /usr/ingres/source/yyyacc/y4.c line 197
- in /usr/ingres/source/yyyacc/yyy1.c line 192

zzgoent defined in line 74; used 3 times

- in /usr/ingres/source/yyyacc/y4.c line 204, 210
- in /usr/ingres/source/yyyacc/yyy1.c line 191

zznsave defined in line 78; used 2 times

- in /usr/ingres/source/yyyacc/y4.c line 359
- in /usr/ingres/source/yyyacc/yyy1.c line 190

zzpairs defined in line 73; never used
zzrrconf defined in line 81; used 6 times

- in /usr/ingres/source/yyyacc/y4.c line 40
- in /usr/ingres/source/yyyacc/yyy1.c line 182, 193-199(4)

zzsrconf defined in line 80; used 6 times

- in /usr/ingres/source/yyyacc/y4.c line 51
- in /usr/ingres/source/yyyacc/yyy1.c line 182, 193-198(4)

#### Defined struct's

item defined in line 19; used 2 times

- in line 24(2)

looksets defined in line 18; used 6 times

- in line 65(2), 89-90(4)

sxxx1 defined in line 51; never used
sxxx2 defined in line 61; never used
wset defined in line 94; never used

#### Defined macros

_actsize defined in line 3; used 2 times

- in line 31-32(2)

_cnamsz defined in line 10; used 2 times

- in line 52-53(2)

_lsetsize defined in line 11; used 2 times

- in line 90-92(2)

_memsize defined in line 4; used 2 times

- in line 28-29(2)

_nnonterm defined in line 8; used 4 times

- in line 57-62(3), 86

_nprod defined in line 7; used 3 times

- in line 35-38(3)

_nstates defined in line 5; used 6 times

- in line 24-27(4), 63, 87

_nterms defined in line 6; used 4 times

- in line 48-51(2), 58, 85

_tbitset defined in line 14; used 2 times

- in line 18, 94

_tempsize defined in line 9; used 2 times

- in line 55-56(2)

_wsetsize defined in line 12; used 2 times

- in line 94-96(2)

Last modified: 1995-02-18 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1862 |