LLlex.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* $Header$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. /* 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 */
  7. /* A token from the input stream is represented by an integer,
  8. called a "symbol", but it may have other information associated
  9. to it.
  10. */
  11. /* the structure of a token: */
  12. struct token {
  13. int tok_symb; /* the token itself */
  14. union {
  15. int tok_val; /* numeric values */
  16. char *tok_str; /* string/filespecifier */
  17. } tok_data;
  18. };
  19. #include "file_info.h"
  20. #define tk_symb tok_symb
  21. #define tk_val tok_data.tok_val
  22. #define tk_str tok_data.tok_str
  23. extern struct token dot;
  24. extern int ReplaceMacros; /* "LLlex.c" */
  25. extern int AccFileSpecifier; /* "LLlex.c" */
  26. extern int AccDefined; /* "LLlex.c" */
  27. extern int UnknownIdIsZero; /* "LLlex.c" */
  28. extern int NoUnstack; /* "input.c" */
  29. extern int Unstacked; /* "input.c" */
  30. extern int err_occurred; /* "error.c" */
  31. #define DOT dot.tk_symb
  32. #define EOF (-1)