Undeclared error en untested function typing
[cc1516.git] / sem.dcl
1 definition module sem
2
3 import qualified Data.Map as Map
4 from Data.Either import :: Either
5 from AST import :: AST, :: Pos, :: Type, :: FieldSelector
6 from StdOverloaded import class toString
7
8 :: SemError
9 = ParseError Pos String
10 | UnifyError Pos Type Type
11 | FieldSelectorError Pos Type FieldSelector
12 | UndeclaredVariableError Pos String
13 | Error String
14 :: Gamma
15 :: SemOutput :== Either [SemError] (AST, Gamma)
16
17 instance toString SemError
18 instance toString Gamma
19
20 sem :: AST -> SemOutput