Add match keyword

This commit is contained in:
Richard Feldman 2019-05-28 18:19:04 -04:00
parent 7cb0facacd
commit 878513b1ea
3 changed files with 43 additions and 6 deletions

View file

@ -22,8 +22,11 @@ pub enum Expr {
// Sum Types
ApplyVariant(String, Option<Vec<Expr>>),
// Conditionals
If(Box<Expr>, Box<Expr>, Box<Expr>),
Match(Box<Expr>, Vec<(Pattern, Box<Expr>)>),
// Error
Error(Problem),
}