git @ Cat's Eye Technologies Xoomonk / 475cba0
Remove trivial examples, but add one of that song about beer. catseye 9 years ago
3 changed file(s) with 27 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
0 l := $.loop*
1 $.bottles := 99
2 l.do := {
3 y := x
4 print $.bottles;
5 print string " bottles of beer on the wall,"
6 print $.bottles;
7 print string " bottles of beer,"
8 print string "Take one down, pass it around,"
9 o := $.sub*
10 o.x := $.bottles
11 o.y := 1
12 $.bottles := o.result
13 i := $.if*
14 i.then := {
15 y := x
16 print $.bottles;
17 }
18 i.else := {
19 y := x
20 print string "No more";
21 }
22 i.cond := $.bottles
23 print string " bottles of beer on the wall."
24 print string ""
25 continue := o.result
26 }
+0
-3
eg/assign1.xoo less more
0 a := 1
1 b := a
2 print b
+0
-8
eg/assign2.xoo less more
0 a := {
1 c := 5
2 d := c
3 }
4 print a
5 print a.d
6 a.c := 7
7 print a