xo-reader: refactor: parserstatemachine w/ exprstate.on_lambda_token

This commit is contained in:
Roland Conybeare 2024-08-19 00:54:45 -04:00
commit 8cae38817b
7 changed files with 22 additions and 16 deletions

View file

@ -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: