fix(parser): error message now displayed on stderr

This commit is contained in:
Matteo Flebus 2026-01-26 19:54:43 +01:00
parent 666517e3c1
commit 07e7d83c60

View file

@ -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; \
}