aboutsummaryrefslogtreecommitdiff
path: root/include/parser.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-24 01:19:18 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commitc207014f81fe742675c6e869b59d09e916c69fc6 (patch)
treedc4d82ea1d8ddabcf5fdc0d9eb3a16f5044063e9 /include/parser.h
parentdc90305a767feaacc3430aaee0928b745a8e5b0f (diff)
Resolve cross-file references (with mutex). Not done
Diffstat (limited to 'include/parser.h')
-rw-r--r--include/parser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/parser.h b/include/parser.h
index 92e6d46..a203b7d 100644
--- a/include/parser.h
+++ b/include/parser.h
@@ -35,7 +35,8 @@ typedef enum {
struct Parser {
Tokenizer tokenizer;
- Scope scope;
+ StructDecl struct_decl;
+ LhsExpr file_decl;
Scope *current_scope;
ScopedAllocator *allocator; /* borrowed. Copied from @compiler for faster access to allocator */
amal_compiler *compiler;