xo-reader: ++ logging

This commit is contained in:
Roland Conybeare 2024-08-28 12:58:49 -04:00
commit c46c0f1cc4
6 changed files with 43 additions and 3 deletions

View file

@ -100,6 +100,19 @@ namespace xo {
->top_exprstate().on_semicolon_token(tk, this);
}
void
parserstatemachine::on_operator_token(const token_type & tk)
{
constexpr bool c_debug_flag = true;
scope log(XO_DEBUG(c_debug_flag));
log && log(xtag("tk", tk),
xtag("psm", *this));
this->p_stack_
->top_exprstate().on_operator_token(tk, this);
}
void
parserstatemachine::on_leftbrace_token(const token_type & tk)
{