When we print the look-ahead token for tracing, add the line/column
location so it can be easily cross-references to the source code.
Signed-off-by: NeilBrown <neil@brown.name>
fputs(reserved_words[tk->num], trace);
else
text_dump(trace, tk->txt, 20);
fputs(reserved_words[tk->num], trace);
else
text_dump(trace, tk->txt, 20);
+ fprintf(trace, ":%d:%d]", tk->line, tk->col);
}
void parser_trace_action(FILE *trace, char *action)
}
void parser_trace_action(FILE *trace, char *action)