From 1e712cf04567c48100526f9a3a0f796497168268 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Sat, 18 Jul 2026 23:38:59 -0700 Subject: type system surely --- ast.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 71c400c..bc23a1c 100644 --- a/ast.h +++ b/ast.h @@ -7,8 +7,7 @@ struct stmt_node; struct expr_node; struct type_ref_node { - unsigned char ptr_level; - const struct type_def* def_ref; + struct type type; }; struct int_lit_node { @@ -126,6 +125,8 @@ struct fn_decl_node { struct args_decl_node* args; struct group_node body; struct scope* scope; + + const struct type_def* resolved_return_type; }; struct return_node { @@ -189,7 +190,7 @@ struct ast { const struct type_def* char_type; const struct type_def* integral_type; const struct type_def* decimal_type; - const struct type_def* string_type; + const struct type_def* pointer_type; }; void ast_destroy(struct ast* ast); -- cgit v1.2.3