prefix op reduction

This commit is contained in:
greg 2018-05-11 00:47:56 -07:00
parent 9de66a9af3
commit ec5580d20b
1 changed files with 2 additions and 1 deletions

View File

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