X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2Fhigh.spl;h=65f84340fa65f1a153b1fee774ee5cd31b069608;hb=e33962666f8af6a34432d57180eb322f4543eb78;hp=6750769b83beb983ed1359b2d7c037731f35f72e;hpb=978dc486bf8c83cf9cad0925e3128574639656e0;p=cc1516.git diff --git a/examples/high.spl b/examples/high.spl index 6750769..65f8434 100644 --- a/examples/high.spl +++ b/examples/high.spl @@ -2,8 +2,24 @@ plus(x, y) { return x + y; } +run(x) { + x(); + return; +} + +helloworld() { + print('h':'e':'l':'l':'o':' ':'w':'o':'r':'l':'d':'!':[]); + return; +} + main (){ - - var f = plus(); + var abc = "hello world"; + var a = read; + var b = read(); + var c = plus; + var d = plus(1); + var e = plus(1, 2); + var f = d(41); + run(helloworld); return 5; }