# 2.11BSD#431 - /usr/ingres/source/scanner.h

##### Variables

    Cflag             X
    Keyent            X
    Keyword           X
    Lastok            X
    Lcase             X
    Newline           X
    Opcode            X
    Optab             X
    Pars              X
    Sbuf              X
    Tokens            X

##### Macros

    ALPHA             X
    BADOP             X
    CNTRL             X
    CNTRLCHR          X
    COMMTERM          X
    CVAR_F8           X
    CVAR_I2           X
    CVAR_I4           X
    CVAR_S            X
    FCONSTERR         X
    GOVAL             X
    MAXSTRING         X
    NAMELONG          X
    NUMBR             X
    NUMBUFOFLO        X
    OPATR             X
    PUNCT             X
    SBUFOFLO          X
    SBUFSIZ           X
    STRLONG           X
    STRTERM           X
    SYMERR            X

##### struct's

    lastok            X
    optab             X
    special           X

       1: #
       2: /*
       3: **	SCANNER.H
       4: **	contains the global structures and variable declarations needed
       5: **	by the lexical analyzer.  This includes Manifest Constants and
       6: **	certain variables for internal communication purposes.  Therefore,
       7: **	extreme care should be exercised when modifying this file.
       8: */
       9:
      10:
      11: /* MANIFEST CONSTANTS */
      12: # define    SBUFSIZ     2000    /* max size of symbol table for */
      13: # define    MAXSTRING   255 /* max length of strings */
      14: # define    GOVAL       -1  /* semantic value for command names */
      15:
      16: /* CHARACTER TYPES */
      17: # define    ALPHA       1
      18: # define    NUMBR       2
      19: # define    OPATR       3
      20: # define    PUNCT       4
      21: # define    CNTRL       5
      22:
      23: /* Modes for input from EQUEL front end */
      24: # define    CVAR_I2     '\1'    /* 2 byte integer */
      25: # define    CVAR_F8     '\4'    /* 8 byte floating number */
      26: # define    CVAR_S      '\3'    /* string with null byte */
      27: # define    CVAR_I4     '\6'    /* 4 byte integer */
      28:
      29: /* error number definitions */
      30: # define    SYMERR      2500    /* syntactic error */
      31: # define    STRTERM     2700    /* non term string */
      32: # define    STRLONG     2701    /* string too long */
      33: # define    BADOP       2702    /* can't find operator in tables */
      34: # define    NAMELONG    2703    /* name too long */
      35: # define    SBUFOFLO    2704    /* over flow symbol table */
      36: # define    COMMTERM    2705    /* non term comment */
      37: # define    FCONSTERR   2707    /* float constant error */
      38: # define    CNTRLCHR    2708    /* control char from equel */
      39: # define    NUMBUFOFLO  2709    /* buffer oflo in number.c */
      40:
      41: /* KEYWORD and OPERATOR TABLE */
      42: struct optab                /* key word/operator tables */
      43: {
      44:     char    *term;          /* key word/operator body */
      45:     int token;          /* associated parser token */
      46:     int opcode;         /* associated parser opcode */
      47: };
      48:
      49: /* SPECIAL TOKENS for scanner */
      50: struct special
      51: {
      52:     int sconst;
      53:     int bgncmnt;
      54:     int endcmnt;
      55:     int i2const;
      56:     int i4const;
      57:     int f4const;
      58:     int f8const;
      59:     int name;
      60: };
      61:
      62: /* last token struct */
      63: struct lastok
      64: {
      65:     int toktyp;
      66:     char    *tok;
      67:     int tokop;
      68: };
      69:
      70: /* declarations */
      71: struct special  Tokens;         /* special tokens table */
      72: struct optab    Optab[];        /* operator table */
      73: struct optab    Keyword[];      /* keyword table */
      74: struct lastok   Lastok;
      75: int     Opcode;         /* opcode for current token */
      76: int     Lcase;          /* UPPER->lower conversion flag */
      77: int     Pars;           /* flag for call to getcvar or not */
      78: int     Newline;        /* set if last char read was a newline */
      79: int     Cflag;          /* set if line of C-code recognized */
      80: int     Keyent;         /* number of entries in the Keyword table */
      81:
      82: char        Sbuf[SBUFSIZ];      /* symbol table buffer */
      83: /*
      84: **	TRACE FLAG ASSIGNMENTS
      85: **	Comment, Expand		70
      86: **	Name, String		71
      87: **	Number, Yylex		72
      88: **	Operator		73
      89: **	Inout			74
      90: */

#### Defined variables

Cflag defined in line 79; never used
Keyent defined in line 80; used 1 times

- in /usr/ingres/source/scanner/name.c line 40

Keyword defined in line 73; used 5 times

- in /usr/ingres/source/scanner/name.c line 44, 56-59(4)

Lastok defined in line 74; used 23 times

- in /usr/ingres/source/parser/control.c line 90
- in /usr/ingres/source/scanner/name.c line 55-57(3), 68-70(3)
- in /usr/ingres/source/scanner/number.c line 82, 94-105(5)
- in /usr/ingres/source/scanner/operator.c line 68-69(2)
- in /usr/ingres/source/scanner/string.c line 82-83(2)
- in /usr/ingres/source/scanner/yylex.c line 20, 82-84(3), 127-128(2)

Lcase defined in line 76; used 22 times

