summaryrefslogtreecommitdiff
path: root/src/runner/runner.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-04 05:17:22 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-04 05:17:22 +0330
commitf570c63542bc644d829aff8c470db2385a3c5180 (patch)
tree2ed885895510eab9bc8845d3e14b5e76c064f845 /src/runner/runner.c
parent5c0542111e67d60490c7e218b985d6c6b9eaf9f2 (diff)
add reassignable functions in function scopes (reassignable lambdas)
Diffstat (limited to 'src/runner/runner.c')
-rw-r--r--src/runner/runner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runner/runner.c b/src/runner/runner.c
index f228846..12000ea 100644
--- a/src/runner/runner.c
+++ b/src/runner/runner.c
@@ -787,6 +787,7 @@ AstTree *runExpression(AstTree *expr, bool *shouldRet) {
case AST_TREE_TOKEN_VALUE_BOOL:
case AST_TREE_TOKEN_VALUE_FLOAT:
case AST_TREE_TOKEN_OPERATOR_POINTER:
+ case AST_TREE_TOKEN_FUNCTION:
return copyAstTree(expr);
case AST_TREE_TOKEN_OPERATOR_ADDRESS: {
AstTreeSingleChild *metadata = expr->metadata;
@@ -811,7 +812,6 @@ AstTree *runExpression(AstTree *expr, bool *shouldRet) {
AstTreeVariable *variable = expr->metadata;
return copyAstTree(variable->value);
}
- case AST_TREE_TOKEN_FUNCTION:
case AST_TREE_TOKEN_NONE:
}
UNREACHABLE;