xo-reader: refactor: parserstatemachine w/ exprstate.on_lambda_token
This commit is contained in:
parent
e5dc8d14d4
commit
8cae38817b
7 changed files with 22 additions and 16 deletions
|
|
@ -60,8 +60,7 @@ namespace xo {
|
|||
|
||||
void
|
||||
exprstate::on_lambda_token(const token_type & tk,
|
||||
exprstatestack * /*p_stack*/,
|
||||
rp<Expression> * /*p_emit_expr*/)
|
||||
parserstatemachine * /*p_psm*/)
|
||||
{
|
||||
this->illegal_input_error("exprstate::on_lambda_token", tk);
|
||||
}
|
||||
|
|
@ -264,7 +263,7 @@ namespace xo {
|
|||
return;
|
||||
|
||||
case tokentype::tk_lambda:
|
||||
this->on_lambda_token(tk, p_stack, p_emit_expr);
|
||||
this->on_lambda_token(tk, p_psm);
|
||||
return;
|
||||
|
||||
case tokentype::tk_i64:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue