X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=sem.dcl;h=08d8c8df66288f55ef1e5712823b8a8137e95d85;hb=e0fd23079f1f63b83431afe78e9ec218d4609e9a;hp=5c01ba0c5dcbec8ecb3394e5e9a157ce779674ac;hpb=df7fbaaf21817473f51525a2c8f03b0a5a37b823;p=cc1516.git diff --git a/sem.dcl b/sem.dcl index 5c01ba0..08d8c8d 100644 --- a/sem.dcl +++ b/sem.dcl @@ -1,15 +1,15 @@ definition module sem +import qualified Data.Map as Map from Data.Either import :: Either -from AST import :: AST, :: Pos, :: Type +from AST import :: AST, :: Pos, :: Type, :: FieldSelector, :: Op2 +from StdOverloaded import class toString :: SemError - = ParseError Pos String - | UnifyError Pos Type Type - | Error String -:: SemOutput :== Either [SemError] AST - +:: Gamma +:: SemOutput :== Either [SemError] (AST, Gamma) instance toString SemError +instance toString Gamma sem :: AST -> SemOutput