frontend: implement debug printing of IVY_ASM_TOK_LABEL_REF lexer tokens

This commit is contained in:
2025-05-12 15:53:43 +01:00
parent d746ea5234
commit 656e24b8a7

View File

@@ -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;