X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=sem.dcl;h=6351c04369b0c83b12d447c031feb6c40c5b427a;hb=5b1c37a52f0d63d4972665f672df100a231a2f57;hp=be207dd4a4d89183238b337dea0cdd3186a53cda;hpb=c270b0fc79caa24c08c2d00c2e8205bbd47921ed;p=cc1516.git diff --git a/sem.dcl b/sem.dcl index be207dd..6351c04 100644 --- a/sem.dcl +++ b/sem.dcl @@ -1,10 +1,16 @@ definition module sem from Data.Either import :: Either -from AST import :: AST -from lex import :: Error -from parse import :: ParserOutput +from AST import :: AST, :: Pos, :: Type +from StdOverloaded import class toString -:: SemOutput :== Either Error AST +:: SemError + = ParseError Pos String + | UnifyError Pos Type Type + | Error String +:: SemOutput :== Either [SemError] AST -sem :: ParserOutput -> SemOutput + +instance toString SemError + +sem :: AST -> SemOutput