xo-reader: refactor: simplify expect_expr_xs api

This commit is contained in:
Roland Conybeare 2024-08-18 23:53:06 -04:00
commit 9a42f02f0c
5 changed files with 15 additions and 9 deletions

View file

@ -37,7 +37,7 @@ namespace xo {
if (lmxs_type_ == lambdastatetype::lm_1) {
this->lmxs_type_ = lambdastatetype::lm_2;
this->argl_ = argl;
p_stack->push_exprstate(expect_expr_xs::expect_rhs_expression());
expect_expr_xs::start(p_stack);
} else {
exprstate::on_formal_arglist(argl, p_stack, p_emit_expr);
}