xo-reader: bugfix: lambda_xs: supply exprstate.exs_type

This commit is contained in:
Roland Conybeare 2024-08-18 11:05:47 -04:00
commit e9289e855e
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ namespace xo {
private:
/** parsing state-machine state **/
lambdastatetype lmxs_type_;
lambdastatetype lmxs_type_ = lambdastatetype::lm_0;
/** formal parameter list **/
std::vector<rp<Variable>> argl_;

View file

@ -14,7 +14,7 @@ namespace xo {
return std::make_unique<lambda_xs>(lambda_xs());
}
lambda_xs::lambda_xs() {}
lambda_xs::lambda_xs() : exprstate(exprstatetype::lambdaexpr) {}
void
lambda_xs::on_lambda_token(const token_type & tk,