repositories
/
cc1516.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25ec615
)
ding
author
Mart Lubbers
<mart@martlubbers.net>
Fri, 20 May 2016 14:44:41 +0000
(16:44 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Fri, 20 May 2016 14:44:41 +0000
(16:44 +0200)
examples/high.spl
patch
|
blob
|
history
diff --git
a/examples/high.spl
b/examples/high.spl
index
bee8ccb
..
a6ce7de
100644
(file)
--- 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;
}