repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update help'
[cc1516.git]
/
sem.dcl
diff --git
a/sem.dcl
b/sem.dcl
index
be207dd
..
a2bcd57
100644
(file)
--- a/
sem.dcl
+++ b/
sem.dcl
@@
-1,10
+1,19
@@
definition module sem
definition module sem
+import qualified Data.Map as Map
from Data.Either import :: Either
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
+ | UnifyErrorStub Type Type
+ | Error String
+:: Gamma
+:: SemOutput :== Either [SemError] (AST, Gamma)
-sem :: ParserOutput -> SemOutput
+instance toString SemError
+instance toString Gamma
+
+sem :: AST -> SemOutput