Year 2 compilers coureswork

types.h 295B

12345678910111213141516171819202122
  1. #ifndef TYPES_H
  2. #define TYPES_H
  3. #include "nodes.h"
  4. typedef struct binding {
  5. TOKEN* name;
  6. NODE* tree;
  7. struct environ *env;
  8. } BIND;
  9. typedef struct blist {
  10. BIND* binding;
  11. struct blist *next;
  12. } BLIST;
  13. typedef struct environ {
  14. BLIST *bindings;
  15. struct environ *parent;
  16. } ENV;
  17. #endif