From 656e24b8a7feffbfd70a84e3037c00303154e47a Mon Sep 17 00:00:00 2001 From: Max Wash Date: Mon, 12 May 2025 15:53:43 +0100 Subject: [PATCH] frontend: implement debug printing of IVY_ASM_TOK_LABEL_REF lexer tokens --- frontend/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/debug.c b/frontend/debug.c index 5ba9ab7..01e0eee 100644 --- a/frontend/debug.c +++ b/frontend/debug.c @@ -87,6 +87,7 @@ extern void print_asm_lex_token(struct ivy_asm_token *tok) break; case IVY_ASM_TOK_INT: case IVY_ASM_TOK_DOUBLE: + case IVY_ASM_TOK_LABEL_REF: b_puts("[yellow]"); break; case IVY_ASM_TOK_LABEL: @@ -110,6 +111,7 @@ extern void print_asm_lex_token(struct ivy_asm_token *tok) switch (tok->t_type) { case IVY_ASM_TOK_IDENT: case IVY_ASM_TOK_LABEL: + case IVY_ASM_TOK_LABEL_REF: case IVY_ASM_TOK_STRING: printf("(%s)", tok->t_str); break;