xo-reader: rename+: exprstate.on_semicolon() -> on_semicolon_token()
This commit is contained in:
parent
1fcac9485b
commit
544c1def4a
8 changed files with 27 additions and 18 deletions
|
|
@ -352,8 +352,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
define_xs::on_semicolon(exprstatestack * p_stack,
|
||||
rp<Expression> * p_emit_expr)
|
||||
define_xs::on_semicolon_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));
|
||||
|
|
|
|||
|
|
@ -524,8 +524,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
exprstate::on_semicolon(exprstatestack * /*p_stack*/,
|
||||
rp<Expression> * /*p_emit_expr*/)
|
||||
exprstate::on_semicolon_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));
|
||||
|
|
@ -696,7 +697,7 @@ namespace xo {
|
|||
return;
|
||||
|
||||
case tokentype::tk_semicolon:
|
||||
this->on_semicolon(p_stack, p_emit_expr);
|
||||
this->on_semicolon_token(tk, p_stack, p_emit_expr);
|
||||
return;
|
||||
|
||||
case tokentype::tk_singleassign:
|
||||
|
|
|
|||
|
|
@ -119,8 +119,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
paren_xs::on_semicolon(exprstatestack * /*p_stack*/,
|
||||
rp<Expression> * /*p_emit_expr*/)
|
||||
paren_xs::on_semicolon_token(const token_type & /*tk*/,
|
||||
exprstatestack * /*p_stack*/,
|
||||
rp<Expression> * /*p_emit_expr*/)
|
||||
{
|
||||
constexpr const char * c_self_name = "paren_xs::on_semicolon";
|
||||
|
||||
|
|
|
|||
|
|
@ -93,8 +93,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
progress_xs::on_semicolon(exprstatestack * p_stack,
|
||||
rp<Expression> * p_emit_expr)
|
||||
progress_xs::on_semicolon_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));
|
||||
|
|
@ -121,7 +122,7 @@ namespace xo {
|
|||
* f. now deliver semicolon; [lparen_1] rejects
|
||||
*/
|
||||
|
||||
p_stack->top_exprstate().on_semicolon(p_stack, p_emit_expr);
|
||||
p_stack->top_exprstate().on_semicolon_token(tk, p_stack, p_emit_expr);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue