diff options
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/parser.h b/src/parser.h index 3c2dc2b..cc3ba92 100644 --- a/src/parser.h +++ b/src/parser.h | |||
@@ -5,10 +5,15 @@ | |||
5 | #include "nodes.h" | 5 | #include "nodes.h" |
6 | #include "hashtable.h" | 6 | #include "hashtable.h" |
7 | 7 | ||
8 | typedef struct Type { | ||
9 | StringView name; | ||
10 | size_t size; // (bytes) | ||
11 | } Type; | ||
12 | |||
8 | typedef struct Scope { | 13 | typedef struct Scope { |
9 | struct Scope *parent; | 14 | struct Scope *parent; |
10 | HashTable *symbols; | 15 | HashTable *symbols; |
11 | // HashTable types; | 16 | HashTable *types; |
12 | } Scope; | 17 | } Scope; |
13 | 18 | ||
14 | typedef struct ParseTree { | 19 | typedef struct ParseTree { |