diff options
Diffstat (limited to 'Token.c')
-rw-r--r-- | Token.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10,7 +10,8 @@ void token_free(Token *tok) void token_print(const Token *tok) { - printf("%u:%u\t%s ", tok->line, tok->column, token_type_str(tok->type)); + fprintf(stderr, "%u:%u\t%s ", + tok->line, tok->column, token_type_str(tok->type)); switch (tok->type) { case TOK_WORD: printf("%s", tok->s); break; case TOK_STRING: printf("\"%s\"", tok->s); break; |