xo-reader: rename+: exprstate.on_singleassign() + explicit token
This commit is contained in:
parent
544c1def4a
commit
2cff2b5ca7
8 changed files with 19 additions and 9 deletions
|
|
@ -65,7 +65,8 @@ namespace xo {
|
|||
virtual void on_semicolon_token(const token_type & tk,
|
||||
exprstatestack * p_stack,
|
||||
rp<Expression> * /*p_emit_expr*/) override;
|
||||
virtual void on_singleassign(exprstatestack * p_stack) override;
|
||||
virtual void on_singleassign_token(const token_type & tk,
|
||||
exprstatestack * p_stack) override;
|
||||
virtual void on_leftparen(exprstatestack * p_stack,
|
||||
rp<Expression> * /*p_emit_expr*/) override;
|
||||
virtual void on_rightparen(exprstatestack * p_stack,
|
||||
|
|
|
|||
|
|
@ -138,7 +138,9 @@ namespace xo {
|
|||
virtual void on_semicolon_token(const token_type & tk,
|
||||
exprstatestack * p_stack,
|
||||
rp<Expression> * p_emit_expr);
|
||||
virtual void on_singleassign(exprstatestack * p_stack);
|
||||
/** handle incoming '=' token **/
|
||||
virtual void on_singleassign_token(const token_type & tk,
|
||||
exprstatestack * p_stack);
|
||||
virtual void on_leftparen(exprstatestack * p_stack,
|
||||
rp<Expression> * p_emit_expr);
|
||||
virtual void on_rightparen(exprstatestack * p_stack,
|
||||
|
|
|
|||
|
|
@ -61,7 +61,8 @@ namespace xo {
|
|||
virtual void on_semicolon_token(const token_type & tk,
|
||||
exprstatestack * p_stack,
|
||||
rp<Expression> * /*p_emit_expr*/) override;
|
||||
virtual void on_singleassign(exprstatestack * p_stack) override;
|
||||
virtual void on_singleassign_token(const token_type & tk,
|
||||
exprstatestack * p_stack) override;
|
||||
virtual void on_leftparen(exprstatestack * p_stack,
|
||||
rp<Expression> * /*p_emit_expr*/) override;
|
||||
virtual void on_rightparen(exprstatestack * p_stack,
|
||||
|
|
|
|||
|
|
@ -48,7 +48,8 @@ namespace xo {
|
|||
virtual void on_semicolon_token(const token_type & tk,
|
||||
exprstatestack * p_stack,
|
||||
rp<Expression> * /*p_emit_expr*/) override;
|
||||
virtual void on_singleassign(exprstatestack * p_stack) override;
|
||||
virtual void on_singleassign_token(const token_type & tk,
|
||||
exprstatestack * p_stack) override;
|
||||
virtual void on_leftparen(exprstatestack * p_stack,
|
||||
rp<Expression> * /*p_emit_expr*/) override;
|
||||
virtual void on_rightparen(exprstatestack * p_stack,
|
||||
|
|
|
|||
|
|
@ -382,7 +382,8 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
define_xs::on_singleassign(exprstatestack * p_stack)
|
||||
define_xs::on_singleassign_token(const token_type & /*tk*/,
|
||||
exprstatestack * p_stack)
|
||||
{
|
||||
constexpr bool c_debug_flag = true;
|
||||
scope log(XO_DEBUG(c_debug_flag));
|
||||
|
|
|
|||
|
|
@ -544,7 +544,8 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
exprstate::on_singleassign(exprstatestack * /*p_stack*/) {
|
||||
exprstate::on_singleassign_token(const token_type & /*tk*/,
|
||||
exprstatestack * /*p_stack*/) {
|
||||
constexpr bool c_debug_flag = true;
|
||||
scope log(XO_DEBUG(c_debug_flag));
|
||||
|
||||
|
|
@ -701,7 +702,7 @@ namespace xo {
|
|||
return;
|
||||
|
||||
case tokentype::tk_singleassign:
|
||||
this->on_singleassign(p_stack);
|
||||
this->on_singleassign_token(tk, p_stack);
|
||||
return;
|
||||
|
||||
case tokentype::tk_assign:
|
||||
|
|
|
|||
|
|
@ -131,7 +131,8 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
paren_xs::on_singleassign(exprstatestack * /*p_stack*/)
|
||||
paren_xs::on_singleassign_token(const token_type & /*tk*/,
|
||||
exprstatestack * /*p_stack*/)
|
||||
{
|
||||
constexpr const char * c_self_name = "paren_xs::on_singleassign";
|
||||
|
||||
|
|
|
|||
|
|
@ -126,7 +126,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
progress_xs::on_singleassign(exprstatestack * /*p_stack*/) {
|
||||
progress_xs::on_singleassign_token(const token_type & /*tk*/,
|
||||
exprstatestack * /*p_stack*/)
|
||||
{
|
||||
constexpr const char * self_name = "progress_xs::on_singleassign";
|
||||
|
||||
throw std::runtime_error(tostr(self_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue