add box patterns to the parser oops
This commit is contained in:
parent
a17752f31c
commit
1fce4d80f6
1 changed files with 1 additions and 0 deletions
|
@ -194,6 +194,7 @@ mutual
|
||||||
caseBody : Grammar True PCaseBody
|
caseBody : Grammar True PCaseBody
|
||||||
caseBody = braces $
|
caseBody = braces $
|
||||||
[|CasePair (pairPat <* darr) (term <* optSemi)|]
|
[|CasePair (pairPat <* darr) (term <* optSemi)|]
|
||||||
|
<|> [|CaseBox (bracks bname <* darr) (term <* optSemi)|]
|
||||||
<|> CaseNat <$> zeroCase <* resC ";" <*> succCase <* optSemi
|
<|> CaseNat <$> zeroCase <* resC ";" <*> succCase <* optSemi
|
||||||
<|> flip CaseNat <$> succCase <* resC ";" <*> zeroCase <* optSemi
|
<|> flip CaseNat <$> succCase <* resC ";" <*> zeroCase <* optSemi
|
||||||
<|> [|CaseEnum $ semiSep [|MkPair tag (darr *> term)|]|]
|
<|> [|CaseEnum $ semiSep [|MkPair tag (darr *> term)|]|]
|
||||||
|
|
Loading…
Reference in a new issue