Just by changing the language to Python in new transformation, as you suggested, the result was fairly good.
%TRANSFORM_CURRENT("language","stereotype")%
language=%qt%Python%qt%Three more changes would be nice:
1. From foo.h (c++), the emitted constructor in foo.py is foo.foo, whereas in Python, I would like to make it be foo.__init__.
2. All operation signatures such as foo:method(arg0,arg1) from c++, should have a "self" parameter in Python: foo.method( self, arg0, arg1 ).
3. A destructor should not be emitted in Python, but I presently have foo.~foo(), which is a Python syntax error.
I am reading Chapter 12 MDA Transforms, but I'm a bit lost.
May I ask, what are the attributes/keywords/macro_variables associated with the features that I've listed, and where?
Thanks
Owen