Lsys
(Package: LindenmayeR) :
Rewrite an Axiom Using Production Rules to Give a String Ready for Turtle Graphics
This is the central function for rewriting an initial string of symbols (the axiom) into a new string using production rules. Production rules are very simple: if the symbol is A, turn it into something. If it is B, turn it into something else. Production rules typically contain instructions about moving while drawing, moving w/o drawing, changing direction, or storing the current state for re-use later.