From 6833bc4f0075ab1f1d8dcf8fdcd538780deee411 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 14 Aug 2018 12:43:06 -0700 Subject: [PATCH] Start on CaseMatch eval --- schala-lang/src/eval.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/schala-lang/src/eval.rs b/schala-lang/src/eval.rs index 0104e9b..914ec34 100644 --- a/schala-lang/src/eval.rs +++ b/schala-lang/src/eval.rs @@ -209,7 +209,9 @@ impl<'a> State<'a> { self.values.insert(name.clone(), ValueEntry::Binding { constant: false, val }); Ok(Node::Expr(Expr::Unit)) }, - e => Err(format!("Expr {:?} eval not implemented", e)) + Unit => Ok(Node::Expr(Unit)), + CaseMatch { cond, alternatives } => unimplemented!(), + UnimplementedSigilValue => Err(format!("Sigil value eval not implemented")) } } }