xo-reader: refactor: simplify expect_formal_arglist_xs api

This commit is contained in:
Roland Conybeare 2024-08-18 23:59:01 -04:00
commit 5916ac874f
3 changed files with 11 additions and 2 deletions

View file

@ -53,7 +53,7 @@ namespace xo {
public:
expect_formal_arglist_xs();
static std::unique_ptr<expect_formal_arglist_xs> make();
static void start(exprstatestack * p_stack);
virtual void on_leftparen_token(const token_type & tk,
exprstatestack * p_stack,
@ -69,6 +69,9 @@ namespace xo {
rp<Expression> * p_emit_expr) override;
virtual void print(std::ostream & os) const override;
private:
static std::unique_ptr<expect_formal_arglist_xs> make();
private:
/** parsing state-machine state **/
formalarglstatetype farglxs_type_ = formalarglstatetype::argl_0;