Hi!
There are a few downsides of using this approach: - The order of the exported classes and the fields and methods within a class is random, so you have to sort everything by hand.Reminnds me on http://bugzilla.gnome.org/show_bug.cgi?id=519162
I solved these order problems by replacing the attributes dictionary by a map.
That todo list is just too long to convince me to commit your patch right away. At least some things should be very low hanging fruits.
The Pascal exporter is already way more elaborate than all other exporters. So there is no reason to refuse the Pascal exporter, just because the other exporters have no written TODO list. Nevertheless, I was not satisfied with the scrambling of the order of classes, attributes and operations, so I solved this problem (see above). Classes are now exported in alphabetical order, attributes and operations in the original order. Additionally I've added support for comments of attributes and classes. All the remaining TODOs strongly depend on a fundamental refactoring of the internal representation of the data. Currently a class ("Klass") and lots of lists of lists of lists are used, so you always have to remember list indexes to access e.g. an attribute's name, comment, ... This is bad programming style and tedious to work with. Since my Python knowledge is still virtually zero, I'm not going to play with this any further. Please find attached a patch for my current version of the Pascal code generator. Bye Hansi
Attachment:
codegen.py.diff.gz
Description: GNU Zip compressed data