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
|
|
@ -14,6 +14,15 @@ namespace xo {
|
|||
return std::make_unique<lambda_xs>(lambda_xs());
|
||||
}
|
||||
|
||||
void
|
||||
lambda_xs::start(exprstatestack * p_stack,
|
||||
rp<Expression> * p_emit_expr)
|
||||
{
|
||||
p_stack->push_exprstate(lambda_xs::make());
|
||||
p_stack->top_exprstate()
|
||||
.on_lambda_token(token_type::lambda(), p_stack, p_emit_expr);
|
||||
}
|
||||
|
||||
lambda_xs::lambda_xs() : exprstate(exprstatetype::lambdaexpr) {}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue