prefix op reduction

This commit is contained in:
greg 2018-05-11 00:47:56 -07:00
parent 9de66a9af3
commit ec5580d20b

View File

@ -89,6 +89,7 @@ impl BinOp {
impl PrefixOp { impl PrefixOp {
fn reduce(&self, arg: &Box<Expression>) -> Expr { fn reduce(&self, arg: &Box<Expression>) -> Expr {
Expr::UnimplementedSigilValue let f = Func::BuiltIn(self.sigil().clone());
Expr::Call { f, args: vec![arg.reduce()]}
} }
} }