xo-parser: simplify: exprstate::on_singleassign drop retval
This commit is contained in:
parent
880606908b
commit
909101cd8d
2 changed files with 2 additions and 5 deletions
|
|
@ -237,7 +237,7 @@ namespace xo {
|
||||||
exprstatestack * p_stack,
|
exprstatestack * p_stack,
|
||||||
rp<Expression> * p_emit_expr);
|
rp<Expression> * p_emit_expr);
|
||||||
void on_colon(exprstatestack * p_stack);
|
void on_colon(exprstatestack * p_stack);
|
||||||
expraction on_singleassign(exprstatestack * p_stack);
|
void on_singleassign(exprstatestack * p_stack);
|
||||||
void on_f64(const token_type & tk,
|
void on_f64(const token_type & tk,
|
||||||
exprstatestack * p_stack,
|
exprstatestack * p_stack,
|
||||||
rp<Expression> * p_emit_expr);
|
rp<Expression> * p_emit_expr);
|
||||||
|
|
|
||||||
|
|
@ -380,7 +380,7 @@ namespace xo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
expraction
|
void
|
||||||
exprstate::on_singleassign(exprstatestack * p_stack) {
|
exprstate::on_singleassign(exprstatestack * p_stack) {
|
||||||
constexpr bool c_debug_flag = true;
|
constexpr bool c_debug_flag = true;
|
||||||
scope log(XO_DEBUG(c_debug_flag));
|
scope log(XO_DEBUG(c_debug_flag));
|
||||||
|
|
@ -398,11 +398,8 @@ namespace xo {
|
||||||
this->exs_type_ = exprstatetype::def_4;
|
this->exs_type_ = exprstatetype::def_4;
|
||||||
|
|
||||||
p_stack->push_exprstate(exprstatetype::expect_rhs_expression);
|
p_stack->push_exprstate(exprstatetype::expect_rhs_expression);
|
||||||
|
|
||||||
return expraction::keep();
|
|
||||||
} else {
|
} else {
|
||||||
assert(false);
|
assert(false);
|
||||||
return expraction();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue