Small improvements, some errors here and there
[cc1516.git] / examples / StmtEx.spl
index 35ff096..192eca1 100644 (file)
@@ -4,6 +4,8 @@ var z = 3 + y;
 Int a = facR(4);
 //Int b = test(3);
 var f = beep();
+var n = True;
+var l = 1:2:[];
 
 facR(n) :: Int -> Int {
     test(3);
@@ -15,11 +17,15 @@ facR(n) :: Int -> Int {
     return 5;
 }
 
-test(n) :: Int -> Int {
+test(e) :: Int -> Bool {
     var i = 0;
-    facR(2);
-    while (z < 3) {
-        return 3;
+    i = 1;
+    l.tl = 4:[];
+    l.tl.hd = 3;
+    //l= 1:3:[]
+    facR(z);
+    while (e < 3) {
+        return True;
     }
 }