From: pimjager Date: Thu, 26 May 2016 09:51:27 +0000 (+0200) Subject: testfiles X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=edffe9d20da4a45dbe18135b3857737598b6b96b;p=cc1516.git testfiles --- diff --git a/examples/readWrite.spl b/examples/readWrite.spl new file mode 100644 index 0000000..66573ea --- /dev/null +++ b/examples/readWrite.spl @@ -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 index 0000000..3da3635 --- /dev/null +++ b/examples/tempTest.spl @@ -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