xo-reader: rename+: exprstate.on_leftparen() -> on_leftparen_token()

This commit is contained in:
Roland Conybeare 2024-08-09 13:25:59 -04:00
commit 8d1ae35075
8 changed files with 25 additions and 16 deletions

View file

@ -409,8 +409,9 @@ namespace xo {
}
void
define_xs::on_leftparen(exprstatestack * /*p_stack*/,
rp<Expression> * /*p_emit_expr*/)
define_xs::on_leftparen_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));

View file

@ -562,8 +562,9 @@ namespace xo {
}
void
exprstate::on_leftparen(exprstatestack * p_stack,
rp<Expression> * /*p_emit_expr*/)
exprstate::on_leftparen_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));
@ -670,7 +671,7 @@ namespace xo {
return;
case tokentype::tk_leftparen:
this->on_leftparen(p_stack, p_emit_expr);
this->on_leftparen_token(tk, p_stack, p_emit_expr);
return;
case tokentype::tk_rightparen:

View file

@ -142,8 +142,9 @@ namespace xo {
}
void
paren_xs::on_leftparen(exprstatestack * /*p_stack*/,
rp<Expression> * /*p_emit_expr*/)
paren_xs::on_leftparen_token(const token_type & /*tk*/,
exprstatestack * /*p_stack*/,
rp<Expression> * /*p_emit_expr*/)
{
constexpr const char * c_self_name = "paren_xs::on_leftparen";

View file

@ -137,8 +137,9 @@ namespace xo {
}
void
progress_xs::on_leftparen(exprstatestack * /*p_stack*/,
rp<Expression> * /*p_emit_expr*/)
progress_xs::on_leftparen_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));