@@ -0,0 +1,707 @@
+/**%0A * %0A */%0Apackage zoo;%0A%0Aimport java.io.IOException;%0A%0Aimport shapegrammar.Node;%0Aimport turtle.TextualTurtle;%0Aimport turtle.Turtle;%0Aimport turtle.TurtleInterpreter;%0A%0A/**%0A * @author loic%0A *%0A */%0Apublic class SierpinskiTriangle %7B%0A%09%0A%09public static void main(final String%5B%5D args) throws IOException %7B%0A%09%09final TurtleInterpreter%3CTurtle%3E interp = new TurtleInterpreter%3C%3E();%0A%09%09interp.declareRule('A', %22A%E2%88%92B+A+B%E2%88%92A%22, %22F%22);%0A%09%09interp.declareRule('B', %22BB%22, %22F%22);%0A%09%09final Node%3C? super Turtle%3E axiom = interp.createAxiom(%22A-B-B%22);%0A%09%09interp.evaluate(axiom, 1);%0A%09%09axiom.render(new TextualTurtle());%0A%09%09for(int i = 0; i %3C 5; i++) %7B%0A%09%09%09System.out.println();%0A%09%09%09interp.evaluate();%0A%09%09%09axiom.render(new TextualTurtle());%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Add Sierpinski example based on rule declaration.