testfiles
authorpimjager <pim@pimjager.nl>
Thu, 26 May 2016 09:51:27 +0000 (11:51 +0200)
committerpimjager <pim@pimjager.nl>
Thu, 26 May 2016 09:51:27 +0000 (11:51 +0200)
examples/readWrite.spl [new file with mode: 0644]
examples/tempTest.spl [new file with mode: 0644]

diff --git a/examples/readWrite.spl b/examples/readWrite.spl
new file mode 100644 (file)
index 0000000..66573ea
--- /dev/null
@@ -0,0 +1,7 @@
+main() {
+    
+    var y = read();
+    print(y);
+    print("einde");
+
+}
\ No newline at end of file
diff --git a/examples/tempTest.spl b/examples/tempTest.spl
new file mode 100644 (file)
index 0000000..3da3635
--- /dev/null
@@ -0,0 +1,17 @@
+mapP1(xs) {
+    if(isEmpty(xs)) {
+        return [];
+    } else {
+        return (xs.hd + 1) : mapP1(xs.tl);
+    }
+}
+empt() {
+    
+}
+main() {
+    [Int] x = [];
+    [Int] y = [];
+    x = mapP1(x);
+    y = mapP1(x);
+    return;
+}
\ No newline at end of file