infer voor statements
[cc1516.git] / AST.dcl
diff --git a/AST.dcl b/AST.dcl
index f415045..4f65b0e 100644 (file)
--- a/AST.dcl
+++ b/AST.dcl
@@ -6,10 +6,11 @@ from StdOverloaded import class toString, class ==, class zero, class <
 :: Pos = {line :: Int, col :: Int}
 :: AST = AST [FunDecl]
 :: VarDecl = VarDecl Pos (Maybe Type) String Expr
+:: TVar :== String
 :: Type 
        = TupleType (Type, Type)
        | ListType Type
-       | IdType String 
+       | IdType TVar 
        | IntType 
        | BoolType
        | CharType
@@ -47,3 +48,4 @@ instance == Op1
 instance == Op2
 instance < Op1
 instance < Op2
+instance == Type