prefix op reduction
This commit is contained in:
parent
9de66a9af3
commit
ec5580d20b
@ -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()]}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user