repositories
/
minfp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
more
[minfp.git]
/
ast.dcl
diff --git
a/ast.dcl
b/ast.dcl
index
4bd177c
..
392b589
100644
(file)
--- a/
ast.dcl
+++ b/
ast.dcl
@@
-20,4
+20,11
@@
from StdOverloaded import class toString
| Char Char
| Func Int [Expression] ([Expression] -> Expression)
-instance toString AST, Function, Expression, Value
+:: Type
+ = TVar [Char]
+ | TInt
+ | TBool
+ | TChar
+ | TFun Type Type
+
+instance toString AST, Function, Expression, Value, Type