token.h 469 B

1234567891011121314151617181920212223
  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. /* $Id$ */
  6. #ifndef _COST_
  7. #include "cost.h"
  8. #endif
  9. typedef struct token {
  10. char *tk_name;
  11. int tk_size;
  12. cost_t tk_cost;
  13. struct {
  14. int ta_type; /* -1 is int, -2 is addr, >=0 is propno */
  15. char *ta_name;
  16. } tk_att[MAXATT];
  17. int tk_format;
  18. } token_t,*token_p;
  19. extern token_p l_tokens[MAXTOKENS];