repositories
/
cc1516.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0bac6a
)
Stomme puntjes
author
pimjager
<pim@pimjager.nl>
Fri, 20 May 2016 11:18:56 +0000
(13:18 +0200)
committer
pimjager
<pim@pimjager.nl>
Fri, 20 May 2016 11:18:56 +0000
(13:18 +0200)
AST.icl
patch
|
blob
|
history
examples/codeGen.spl
patch
|
blob
|
history
diff --git
a/AST.icl
b/AST.icl
index
305e8f3
..
24d2af1
100644
(file)
--- a/
AST.icl
+++ b/
AST.icl
@@
-113,7
+113,7
@@
instance toString Expr where
toString e = concat $ print e
printSelectors :: [FieldSelector] -> [String]
-printSelectors
x = case x of [] = [""]; _ = [".":printersperse "." x]
+printSelectors
fs = printersperse "." fs
printFunCall :: String [Expr] [FieldSelector] -> [String]
printFunCall s args fs = [s, "(":printersperse "," args] ++ [")"] ++
diff --git
a/examples/codeGen.spl
b/examples/codeGen.spl
index
59e6b3c
..
4062fb6
100644
(file)
--- a/
examples/codeGen.spl
+++ b/
examples/codeGen.spl
@@
-18,13
+18,13
@@
// return x3 + x1;
//}
-
//
isE(x) :: [a] -> Bool {
-
//
if (x == []) {
-
//
return True;
-
//
} else {
-
//
return False;
-
//
}
-
//
}
+isE(x) :: [a] -> Bool {
+ if (x == []) {
+ return True;
+ } else {
+ return False;
+ }
+}
main() {
// [Int] x2 = 0 : x1;