X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2FStmtEx.spl;h=192eca104adda7daef419e7fcde14df482304cbf;hb=d81ba67093ba9f7a9c2f6d47ec51651f99b4b5b3;hp=ef8cb88ef7c57e3f250735414071f68433ca9f47;hpb=da76566f1640467256a8f4e166ebfcd3731aef4b;p=cc1516.git diff --git a/examples/StmtEx.spl b/examples/StmtEx.spl index ef8cb88..192eca1 100644 --- a/examples/StmtEx.spl +++ b/examples/StmtEx.spl @@ -5,6 +5,7 @@ Int a = facR(4); //Int b = test(3); var f = beep(); var n = True; +var l = 1:2:[]; facR(n) :: Int -> Int { test(3); @@ -18,6 +19,10 @@ facR(n) :: Int -> Int { test(e) :: Int -> Bool { var i = 0; + i = 1; + l.tl = 4:[]; + l.tl.hd = 3; + //l= 1:3:[] facR(z); while (e < 3) { return True;