From 9f963c57576c24c2ff44905c7e46b6f8a6aac05d Mon Sep 17 00:00:00 2001 From: Max Wash Date: Thu, 8 May 2025 10:53:35 +0100 Subject: [PATCH] frontend: add token coordinates to print_lex_token output --- frontend/debug.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/debug.c b/frontend/debug.c index 8e9bf6a..45b2c51 100644 --- a/frontend/debug.c +++ b/frontend/debug.c @@ -9,6 +9,9 @@ extern void print_lex_token(struct ivy_token *tok) { + printf("[%lu:%lu - %lu:%lu] ", tok->t_start.p_row, tok->t_start.p_col, + tok->t_end.p_row, tok->t_end.p_col); + switch (tok->t_type) { case IVY_TOK_KEYWORD: b_puts("[magenta]");