diff options
Diffstat (limited to 'ast.h')
| -rw-r--r-- | ast.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |
