xo-reader: tidy: rename expstate.on_symbol() -> on_symbol_token()

This commit is contained in:
Roland Conybeare 2024-08-09 13:06:34 -04:00
commit 49cb0f0bba
6 changed files with 32 additions and 21 deletions

View file

@ -348,9 +348,9 @@ namespace xo {
}
void
exprstate::on_symbol(const token_type & tk,
exprstatestack * p_stack,
rp<Expression> * p_emit_expr)
exprstate::on_symbol_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));
@ -662,7 +662,7 @@ namespace xo {
return;
case tokentype::tk_symbol:
this->on_symbol(tk, p_stack, p_emit_expr);
this->on_symbol_token(tk, p_stack, p_emit_expr);
return;
case tokentype::tk_leftparen:

View file

@ -82,9 +82,9 @@ namespace xo {
}
void
paren_xs::on_symbol(const token_type & /*tk*/,
exprstatestack * p_stack,
rp<Expression> * /*p_emit_expr*/)
paren_xs::on_symbol_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

@ -62,9 +62,9 @@ namespace xo {
}
void
progress_xs::on_symbol(const token_type & /*tk*/,
exprstatestack * /*p_stack*/,
rp<Expression> * /*p_emit_expr*/)
progress_xs::on_symbol_token(const token_type & /*tk*/,
exprstatestack * /*p_stack*/,
rp<Expression> * /*p_emit_expr*/)
{
/* illegal input, e.g.
* foo bar