mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
refactor parse AST to allow multiple if branches
This commit is contained in:
parent
c208f500d9
commit
4eea0aff7a
6 changed files with 145 additions and 109 deletions
|
@ -127,7 +127,7 @@ pub enum Expr<'a> {
|
|||
UnaryOp(&'a Loc<Expr<'a>>, Loc<UnaryOp>),
|
||||
|
||||
// Conditionals
|
||||
If(&'a Loc<Expr<'a>>, &'a Loc<Expr<'a>>, &'a Loc<Expr<'a>>),
|
||||
If(&'a [(Loc<Expr<'a>>, Loc<Expr<'a>>)], &'a Loc<Expr<'a>>),
|
||||
When(
|
||||
/// The condition
|
||||
&'a Loc<Expr<'a>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue