minor logging adds
This commit is contained in:
parent
d3ad841806
commit
dc056cbc37
8 changed files with 27 additions and 5 deletions
|
|
@ -56,9 +56,14 @@ namespace xo {
|
|||
expr_span += used_span;
|
||||
|
||||
if (tk.is_valid()) {
|
||||
log && log("input_state.current_line", tokenizer_.input_state().current_line());
|
||||
|
||||
/* forward just-read token to parser */
|
||||
auto parser_result = this->parser_.include_token(tk);
|
||||
|
||||
log && log("after parser.include_token");
|
||||
log && log("input_state.current_line", tokenizer_.input_state().current_line());
|
||||
|
||||
if (parser_result.is_expression()) {
|
||||
log && log(xtag("outcome", "victory!"),
|
||||
xtag("expr", parser_result.result_expr()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue