summaryrefslogtreecommitdiff
path: root/Token.c
diff options
context:
space:
mode:
Diffstat (limited to 'Token.c')
-rw-r--r--Token.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Token.c b/Token.c
index 7f7fc27..3d273a2 100644
--- a/Token.c
+++ b/Token.c
@@ -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;