Typeinference/checking on expressions done.

Simplified the typechecker a bit, removed GADT solution for now.
Still not fully working
This commit is contained in:
sebastianselander 2023-01-24 16:39:22 +01:00
parent b6b2dfa25f
commit be3fcfc9e3
5 changed files with 153 additions and 63 deletions

View file

@ -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" ;