- in /usr/ingres/source/parser/control.c line 52
- in /usr/ingres/source/scanner/inout.c line 29
- in /usr/ingres/source/scanner/number.c line 27-28(2), 102
- in /usr/ingres/source/scanner/operator.c line 20-21(2), 30, 57, 63
- in /usr/ingres/source/scanner/string.c line 26-27(2), 33, 44, 54, 66, 77
- in /usr/ingres/source/scanner/yylex.c line 100-101(2), 113-118(2), 125

Newline defined in line 78; never used
Opcode defined in line 75; never used
Optab defined in line 72; used 4 times

- in /usr/ingres/source/scanner/comment.c line 16
- in /usr/ingres/source/scanner/operator.c line 37, 45, 52

Pars defined in line 77; used 2 times

- in /usr/ingres/source/parser/control.c line 51
- in /usr/ingres/source/scanner/yylex.c line 52

Sbuf defined in line 82; used 2 times

- in /usr/ingres/source/scanner/symtab.c line 19, 32

Tokens defined in line 71; used 16 times

- in /usr/ingres/source/scanner/comment.c line 17
- in /usr/ingres/source/scanner/name.c line 55, 69-71(2)
- in /usr/ingres/source/scanner/number.c line 82, 94-99(2)
- in /usr/ingres/source/scanner/operator.c line 64-69(3)
- in /usr/ingres/source/scanner/string.c line 83-84(2)
- in /usr/ingres/source/scanner/yylex.c line 56-68(4)

#### Defined struct's

lastok defined in line 63; used 2 times

- in line 74(2)

optab defined in line 42; used 10 times

- in line 72-73(4)
- in /usr/ingres/source/scanner/comment.c line 12(2)
- in /usr/ingres/source/scanner/operator.c line 15(2)
- in /usr/ingres/source/scanner/string.c line 14(2)

special defined in line 50; used 2 times

- in line 71(2)

#### Defined macros

ALPHA defined in line 17; used 54 times

- in /usr/ingres/source/scanner/cmap.c line 15-22(53)
- in /usr/ingres/source/scanner/name.c line 34

BADOP defined in line 33; used 1 times

- in /usr/ingres/source/scanner/operator.c line 59

CNTRL defined in line 21; used 31 times

- in /usr/ingres/source/scanner/cmap.c line 7-10(29)
- in /usr/ingres/source/scanner/string.c line 70
- in /usr/ingres/source/scanner/yylex.c line 116

CNTRLCHR defined in line 38; used 2 times

- in /usr/ingres/source/scanner/string.c line 72
- in /usr/ingres/source/scanner/yylex.c line 120

COMMTERM defined in line 36; used 2 times

- in /usr/ingres/source/scanner/comment.c line 27, 35

CVAR_F8 defined in line 25; never used
CVAR_I2 defined in line 24; never used
CVAR_I4 defined in line 27; never used
CVAR_S defined in line 26; never used
FCONSTERR defined in line 37; used 1 times

- in /usr/ingres/source/scanner/number.c line 80

GOVAL defined in line 14; used 2 times

- in /usr/ingres/source/parser/control.c line 90
- in /usr/ingres/source/scanner/yylex.c line 82

MAXSTRING defined in line 13; used 4 times

- in /usr/ingres/source/scanner/string.c line 21, 64
- in /usr/ingres/source/scanner/yylex.c line 97, 111

NAMELONG defined in line 34; used 1 times

- in /usr/ingres/source/scanner/name.c line 31

NUMBR defined in line 18; used 16 times

- in /usr/ingres/source/scanner/cmap.c line 13-14(10)
- in /usr/ingres/source/scanner/name.c line 34
- in /usr/ingres/source/scanner/number.c line 39, 53, 66, 74
- in /usr/ingres/source/scanner/operator.c line 28

NUMBUFOFLO defined in line 39; used 4 times

- in /usr/ingres/source/scanner/number.c line 37, 51, 64, 72

OPATR defined in line 19; used 32 times

- in /usr/ingres/source/scanner/cmap.c line 11-22(32)

PUNCT defined in line 20; used 4 times

- in /usr/ingres/source/scanner/cmap.c line 8-11(4)

SBUFOFLO defined in line 35; used 1 times

- in /usr/ingres/source/scanner/symtab.c line 32

SBUFSIZ defined in line 12; used 2 times

- in line 82
- in /usr/ingres/source/scanner/symtab.c line 32

STRLONG defined in line 32; used 2 times

- in /usr/ingres/source/scanner/string.c line 68
- in /usr/ingres/source/scanner/yylex.c line 114

STRTERM defined in line 31; used 3 times

- in /usr/ingres/source/scanner/string.c line 35, 47, 57

SYMERR defined in line 30; used 1 times

- in /usr/ingres/source/scanner/parser.c line 115

#### Usage of this include

scanner.h used 12 times

- in /usr/ingres/source/parser/control.c line 6
- in /usr/ingres/source/parser/master.grammar line 887
- in /usr/ingres/source/scanner/cmap.c line 1
- in /usr/ingres/source/scanner/comment.c line 2
- in /usr/ingres/source/scanner/inout.c line 2
- in /usr/ingres/source/scanner/name.c line 2
- in /usr/ingres/source/scanner/number.c line 3
- in /usr/ingres/source/scanner/operator.c line 2
- in /usr/ingres/source/scanner/parser.c line 2
- in /usr/ingres/source/scanner/string.c line 2
- in /usr/ingres/source/scanner/symtab.c line 3
- in /usr/ingres/source/scanner/yylex.c line 2

Last modified: 1980-12-17 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1256 |