xo-reader: parserstatemachine -> consolidate on_symbol() args

This commit is contained in:
Roland Conybeare 2024-08-19 11:55:11 -04:00
commit 355f73b2a1
9 changed files with 11 additions and 23 deletions

View file

@ -28,7 +28,6 @@ namespace xo {
parserstatemachine * p_psm)
{
auto p_stack = p_psm->p_stack_;
auto p_emit_expr = p_psm->p_emit_expr_;
/* have to do pop first, before sending symbol to
* the o.g. symbol-requester
@ -36,8 +35,7 @@ namespace xo {
std::unique_ptr<exprstate> self = p_stack->pop_exprstate();
p_stack->top_exprstate().on_symbol(tk.text(),
p_stack, p_emit_expr);
p_stack->top_exprstate().on_symbol(tk.text(), p_psm);
return;
}
} /*namespace scm*/