frontend: add token coordinates to print_lex_token output

This commit is contained in:
2025-05-08 10:53:35 +01:00
parent 475575f76f
commit 9f963c5757

View File

@@ -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]");