Commits

Anonymous committed 0fc618d

Remove trivial examples, but add one of that song about beer.

Comments (0)

Files changed (3)

eg/99-bottles.xoo

+l := $.loop*
+$.bottles := 99
+l.do := {
+  y := x
+  print $.bottles;
+  print string " bottles of beer on the wall,"
+  print $.bottles;
+  print string " bottles of beer,"
+  print string "Take one down, pass it around,"  
+  o := $.sub*
+  o.x := $.bottles
+  o.y := 1
+  $.bottles := o.result
+  i := $.if*
+  i.then := {
+    y := x
+    print $.bottles;
+  }
+  i.else := {
+    y := x
+    print string "No more";
+  }
+  i.cond := $.bottles
+  print string " bottles of beer on the wall."
+  print string ""
+  continue := o.result
+}

eg/assign1.xoo

-a := 1
-b := a
-print b

eg/assign2.xoo

-a := {
-  c := 5
-  d := c
-}
-print a
-print a.d
-a.c := 7
-print a