Introduce Closure

This commit is contained in:
Richard Feldman 2019-05-22 21:54:55 -04:00
parent 91aac9a86e
commit 3b34c82b42
2 changed files with 13 additions and 0 deletions

View file

@ -15,6 +15,7 @@ pub enum Expr {
Func(String, Box<Expr>),
Apply(Box<Expr>, Box<Expr>),
Operator(Box<Expr>, Operator, Box<Expr>),
Closure(Vec<Pattern>, Box<Expr>),
If(Box<Expr>, Box<Expr>, Box<Expr>),
}