From b43aebd9d3c2e072ee2acc50d4381dcb0f01ec98 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Fri, 17 Jul 2026 18:09:04 -0700 Subject: type shortcuts for literals --- ast.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 89fd0f8..918ae68 100644 --- a/ast.h +++ b/ast.h @@ -172,6 +172,13 @@ struct root_node { struct ast { struct root_node* root_node; struct scope* root_scope; + + /* nice shortcuts to have */ + const struct type_def* void_type; + const struct type_def* char_type; + const struct type_def* integral_type; + const struct type_def* decimal_type; + const struct type_def* string_type; }; void ast_destroy(struct ast* ast); -- cgit v1.2.3