Drawscript is an extension for Illustrator

It generates graphics code from vector shapes in realtime.

Obj-C
C++
JavaScript
Processing
ActionScript 3
JSON
Raw Bezier Points