summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2026-07-17 18:09:04 -0700
committerCarson Fleming <cflems@cflems.net>2026-07-17 18:09:04 -0700
commitb43aebd9d3c2e072ee2acc50d4381dcb0f01ec98 (patch)
tree26727e2abac02f19a557171fbd8f08ae1d21a68e /ast.h
parentbfb8020c1a64f505537163caa465bd7f06e43f18 (diff)
downloadccc-b43aebd9d3c2e072ee2acc50d4381dcb0f01ec98.tar.gz
type shortcuts for literals
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h7
1 files changed, 7 insertions, 0 deletions
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);