From 3f2fff276c9aa0fe92ef1a66fcc2b9a5a0af091b Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 12 Jun 2018 20:42:05 -0700 Subject: [PATCH] Constructor eval --- schala-lang/src/eval.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/schala-lang/src/eval.rs b/schala-lang/src/eval.rs index ca6c270..8cc40a0 100644 --- a/schala-lang/src/eval.rs +++ b/schala-lang/src/eval.rs @@ -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::,_>>()?)), Conditional { box cond, then_clause, else_clause } => self.conditional(cond, then_clause, else_clause),