/* Syntactic analyzer */
#include <stdbool.h>
-#include <stdarg.h>
#include <stdlib.h>
#include "global_vars.h"
#if PRINT_TOKEN
wprint_ctoken(stdout);
#endif /* PRINT_TOKEN */
- scanner();
if (target != NULL) {
fputws(L"<p>\n", target);
}
+ scanner();
analyze_TEXT();
if (target != NULL) {
fputws(L"\n</p>\n", target);
#if PRINT_TOKEN
wprint_ctoken(stdout);
#endif /* PRINT_TOKEN */
- scanner();
fputws(L"<meta name=\"author\" content=\"", target);
+ scanner();
analyze_TEXT();
fputws(L"\">", target);
} else if (tokenType != NPARA && tokenType != SECTION && tokenType != FIN) {
if (target != NULL) {
fputws(L"\n<body>\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);