From ec5580d20bbe9e96258398a1d81df351e8e96546 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 11 May 2018 00:47:56 -0700 Subject: [PATCH] prefix op reduction --- schala-lang/src/ast_reducing.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schala-lang/src/ast_reducing.rs b/schala-lang/src/ast_reducing.rs index 4492d1f..fd660f5 100644 --- a/schala-lang/src/ast_reducing.rs +++ b/schala-lang/src/ast_reducing.rs @@ -89,6 +89,7 @@ impl BinOp { impl PrefixOp { fn reduce(&self, arg: &Box) -> Expr { - Expr::UnimplementedSigilValue + let f = Func::BuiltIn(self.sigil().clone()); + Expr::Call { f, args: vec![arg.reduce()]} } }