git @ Cat's Eye Technologies Unlikely / master eg / add.unlikely
master

Tree @master (Download .tar.gz)

add.unlikely @masterraw · history · blame

class AddTest(Add,Chain,Print,Stop) extends Program {
  Add a;
  Print p;
  Passive zero;
  method continue(Passive accumulator) {
    zero = new 0(Passive);
    zero.next = new Stop(Passive);
    p = new Print(Passive,Chain);
    p.next = zero;
    a = new Add(Passive,Chain);
    a.value = new 2(Passive);
    a.next = p;
    goto a.continue(new 3(Passive));
  }
}