#include <stdio.h>#include <ctype.h>#include "parm.h"#include "scan.h"#include "../parser/y.tab.h"Go to the source code of this file.
Data Structures | |
| struct | restab |
| struct | VrLine |
Defines | |
| #define | STKSIZE 5 |
| #define | NIL 0 |
| #define | ESCCHAR '#' |
| #define | CCLASS(c) ((c) == EOF ? EOFCC : cctab[c]) |
Typedefs | |
| typedef struct VrLine | vrline |
Functions | |
| yylex () | |
| rdposition () | |
| addposition (unsigned fn, int ln) | |
| reschk (struct restab *tbl, nentries, dflt) | |
| yyunlex (int tok) | |
Variables | |
| boolean | pflag |
| struct restab | residtab [] |
| int | nresids |
| struct restab | resoptab [] |
| int | nresops |
| int | cctab [] |
| int | yyline = 0 |
| int | yycolno = 0 |
| char * | yyinfnm |
| int | yydebug |
| int | yylval |
| vrline * | vrtable = NIL |
| vrline * | vrtend = NIL |
| int | yyvline = 0 |
| static int | scansavc = '\n' |
| static int | scanstk [STKSIZE] |
| static int | stktop = -1 |
| char | tokenbuf [1000] |
| int | tokenlgth |
| #define CCLASS | ( | c | ) | ((c) == EOF ? EOFCC : cctab[c]) |
| addposition | ( | unsigned | fn, | |
| int | ln | |||
| ) |
Definition at line 386 of file scan.c.
References gc_malloc, NIL, VrLine::vr_fname, VrLine::vr_next, VrLine::vr_rline, VrLine::vr_vline, vrtend, and yyvline.
Referenced by main(), and rdposition().
| rdposition | ( | ) |
Definition at line 336 of file scan.c.
References addposition(), GETCHR, stt_enter(), tokenbuf, tokenlgth, yyinfnm, yyline, and yyperror().
Referenced by yylex().
| reschk | ( | struct restab * | tbl, | |
| nentries | , | |||
| dflt | ||||
| ) |
| yylex | ( | ) |
Definition at line 96 of file scan.c.
References BADCC, CCLASS, DIGCC, DQUCC, EOFCC, ESCCHAR, FALSE, gc_malloc_atomic, GETCHR, LETCC, nresids, nresops, OPID, OPRCC, pflag, QSTRING, rdposition(), reschk(), residtab, resoptab, scansavc, scanstk, SEPCC, SQUCC, stktop, stt_enter(), tokenbuf, tokenlgth, UQSTRING, WHTCC, WORDID, yydebug, yyinfnm, yyline, yylval, yyperror(), and yyvline.
Referenced by main().
| yyunlex | ( | int | tok | ) |
int scanstk[STKSIZE] [static] |
int stktop = -1 [static] |
| int tokenlgth |
| int yycolno = 0 |
| char* yyinfnm |
Definition at line 56 of file scan.c.
Referenced by main(), rdposition(), yylex(), yyperror(), and yywarn().
| int yyline = 0 |
Definition at line 54 of file scan.c.
Referenced by main(), rdposition(), yylex(), yyperror(), and yywarn().
1.5.4