a bit more work on pattern match + case expr
This commit is contained in:
parent
2401b6437b
commit
7656b46e3f
3 changed files with 22 additions and 13 deletions
|
|
@ -39,6 +39,7 @@ data Exp
|
|||
| EApp Type Exp Exp
|
||||
| EAdd Type Exp Exp
|
||||
| EAbs Type Id Exp
|
||||
| ECase Type Exp [Inj]
|
||||
deriving (C.Eq, C.Ord, C.Read, C.Show)
|
||||
|
||||
data Inj = Inj (Init, Type) Exp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue