I spent the better part of today playing with your idea after reading your post in the other thread...even made a mock up with a slow rpm motor. The problem I became tangled in was trying to get the curve of the flank/face's involute correct. If that is not that important then maybe simple x,y,z software can be used where X is the linear, Z is up and down (if it is even needed) and Y is the rotary table with the distance actually in degrees though read and written as inches... just so that one rotation of the table equals some multiple of 360 (like 720 +, to match stepper's gearing and resolution)
In short, you draw a gear, define points with X=distance from center/origin, Y= angle from origin, straighten it to a rack, g-code it, but then cut it with a rotary table.
Again my problem with this cobble was the gear faces were not pretty, one side more convex than the other..then I ran out of time and gumption because I realized I was literally reinventing the wheel. There is bound to be a straight forward code generator for this but a cursory Google-ing found nothing.
Would love to hear other ideas!