aboutsummaryrefslogtreecommitdiff
path: root/src/runner/runner.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-29 21:44:10 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-29 21:44:10 +0330
commit9c7d2cad8ef9bcc019af3924fb72dd896c8c77e7 (patch)
tree68374525dc338e74241f39174903abb730951940 /src/runner/runner.c
parent80d92c10bf4a646861b27c634c765b7f7ce63c69 (diff)
add any type
Diffstat (limited to 'src/runner/runner.c')
-rw-r--r--src/runner/runner.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runner/runner.c b/src/runner/runner.c
index 633e202..04f26b6 100644
--- a/src/runner/runner.c
+++ b/src/runner/runner.c
@@ -1567,6 +1567,7 @@ AstTree *runExpression(AstTree *expr, AstTreeScope *scope, bool *shouldRet,
return ret;
}
case AST_TREE_TOKEN_TYPE_TYPE:
+ case AST_TREE_TOKEN_TYPE_ANY_TYPE:
case AST_TREE_TOKEN_TYPE_FUNCTION:
case AST_TREE_TOKEN_TYPE_VOID:
case AST_TREE_TOKEN_TYPE_BOOL:
@@ -2197,6 +2198,7 @@ AstTree *toRawValue(AstTree *value) {
case AST_TREE_TOKEN_OPERATOR_ARRAY_ACCESS:
case AST_TREE_TOKEN_SCOPE:
case AST_TREE_TOKEN_NONE:
+ case AST_TREE_TOKEN_TYPE_ANY_TYPE:
case AST_TREE_TOKEN_BUILTIN_SIZE_OF:
case AST_TREE_TOKEN_BUILTIN_C_LIBRARY:
case AST_TREE_TOKEN_BUILTIN_C_FUNCTION:
@@ -2402,6 +2404,7 @@ AstTree *castTo(AstTree *tree, AstTree *to) {
case AST_TREE_TOKEN_OPERATOR_ARRAY_ACCESS:
case AST_TREE_TOKEN_SCOPE:
case AST_TREE_TOKEN_NONE:
+ case AST_TREE_TOKEN_TYPE_ANY_TYPE:
case AST_TREE_TOKEN_BUILTIN_SIZE_OF:
case AST_TREE_TOKEN_BUILTIN_C_LIBRARY:
case AST_TREE_TOKEN_BUILTIN_C_FUNCTION:
@@ -2549,6 +2552,7 @@ ffi_type *toFFIType(AstTree *type) {
case AST_TREE_TOKEN_OPERATOR_SHIFT_RIGHT:
case AST_TREE_TOKEN_OPERATOR_ARRAY_ACCESS:
case AST_TREE_TOKEN_SCOPE:
+ case AST_TREE_TOKEN_TYPE_ANY_TYPE:
case AST_TREE_TOKEN_NONE:
}
printLog("%s", AST_TREE_TOKEN_STRINGS[type->token]);