xo-reader2: DLambdaSsm work towards producing DLambdaExpr [WIP]
This commit is contained in:
parent
15f779d2f8
commit
726f821c4e
8 changed files with 218 additions and 68 deletions
|
|
@ -336,6 +336,23 @@ namespace xo {
|
|||
DLambdaSsm::on_parsed_expression(obj<AExpression> expr,
|
||||
ParserStateMachine * p_psm)
|
||||
{
|
||||
if (lm_state_ == lambdastatetype::lm_4) {
|
||||
this->lmstate_ = lambdastatetype::lm_5;
|
||||
this->body_ = expr;
|
||||
|
||||
// assemble lambda
|
||||
|
||||
obj<AExpression,DLambda> lm_expr = DLambda::make(p_psm->expr_alloc(),
|
||||
xxx typeref,
|
||||
xxx name,
|
||||
local_symtab_,
|
||||
body_);
|
||||
|
||||
p_psm->pop_ssm(); // this lambda
|
||||
p_psm->on_parsed_expression(lm_expr);
|
||||
return;
|
||||
}
|
||||
|
||||
Super::on_parsed_expression(expr, p_psm);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue