Typeinference/checking on expressions done.
Simplified the typechecker a bit, removed GADT solution for now. Still not fully working
This commit is contained in:
parent
b6b2dfa25f
commit
be3fcfc9e3
5 changed files with 153 additions and 63 deletions
|
|
@ -9,9 +9,9 @@ separator Type "->";
|
|||
|
||||
EId. Exp3 ::= Ident ;
|
||||
EInt. Exp3 ::= Integer ;
|
||||
-- EApp. Exp2 ::= Exp2 Exp3 ;
|
||||
EApp. Exp2 ::= Exp2 Exp3 ;
|
||||
EAdd. Exp1 ::= Exp1 "+" Exp2 ;
|
||||
-- EAbs. Exp ::= "\\" Ident ":" Type "." Exp ;
|
||||
EAbs. Exp ::= "\\" Ident ":" Type "." Exp ;
|
||||
coercions Exp 3 ;
|
||||
|
||||
TInt. Type1 ::= "Int" ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue