mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-04 06:16:00 +03:00
Fix parsing of else branches and lambdas
This commit is contained in:
parent
915379af0e
commit
39eae330b1
@ -355,8 +355,8 @@ ifBranch :: { (Expr, Expr) }
|
||||
|
||||
cexpr :: { Expr }
|
||||
: sig_expr { $1 }
|
||||
| 'if' ifBranches 'else' iexpr { at ($1,$4) $ mkIf $2 $4 }
|
||||
| '\\' apats '->' iexpr { at ($1,$4) $ EFun (reverse $2) $4 }
|
||||
| 'if' ifBranches 'else' cexpr { at ($1,$4) $ mkIf $2 $4 }
|
||||
| '\\' apats '->' cexpr { at ($1,$4) $ EFun (reverse $2) $4 }
|
||||
|
||||
sig_expr :: { Expr }
|
||||
: iexpr { $1 }
|
||||
|
Loading…
Reference in New Issue
Block a user