Newer
Older
/*
* 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
} TOKEN;
/* ----------------- Exported variables ---------------- */
extern char lexidval[];
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