summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-03-20 19:21:54 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-03-20 19:21:54 +0330
commit6a89e51d47a705be9354d29e14cedef2371fa18c (patch)
tree664646850b00d789b44e0d5e7b29e649ab734506 /src
parent69310fa04d9370841c7b4f30c7278fb138b7b2e2 (diff)
made tests auto generated
Diffstat (limited to 'src')
-rw-r--r--src/compiler/lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/lexer.c b/src/compiler/lexer.c
index 54b78ec..d702525 100644
--- a/src/compiler/lexer.c
+++ b/src/compiler/lexer.c
@@ -211,7 +211,7 @@ LexerNodeArray lexer(char *str) {
} else {
RETURN_ERROR:
free(result.data);
- printError(iter, iter + 1, "Unexpected character '%c'", c);
+ printError(iter, iter + 1, "Unexpected character '%c' with code = %d at index %ld", c, c,iter-str);
return LEXER_NODE_ARRAY_ERROR;
}
}