start adding error message support

This commit is contained in:
2025-07-09 01:55:40 +01:00
parent 9e5e932d39
commit e234ea074b
19 changed files with 293 additions and 115 deletions

View File

@@ -108,8 +108,6 @@ int yywrap(void * unused_param) {
#[^\n]* { /* skip comment */ }
. {
GET_STATE
fprintf(stderr, "%s:%zu:%zu error: unexpected character '%s'\n", state->path, state->current_line+1, COLUMN_NO+1, yytext);
exit(1);
return TOKEN_INVALID;
}
%%