xo-reader: refactor: simplify progress_xs api

This commit is contained in:
Roland Conybeare 2024-08-19 00:06:34 -04:00
commit 6d73caf308
4 changed files with 23 additions and 6 deletions

View file

@ -183,7 +183,7 @@ namespace xo {
switch (this->parenxs_type_) {
case parenexprstatetype::lparen_0: {
this->parenxs_type_ = parenexprstatetype::lparen_1; /* wants on_rightparen */
p_stack->push_exprstate(progress_xs::make(expr.promote()));
progress_xs::start(expr.promote(), p_stack);
return;
}