From: Mart Lubbers Date: Fri, 20 May 2016 14:44:41 +0000 (+0200) Subject: ding X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=326f68d7cf43c8c30fa9ce40ed10cde153859acf;p=cc1516.git ding --- diff --git a/examples/high.spl b/examples/high.spl index bee8ccb..a6ce7de 100644 --- a/examples/high.spl +++ b/examples/high.spl @@ -2,6 +2,16 @@ 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 a = read; var b = read(); @@ -9,5 +19,6 @@ main (){ var d = plus(1); var e = plus(1, 2); var f = d(41); + run(helloworld); return 5; }