Skip to content
Snippets Groups Projects
lexer.h 828 B
Newer Older
dcw's avatar
dcw committed
/*
 *                        LEXER FOR THE
 *                        ===== === ===
 *
 *                  DATA DECLARATION BUILDER
 *                  ==== =========== =======
 *
 *      This module is the lexer used by the parser to
 *      interprete the high level data declarations.
 */


/* ----------------- Exported defns     ---------------- */

typedef enum {
        tERROR, tEOF, tSEMI, tID, tEQ, tOR,
        tOPENBR, tCOMMA, tCLOSEBR, tSTR, tNUM
dcw's avatar
dcw committed
} TOKEN;



/* ----------------- Exported variables ---------------- */

extern char lexidval[];
extern int  lexintval;
dcw's avatar
dcw committed
extern int  lineno;
extern FILE *lexfile;


/* ----------------- Public procedures  ---------------- */

#ifdef HASPROTOS
extern TOKEN nexttok( void );
extern void pushbacktok( void );
#else
extern TOKEN nexttok();
extern void pushbacktok();
#endif