summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
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);