LLlex.h 698 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. *
  5. * Author: Ceriel J.H. Jacobs
  6. */
  7. /* T O K E N D E S C R I P T O R D E F I N I T I O N */
  8. /* stripped down version of the one in the Modula-2 compiler */
  9. /* $Id$ */
  10. /* Token structure. Keep it small, as it is part of a parse-tree node
  11. */
  12. struct token {
  13. short tk_symb; /* token itself */
  14. unsigned short tk_lineno; /* linenumber on which it occurred */
  15. struct idf *tk_idf; /* IDENT */
  16. };
  17. #define TOK_IDF tk_idf
  18. extern struct token dot, aside;
  19. extern int ForeignFlag;
  20. #define DOT dot.tk_symb
  21. #define ASIDE aside.tk_symb