Constructor eval

This commit is contained in:
greg 2018-06-12 20:42:05 -07:00
parent e6679ff523
commit 3f2fff276c
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ impl<'a> State<'a> {
}
},
Val(v) => self.value(v),
constr @ Constructor { .. } => Ok(constr),
func @ Func(_) => Ok(func),
Tuple(exprs) => Ok(Tuple(exprs.into_iter().map(|expr| self.expression(expr)).collect::<Result<Vec<Expr>,_>>()?)),
Conditional { box cond, then_clause, else_clause } => self.conditional(cond, then_clause, else_clause),