diff options
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h index 4d871ad..3c2dc2b 100644 --- a/src/parser.h +++ b/src/parser.h | |||
@@ -3,9 +3,18 @@ | |||
3 | 3 | ||
4 | #include "lexer.h" | 4 | #include "lexer.h" |
5 | #include "nodes.h" | 5 | #include "nodes.h" |
6 | #include "hashtable.h" | ||
7 | |||
8 | typedef struct Scope { | ||
9 | struct Scope *parent; | ||
10 | HashTable *symbols; | ||
11 | // HashTable types; | ||
12 | } Scope; | ||
6 | 13 | ||
7 | typedef struct ParseTree { | 14 | typedef struct ParseTree { |
8 | Node **roots; | 15 | Node **roots; |
16 | Scope *global_scope; | ||
17 | Scope *current_scope; | ||
9 | } ParseTree; | 18 | } ParseTree; |
10 | 19 | ||
11 | typedef struct Parser { | 20 | typedef struct Parser { |