commit a50e53278c064fb2f42d0c80174177785d7bd893
parent 82adc3c423f00545b845f7dec17861c450dfd7e2
Author: citbl <citbl@citbl.org>
Date: Sun, 10 May 2026 19:02:28 +1000
minor
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/lexer.c b/src/lexer.c
@@ -18,6 +18,8 @@ void print_tokens(Lexer *l)
Token_Type typ;
size_t i;
+ printf("------- print tokens --------\n");
+
for (i = 0; i < l->len; i++) {
t = l->tokens[i];
typ = t.type;
@@ -109,8 +111,7 @@ Lexer *lexer_lex(Lexer *l)
break;
}
- // printf("%zu", l->state.pos);
- printf("unhandled: %c\n", c);
+ printf("unhandled: %zu: %c\n", l->state.pos, c);
l->state.pos++;
}