That is forward, not reverse. Reverse means, you watch what Moodle does, and imitate.
That is in theory, I don't think, I can do it. I imagine it to be very complicated. Moodle has about 15 different question types in the core to begin with!
BTW, why do you need this?