diff --git a/parser.c b/parser.c index 0ec8e97..d374549 100644 --- a/parser.c +++ b/parser.c @@ -49,9 +49,9 @@ static void yyerror(const char *fmt, ...) va_start(ap, fmt); - printf("parse error on line %u:\n\t", yyline); - vprintf(fmt, ap); - printf("\n"); + fprintf(stderr, "parse error on line %u:\n\t", yyline); + vfprintf(stderr, fmt, ap); + fprintf(stderr, "\n"); va_end(ap);