From 07e7d83c6058b08ec6c81c704a19bee6cf4c96aa Mon Sep 17 00:00:00 2001 From: Matteo Flebus Date: Mon, 26 Jan 2026 19:54:43 +0100 Subject: [PATCH] fix(parser): error message now displayed on stderr --- src/parser/grammar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/grammar.h b/src/parser/grammar.h index 80961f1..3faf39d 100644 --- a/src/parser/grammar.h +++ b/src/parser/grammar.h @@ -11,7 +11,7 @@ peek_token(ctx); \ if (token == NULL) \ { \ - puts("Internal error: cannot get the following token"); \ + perror("Internal error: cannot get the following token"); \ return NULL; \ } @@ -19,7 +19,7 @@ pop_token(ctx); \ if (token == NULL) \ { \ - puts("Internal error: cannot get the following token"); \ + perror("Internal error: cannot get the following token"); \ return NULL; \ }