aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ast.c b/src/ast.c
index 5f56419..079d45a 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -19,11 +19,12 @@ Ast ast_none() {
Ast ast;
ast.value.func_decl = NULL;
ast.type = AST_NONE;
+ ast.resolve_status = AST_NOT_RESOLVED;
return ast;
}
-void ast_init(Ast *self, AstValue value, AstType type) {
- self->value = value;
+void ast_init(Ast *self, void *value, AstType type) {
+ self->value.data = value;
self->type = type;
self->resolve_status = AST_NOT_RESOLVED;
}
@@ -169,10 +170,11 @@ static void binop_resolve(Binop *self, AstCompilerContext *context) {
ast_resolve(&self->lhs, context);
ast_resolve(&self->rhs, context);
}
-
+/*
static BufferView ast_get_code_reference(Ast *self) {
return ast_get_name(self);
}
+*/
void ast_resolve(Ast *self, AstCompilerContext *context) {
/*