aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ast.h
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-13 13:17:28 +0900
committernsfisis <nsfisis@gmail.com>2025-09-13 13:17:28 +0900
commita7c9c3407582f0d8d66539cf90e86fe3100787c5 (patch)
treeb8b4132ee0c116fae50f45107f3ae89a9a1911a6 /src/ast.h
parent8de7fa9da5fd8015f4fcc826b9270061b7b89478 (diff)
downloadducc-a7c9c3407582f0d8d66539cf90e86fe3100787c5.tar.gz
ducc-a7c9c3407582f0d8d66539cf90e86fe3100787c5.tar.zst
ducc-a7c9c3407582f0d8d66539cf90e86fe3100787c5.zip
feat: implement cast expression
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ast.h b/src/ast.h
index e0d8410..ce84739 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -89,6 +89,7 @@ typedef enum {
AstNodeKind_assign_expr,
AstNodeKind_binary_expr,
AstNodeKind_break_stmt,
+ AstNodeKind_cast_expr,
AstNodeKind_cond_expr,
AstNodeKind_continue_stmt,
AstNodeKind_deref_expr,
@@ -178,5 +179,6 @@ AstNode* ast_new_assign_sub_expr(AstNode* lhs, AstNode* rhs);
AstNode* ast_new_ref_expr(AstNode* operand);
AstNode* ast_new_deref_expr(AstNode* operand);
AstNode* ast_new_member_access_expr(AstNode* obj, const char* name);
+AstNode* ast_new_cast_expr(AstNode* operand, Type* result_ty);
#endif