C:/Users/Dennis/src/lang/russell.orig/src/pass1/scanner/scan.c File Reference

#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
vrlinevrtable = NIL
vrlinevrtend = NIL
int yyvline = 0
static int scansavc = '\n'
static int scanstk [STKSIZE]
static int stktop = -1
char tokenbuf [1000]
int tokenlgth


Define Documentation

#define CCLASS (  )     ((c) == EOF ? EOFCC : cctab[c])

Definition at line 47 of file scan.c.

Referenced by yylex().

#define ESCCHAR   '#'

Definition at line 22 of file scan.c.

Referenced by yylex().

#define NIL   0

Definition at line 18 of file scan.c.

#define STKSIZE   5

Definition at line 12 of file scan.c.

Referenced by yyunlex().


Typedef Documentation

typedef struct VrLine vrline


Function Documentation

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   
)

Definition at line 413 of file scan.c.

References stt_enter(), tokenbuf, tokenlgth, and yylval.

Referenced by yylex().

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  ) 

Definition at line 444 of file scan.c.

References scanstk, STKSIZE, stktop, and yyperror().


Variable Documentation

int cctab[]

Definition at line 45 of file scan.c.

int nresids

Definition at line 35 of file scan.c.

int nresops

Definition at line 38 of file scan.c.

boolean pflag

Definition at line 125 of file main.c.

Referenced by main(), and yylex().

struct restab residtab[]

Definition at line 34 of file scan.c.

struct restab resoptab[]

Definition at line 37 of file scan.c.

int scansavc = '\n' [static]

Definition at line 80 of file scan.c.

Referenced by yylex().

int scanstk[STKSIZE] [static]

Definition at line 83 of file scan.c.

Referenced by yylex(), and yyunlex().

int stktop = -1 [static]

Definition at line 84 of file scan.c.

Referenced by yylex(), and yyunlex().

char tokenbuf[1000]

Definition at line 86 of file scan.c.

int tokenlgth

Definition at line 87 of file scan.c.

Referenced by rdposition(), reschk(), and yylex().

vrline* vrtable = NIL

Definition at line 75 of file scan.c.

vrline * vrtend = NIL

Definition at line 76 of file scan.c.

int yycolno = 0

Definition at line 55 of file scan.c.

Referenced by charfix(), getchr(), yyperror(), and yywarn().

int yydebug

Definition at line 58 of file scan.c.

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().

int yylval

Definition at line 60 of file scan.c.

Referenced by main(), reschk(), and yylex().

int yyvline = 0

Definition at line 78 of file scan.c.


Generated on Fri Jan 25 10:39:49 2008 for russell by  doxygen 1.5.4