X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=sem.dcl;h=a5705977b29780197eb20ccbb152a641a1422df9;hb=c5fb28639ae923d9b55f5832e45186911e610991;hp=e981361a44e0f6f41e100c6788fccc497caacff2;hpb=2953e6cc260d8243e5434b7e787258ab073d34d2;p=cc1516.git diff --git a/sem.dcl b/sem.dcl index e981361..a570597 100644 --- a/sem.dcl +++ b/sem.dcl @@ -6,16 +6,11 @@ from AST import :: AST, :: Pos, :: Type, :: FieldSelector, :: Op2 from StdOverloaded import class toString :: SemError - = ParseError Pos String - | UnifyError Pos Type Type - | FieldSelectorError Pos Type FieldSelector - | OperatorError Pos Op2 Type - | UndeclaredVariableError Pos String - | Error String :: Gamma :: SemOutput :== Either [SemError] (AST, Gamma) +:: Constraints :== [(Type, Type)] instance toString SemError instance toString Gamma -sem :: AST -> SemOutput +sem :: AST -> Either [SemError] (AST, Gamma)