X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lexer%2Fsyntactic_analyzer.c;h=b9787df6976e51eccc1a8d9a1dd7baae08e43e8c;hb=dfbc1df9a95408687918ecc2bc6774d4646dd4f9;hp=5f14600699f60354ca18cf31189703244c7996d4;hpb=4a12843dc39175cab8102af9cd3397e2eb29a027;p=TP_AL_C.git diff --git a/lexer/syntactic_analyzer.c b/lexer/syntactic_analyzer.c index 5f14600..b9787df 100644 --- a/lexer/syntactic_analyzer.c +++ b/lexer/syntactic_analyzer.c @@ -1,7 +1,6 @@ /* Syntactic analyzer */ #include -#include #include #include "global_vars.h" @@ -47,10 +46,10 @@ static void analyze_P() { #if PRINT_TOKEN wprint_ctoken(stdout); #endif /* PRINT_TOKEN */ - scanner(); if (target != NULL) { fputws(L"

\n", target); } + scanner(); analyze_TEXT(); if (target != NULL) { fputws(L"\n

\n", target); @@ -84,8 +83,8 @@ static void analyze_HEAD() { #if PRINT_TOKEN wprint_ctoken(stdout); #endif /* PRINT_TOKEN */ - scanner(); fputws(L"", target); } else if (tokenType != NPARA && tokenType != SECTION && tokenType != FIN) { @@ -217,6 +216,9 @@ void analyze_AXIOME() { if (target != NULL) { fputws(L"\n\n", target); } + #if PRINT_TOKEN + wprint_ctoken(stdout); + #endif /* PRINT_TOKEN */ if (tokenType != FIN) { fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]); fflush(stderr);