summaryrefslogtreecommitdiff
path: root/src/runner/runner.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-08 01:44:37 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-08 01:44:37 +0330
commit1b8c8fb55ae5a2bc48951b65b01eb83d75ab4715 (patch)
tree8eeaa2f7dde63223b67375e1411ad3d5c9d246e3 /src/runner/runner.c
parent79360f43b87cbb0e7ec3abca4c08406866fbf26a (diff)
fix some bugs for return
Diffstat (limited to 'src/runner/runner.c')
-rw-r--r--src/runner/runner.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runner/runner.c b/src/runner/runner.c
index 1a9b24c..902dd93 100644
--- a/src/runner/runner.c
+++ b/src/runner/runner.c
@@ -120,6 +120,7 @@ AstTree *calcAstTreeValue(AstTree *tree) {
}
case AST_TREE_TOKEN_FUNCTION:
case AST_TREE_TOKEN_KEYWORD_PRINT_U64:
+ case AST_TREE_TOKEN_KEYWORD_RETURN:
case AST_TREE_TOKEN_TYPE_TYPE:
case AST_TREE_TOKEN_TYPE_FUNCTION:
case AST_TREE_TOKEN_TYPE_VOID:
@@ -138,6 +139,7 @@ AstTree *deepCopyAstTree(AstTree *tree) {
case AST_TREE_TOKEN_VARIABLE:
case AST_TREE_TOKEN_FUNCTION:
case AST_TREE_TOKEN_KEYWORD_PRINT_U64:
+ case AST_TREE_TOKEN_KEYWORD_RETURN:
case AST_TREE_TOKEN_TYPE_TYPE:
case AST_TREE_TOKEN_TYPE_FUNCTION:
case AST_TREE_TOKEN_TYPE_VOID: