X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=sem.dcl;h=08d8c8df66288f55ef1e5712823b8a8137e95d85;hb=e34b5f088ff9a86da61afbbe91c2c88f895673c7;hp=92f1d51d4860276b98a5bef237cce59b90e48807;hpb=022b8166504765b2c84138fc83dfdfaa23fe5774;p=cc1516.git diff --git a/sem.dcl b/sem.dcl index 92f1d51..08d8c8d 100644 --- a/sem.dcl +++ b/sem.dcl @@ -1,7 +1,15 @@ definition module sem +import qualified Data.Map as Map from Data.Either import :: Either -from AST import :: AST -from lex import :: Error +from AST import :: AST, :: Pos, :: Type, :: FieldSelector, :: Op2 +from StdOverloaded import class toString -semanticAnalysis :: AST -> Either String AST +:: SemError +:: Gamma +:: SemOutput :== Either [SemError] (AST, Gamma) + +instance toString SemError +instance toString Gamma + +sem :: AST -> SemOutput