X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lexer%2Flexical_analyzer.c;h=7c85b4c4973dc8e12a530e3a4112991d3100d4c2;hb=6c47be3237ab266b1cba4e3051afaaaa55e07e52;hp=36acd5e214098b47d2078cac42a2bb4d4779c15a;hpb=9ed84d89d23a6198fd4157bfe93424b7b7582332;p=TP_AL_C.git diff --git a/lexer/lexical_analyzer.c b/lexer/lexical_analyzer.c index 36acd5e..7c85b4c 100644 --- a/lexer/lexical_analyzer.c +++ b/lexer/lexical_analyzer.c @@ -200,13 +200,16 @@ FIN: error: if (tokenType == MOT || tokenType == MOTCLE) { - wpr_error(L"Scanner error with token type: %s and value: %ls\n", + fwprintf(stderr, L"%s error with token type: %s and value: %ls\n", + __func__, tokenTypestr[tokenType], token[tokenFound].value); } else { - wpr_error(L"Scanner error with token type: %s\n", + fwprintf(stderr, L"%s error with token type: %s\n", + __func__, tokenTypestr[tokenType]); } + fflush(stderr); tokenType = FIN; exit(EXIT_FAILURE); }