X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lexer%2Flexical_analyzer.c;h=6f995ba1c414b209d7603d8296a0b8e5821a8a8e;hb=a20d3e7405deb4b0565e41968ff2047f4e9e37af;hp=905647e932e358ea510ad4d9c601bbb182f8fd68;hpb=224a9916c711eb5a0fe0c2065fdb62a0cf40afaf;p=TP_AL_C.git diff --git a/lexer/lexical_analyzer.c b/lexer/lexical_analyzer.c index 905647e..6f995ba 100644 --- a/lexer/lexical_analyzer.c +++ b/lexer/lexical_analyzer.c @@ -22,7 +22,7 @@ static bool isAlphaNum() { c == L'\''|| c == L'#' || \ c == L'0' || c == L'1' || c == L'2' || c == L'3' || c == L'4' || c == L'5' || c == L'6' || \ c == L'7' || c == L'8' || c == L'9' || \ - // FIXME: Accentued characters (aka multibytes characters) support is still buggy + //FIXME: Accentued characters (aka multibytes characters) support is still buggy c == L'à' || c == L'â' || c == L'ç' || c == L'è' || c == L'é' || c == L'î' || c == L'ô' || \ c == L'ù' || c == L'û' || \ c == L'À' || c == L'Â' || c == L'Ç' || c == L'È' || c == L'É' || c == L'Î' || c == L'Ô' || \ @@ -200,15 +200,16 @@ FIN: error: if (tokenType == MOT || tokenType == MOTCLE) { - wpr_error(L"%s 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"%s 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); }