xo-reader: refactor: simplify lambda_xs api

This commit is contained in:
Roland Conybeare 2024-08-19 00:24:11 -04:00
commit 7767833afb
3 changed files with 16 additions and 4 deletions

View file

@ -40,7 +40,7 @@ namespace xo {
public:
lambda_xs();
static std::unique_ptr<lambda_xs> make();
static void start(exprstatestack * p_stack, rp<Expression> * p_emit_expr);
virtual void on_lambda_token(const token_type & tk,
exprstatestack * p_stack,
@ -55,6 +55,9 @@ namespace xo {
exprstatestack * p_stack,
rp<Expression> * p_emit_expr) override;
private:
static std::unique_ptr<lambda_xs> make();
private:
/** parsing state-machine state **/
lambdastatetype lmxs_type_ = lambdastatetype::lm_0;