import inria.meije.rc.sugarcubes.*; import inria.meije.rc.io.*; class HelloWorld { public static void main(String[] args){ Instruction print = new Seq(new Await("hello"),new PrintAtom("Hello World!\n")); EventMachine machine = new EventMachine(); machine.add(print); for(int i=0;i<10;i++){ System.out.println("instant "+i+": "); if (i==4) machine.add(new Generate("hello")); machine.react(); } } }