repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of https://github.com/dopefishh/cc1516
[cc1516.git]
/
AST.icl
diff --git
a/AST.icl
b/AST.icl
index
774e158
..
d2d1a95
100644
(file)
--- a/
AST.icl
+++ b/
AST.icl
@@
-26,6
+26,9
@@
instance print FunDecl where
["{\n\t":printersperse "\n\t" vs] ++
["\n":printStatements ss 1] ++ ["}\n"]
["{\n\t":printersperse "\n\t" vs] ++
["\n":printStatements ss 1] ++ ["}\n"]
+instance toString FunDecl where
+ toString fd = concat $ print fd
+
printStatements :: [Stmt] Int -> [String]
printStatements [] i = []
printStatements [s:ss] i = (case s of
printStatements :: [Stmt] Int -> [String]
printStatements [] i = []
printStatements [s:ss] i = (case s of