X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2FcodeGen.spl;h=77b02a1235fb6a5564b43b30f352c7fb3222c370;hb=c5e89ecf06145895bd8c8bca19e7e0587cfe1082;hp=5008ef9866ce55a6fd513939ada72f4bbd4c90d3;hpb=53f1053727e36cb97e9670d1392c6e26848707a5;p=cc1516.git diff --git a/examples/codeGen.spl b/examples/codeGen.spl index 5008ef9..77b02a1 100644 --- a/examples/codeGen.spl +++ b/examples/codeGen.spl @@ -33,5 +33,12 @@ main() { // //Bool y1 = isEmpty(x2); //gives weird type error, not sure why // isEmpty(x2); [Int] x1 = 8 : 2 : []; - return x1.hd; + (Bool, Int) z = (True, 2); + var y = z.fst; + var x = (True, 5) : (False,0) : []; + var sdaf = isE(x1); + var z = isEmpty(x1); + Char c = read(); + x.hd.snd = 8; + return; }