From: Jérôme Benoit Date: Mon, 13 Nov 2017 17:39:23 +0000 (+0100) Subject: Beautify the token list output. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3db137c9fd807dbc42d1fa619e2ef17cc479c805;p=TP_AL_C.git Beautify the token list output. Signed-off-by: Jérôme Benoit --- diff --git a/lexer/main.c b/lexer/main.c index 691d54e..0cdc70b 100644 --- a/lexer/main.c +++ b/lexer/main.c @@ -237,7 +237,7 @@ int main() { wprintf(L"Scanner error with token value: %ls\n", token[tokenFound].value); exit(EXIT_FAILURE); } - if (c != WEOF) { + if (tokenType == MOT || tokenType == MOTCLE) { wprintf(L"%20s: %ls\n", tokenTypestr[tokenType], token[tokenFound].value); } else { wprintf(L"%20s\n", tokenTypestr[tokenType]);