Syntactic analysis fully working implementation.
[TP_AL_C.git] / lexer / lexical_analyzer.c
index 36acd5e214098b47d2078cac42a2bb4d4779c15a..42ab960eab1287665d4802d77a2532a4dcde2723 100644 (file)
@@ -200,11 +200,13 @@ 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]);
     }
     tokenType = FIN;