Year 2 compilers coureswork

token.h 253B

12345678910111213141516171819
  1. #ifndef __TOKEN_H
  2. #define __TOKEN_H
  3. #define TRUE 1
  4. #define FALSE 0
  5. #define TEST_MODE 0
  6. typedef struct TOKEN
  7. {
  8. int type;
  9. char *lexeme;
  10. int value;
  11. struct TOKEN *next;
  12. } TOKEN;
  13. extern TOKEN* new_token(int);
  14. #endif