A simple LSystem in Python

It turns out that writing a simple LSystem in Python is mind-blowingly easy. The attached file uses Python's regular expressions module to implement a string re-writing program. To turn the output into something like you'd see on Laurens Lapre's site, you'd write a parser that chews through the rewritten string, interpreting to Turtle commands as you go. Download here.

Content by Nick Porcino (c) 1990-2011