diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-04 22:12:17 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-04 22:12:17 +0330 |
commit | 5d43a23a42725d9e88be76ce04260dbd4b57d370 (patch) | |
tree | b70fd8938f1eac3ab424943fb0b246ecba9ae016 /src/runner/runner.c | |
parent | 6bfad51dbde77267368811737d4ecbd557eac2e9 (diff) |
add undefined and fix some struct stuff
Diffstat (limited to 'src/runner/runner.c')
-rw-r--r-- | src/runner/runner.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runner/runner.c b/src/runner/runner.c index 12000ea..94907a7 100644 --- a/src/runner/runner.c +++ b/src/runner/runner.c @@ -782,6 +782,7 @@ AstTree *runExpression(AstTree *expr, bool *shouldRet) { case AST_TREE_TOKEN_TYPE_F64: case AST_TREE_TOKEN_TYPE_F128: case AST_TREE_TOKEN_VALUE_NULL: + case AST_TREE_TOKEN_VALUE_UNDEFINED: case AST_TREE_TOKEN_VALUE_VOID: case AST_TREE_TOKEN_VALUE_INT: case AST_TREE_TOKEN_VALUE_BOOL: @@ -812,6 +813,7 @@ AstTree *runExpression(AstTree *expr, bool *shouldRet) { AstTreeVariable *variable = expr->metadata; return copyAstTree(variable->value); } + case AST_TREE_TOKEN_KEYWORD_STRUCT: case AST_TREE_TOKEN_NONE: } UNREACHABLE; |