repositories
/
cc1516.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix escapes in literal strings
[cc1516.git]
/
examples
/
high.spl
1
plus(x, y) {
2
return x + y;
3
}
4
5
run(x) {
6
x();
7
return;
8
}
9
10
helloworld() {
11
print('h':'e':'l':'l':'o':' ':'w':'o':'r':'l':'d':'!':[]);
12
return;
13
}
14
15
main (){
16
var abc = "hello world";
17
var a = read;
18
var b = read();
19
var c = plus;
20
var d = plus(1);
21
var e = plus(1, 2);
22
var f = d(41);
23
run(helloworld);
24
return 5;
25
}