aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h9
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
8typedef struct Scope {
9 struct Scope *parent;
10 HashTable *symbols;
11 // HashTable types;
12} Scope;
6 13
7typedef struct ParseTree { 14typedef struct ParseTree {
8 Node **roots; 15 Node **roots;
16 Scope *global_scope;
17 Scope *current_scope;
9} ParseTree; 18} ParseTree;
10 19
11typedef struct Parser { 20typedef struct Parser {