xo-reader: rename+: exprstate.on_rightparen() + token arg

This commit is contained in:
Roland Conybeare 2024-08-09 13:30:41 -04:00
commit a51f1d65db
8 changed files with 27 additions and 18 deletions

View file

@ -152,8 +152,9 @@ namespace xo {
}
void
progress_xs::on_rightparen(exprstatestack * p_stack,
rp<Expression> * p_emit_expr)
progress_xs::on_rightparen_token(const token_type & tk,
exprstatestack * p_stack,
rp<Expression> * p_emit_expr)
{
constexpr bool c_debug_flag = true;
scope log(XO_DEBUG(c_debug_flag));
@ -186,7 +187,7 @@ namespace xo {
p_stack->top_exprstate().on_expr(expr, p_stack, p_emit_expr);
/* now deliver rightparen */
p_stack->top_exprstate().on_rightparen(p_stack, p_emit_expr);
p_stack->top_exprstate().on_rightparen_token(tk, p_stack, p_emit_expr);
}