aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-30 19:57:25 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-30 19:57:25 +0330
commitbb3822cbb347c712925530ded451fc9027f3b26f (patch)
tree19e3d3fdb99aa61f331346eeb559e5a625e94b7a /src
parent1f529259c67dad4828908d502f40cb71d0345c56 (diff)
add more memory management stuff
Diffstat (limited to 'src')
-rw-r--r--src/compiler/lexer.h2
-rw-r--r--src/runner/runner.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/lexer.h b/src/compiler/lexer.h
index f3292ae..8d62b14 100644
--- a/src/compiler/lexer.h
+++ b/src/compiler/lexer.h
@@ -74,7 +74,6 @@ typedef enum LexerToken {
LEXER_TOKEN_SYMBOL_FUNCTION_ARROW,
LEXER_TOKEN_ORDER2 = LEXER_TOKEN_SYMBOL_FUNCTION_ARROW,
- LEXER_TOKEN_SYMBOL_POINTER,
LEXER_TOKEN_KEYWORD_STRUCT,
LEXER_TOKEN_SYMBOL_CLOSE_BRACKET_LEFT,
@@ -85,6 +84,7 @@ typedef enum LexerToken {
LEXER_TOKEN_SYMBOL_PLUS,
LEXER_TOKEN_ORDER4 = LEXER_TOKEN_SYMBOL_PLUS,
+ LEXER_TOKEN_SYMBOL_POINTER,
LEXER_TOKEN_SYMBOL_MINUS,
LEXER_TOKEN_SYMBOL_ADDRESS,
LEXER_TOKEN_SYMBOL_LOGICAL_NOT,
diff --git a/src/runner/runner.c b/src/runner/runner.c
index 611d55f..52be448 100644
--- a/src/runner/runner.c
+++ b/src/runner/runner.c
@@ -2409,6 +2409,7 @@ AstTree *castTo(AstTree *tree, AstTree *to) {
case AST_TREE_TOKEN_TYPE_C_LIBRARY:
case AST_TREE_TOKEN_TYPE_C_FUNCTION:
}
+ printLog("%s", AST_TREE_TOKEN_STRINGS[tree->token]);
UNREACHABLE;
}