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

@ -47,8 +47,11 @@ namespace xo {
return dynamic_cast<const progress_xs *>(x);
}
static std::unique_ptr<progress_xs> make(rp<Expression> valex,
optype optype = optype::invalid);
static void start(rp<Expression> valex,
optype optype,
exprstatestack * p_stack);
static void start(rp<Expression> valex,
exprstatestack * p_stack);
bool admits_f64() const;
@ -89,6 +92,10 @@ namespace xo {
virtual void print(std::ostream & os) const override;
private:
static std::unique_ptr<progress_xs> make(rp<Expression> valex,
optype optype = optype::invalid);
private:
/** assemble expression representing
* value of