git @ Cat's Eye Technologies Velo / 6d4abdc
Add JSONP index of example programs. Chris Pressey 6 years ago
1 changed file(s) with 30 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 files = [
1 [
2 "class.velo",
3 "Jonkers = {\n IO.print {Hello}\n}.create new\n"
4 ],
5 [
6 "concat.velo",
7 "IO.print ({Hello, }.\n concat {world!})\n"
8 ],
9 [
10 "hello-world.velo",
11 "extend IO\na = {Hello, world!}\nprint a\n"
12 ],
13 [
14 "if.velo",
15 "yes = {IO.print {Yes}}\nno = {IO.print {No}}\nif ({X}.equals {Y}), yes, no\nif ({X}.equals {X}), yes, no\n"
16 ],
17 [
18 "method-args.velo",
19 "bar = {IO.print {Hello, }.concat #1}.method\nbar {there.}\n"
20 ],
21 [
22 "recur.velo",
23 "count = {\n temp = #1\n if (temp.equals {XXXXXX}), { IO.print {Done!}}, {\n IO.print temp\n count temp.concat {X}\n }\n}.method\ncount {X}\n"
24 ],
25 [
26 "script-method.velo",
27 "eeyore = IO\nfoo = {eeyore.print {Hello, world! Sincerely yours, foo.}}.method\nfoo\n"
28 ]
29 ];