second massive overhaul of slipway; now it works on all ps1 problems
[fleet.git] / contrib / demo.fleet
index 4d8eed3..64810b1 100644 (file)
@@ -1,20 +1,24 @@
-#import edu.berkeley.fleet.ships
-#ship alu          : Alu2
-#ship debug        : Debug
-#ship command      : Command
+#include "contrib/demo.ships"
 
-0: sendto alu.a;
-0: sendto alu.op;
-42: sendto alu.b;
-1:  sendto alu.b;
-5:  sendto alu.b;
-alu.a:  [*] take, deliver;
-alu.b:  [*] take, deliver;
-alu.op: take; [*] deliver;
 debug.data: [*] take, deliver;
-alu.out:
-  [*]  nop;
-  [*r] take, sendto alu.a;
-  [*r]       sendto debug.data;
-  kill;
+
+1:       sendto alu2.a;
+1:        sendto alu2.b;
+0:        sendto alu2.op;
+0:        sendto alu2.op;
+0:        sendto alu2.op;
+0:        sendto alu2.op;
+
+alu2.out:
+   take;
+   [2]   sendto alu2.a;
+   [2]   sendto alu2.b;
+   take, sendto alu2.a;
+   take, sendto alu2.b;
+   take, sendto debug.data;
+
+alu2.op: [*] take, deliver;
+alu2.a:  [*] take, deliver;
+alu2.b:  [*] take, deliver;
+