Updated some more changes.
This commit is contained in:
parent
481667f2d8
commit
f404acdbad
3 changed files with 23 additions and 17 deletions
|
|
@ -24,10 +24,13 @@ data Exp
|
|||
| ELet Bind ExpT
|
||||
| EApp ExpT ExpT
|
||||
| EAdd ExpT ExpT
|
||||
| ECase ExpT [Injection]
|
||||
| ECase ExpT [Branch]
|
||||
deriving (Show, Ord, Eq)
|
||||
|
||||
data Injection = Injection (Init, Type) ExpT
|
||||
data Pattern = PVar Id | PLit (Lit, Type) | PInj Ident [Pattern] | PCatch
|
||||
deriving (Eq, Ord, Show)
|
||||
|
||||
data Branch = Branch (Pattern, Type) ExpT
|
||||
deriving (Eq, Ord, Show)
|
||||
|
||||
type ExpT = (Exp, Type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue