From PowerBuilder to KDM [message #1731567] |
Fri, 06 May 2016 16:30  |
Eclipse User |
|
|
|
Hi,
As a Master's project I'm building a Model transformer from Powerbuilder language to KDM model using Modisco. The main approach is based on the 3 phases transformation described in paper i've found from Kiel University.
After creating the basic parser in ANTLR for Powerscript ( the language used to create apps in Powerbuilder) as there was nothing, I've reached to the point of implementing the model transformer.
Powerbuilder programs structure is different form normal programming languages. Each application is described by two main files:
PBT files; which contains the application name/descriptor, the main binary library to be generated and all the sublibraries that compose it.
PBG files; which describe the list of objects that compose each binary sublibraries.
And it is formed using 6 structural objects:
Menu objects ( Yes, view objects have also control code :-0 )
Window objects ; containers of other objects which show the data.
DataWindow objects ; a kind of "control" object that are contained in a window and have the logic.
Function objects ; which are used by datawindows and objects that heritage from them.
Global function objects
Structure objects; structures that define data objects.
As you see, It's not the normal language. So now that I'm trying to generate each KDM Diagram , this is crazy.
Is there anyone that could help me mapping this structure to KDM objects?
I don't know if using ClassUnits it's ok for objects, or should be extended objects from the pre-defined types? Are "PBx" files PackageClass or CodeAssembly?
Thxxx
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03579 seconds