The very talented Tom Krcha has created Drawscript, an Illustrator extension that generates graphics code from vector shapes in real-time.