X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2Ftest.spl;h=199cb26b323fbb1097dd053ea6b320ebb0aa5044;hb=39f7799760a30737f57fb2b8ccdb15074ee9ac45;hp=b33297c27ab6cf667195cf836cc9a579e58bafcc;hpb=0f420d3c45aa26b770bf2bda3588ffcc2ed574cf;p=cc1516.git diff --git a/examples/test.spl b/examples/test.spl index b33297c..199cb26 100644 --- a/examples/test.spl +++ b/examples/test.spl @@ -1,15 +1,7 @@ -Bool n = True; - -test(x) :: Int -> Int { - var y = test(x+1); - return y; -} - -f(n) :: Int -> Int{ - var m = n+1; - return n; -} - -test2(x) { - return f(x); +test() { + var x = 5; + var y = 6; + x = x + y; + return y; } +main() {return;} \ No newline at end of file