xo-reader: refactor: simplify lambda_xs api
This commit is contained in:
parent
0dd66a4bcc
commit
7767833afb
3 changed files with 16 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue