add string literals
[cc1516.git] / examples / high.spl
index bee8ccb..65f8434 100644 (file)
@@ -2,12 +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 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;
 }