1994-06-24 11:31:16 +00:00
|
|
|
/* $Id$ */
|
1987-03-09 19:15:41 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1987-01-06 15:16:53 +00:00
|
|
|
/* D E F I N I T I O N S F O R T H E L E X I C A L A N A L Y Z E R */
|
|
|
|
|
|
|
|
/* A token from the input stream is represented by an integer,
|
|
|
|
called a "symbol", but it may have other information associated
|
|
|
|
to it.
|
|
|
|
*/
|
|
|
|
|
1987-08-19 10:36:37 +00:00
|
|
|
#include <em_arith.h>
|
|
|
|
|
1987-01-06 15:16:53 +00:00
|
|
|
/* the structure of a token: */
|
|
|
|
struct token {
|
|
|
|
int tok_symb; /* the token itself */
|
|
|
|
union {
|
1987-08-19 10:36:37 +00:00
|
|
|
arith tok_val; /* numeric values */
|
1987-01-06 15:16:53 +00:00
|
|
|
char *tok_str; /* string/filespecifier */
|
|
|
|
} tok_data;
|
|
|
|
};
|
|
|
|
|
|
|
|
#include "file_info.h"
|
|
|
|
|
|
|
|
#define tk_symb tok_symb
|
|
|
|
#define tk_val tok_data.tok_val
|
|
|
|
#define tk_str tok_data.tok_str
|
|
|
|
|
|
|
|
extern struct token dot;
|
|
|
|
|
|
|
|
extern int ReplaceMacros; /* "LLlex.c" */
|
|
|
|
extern int AccFileSpecifier; /* "LLlex.c" */
|
|
|
|
extern int AccDefined; /* "LLlex.c" */
|
|
|
|
extern int UnknownIdIsZero; /* "LLlex.c" */
|
|
|
|
|
|
|
|
extern int NoUnstack; /* "input.c" */
|
|
|
|
extern int Unstacked; /* "input.c" */
|
|
|
|
|
|
|
|
extern int err_occurred; /* "error.c" */
|
|
|
|
|
|
|
|
#define DOT dot.tk_symb
|
|
|
|
|
|
|
|
#define EOF (-1)
|