frontend: implement debug printing of IVY_ASM_TOK_LABEL_REF lexer tokens
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user