aboutsummaryrefslogtreecommitdiff
path: root/include/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ast.h')
-rw-r--r--include/ast.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ast.h b/include/ast.h
index f0020d7..3eb7bb6 100644
--- a/include/ast.h
+++ b/include/ast.h
@@ -26,6 +26,7 @@ typedef struct Binop Binop;
typedef struct Scope Scope;
typedef union {
+ void *data;
FunctionDecl *func_decl;
FunctionCall *func_call;
LhsExpr *lhs_expr;
@@ -116,7 +117,7 @@ typedef struct {
} AstCompilerContext;
Ast ast_none();
-void ast_init(Ast *self, AstValue value, AstType type);
+void ast_init(Ast *self, void *value, AstType type);
BufferView ast_get_name(Ast *self);
CHECK_RESULT int funcdecl_init(FunctionDecl *self, ScopedAllocator *allocator);