1
General Board / Re: Reverse engineering Delphi with 30 Trial EA
« on: July 07, 2003, 02:14:06 pm »
Thanks for reply...
More details.
The code I'm actually parsing is not exactly Delphi but the old pre Delphi Object pascal for for dos. I may be wrong but I would believe that the class constructs/syntax and relationships would be the same though no forms etc.
In workspace I created a new package and from its context menu selected import directory structure.
From this dialog I specified the directory where the .pas files live and the source type as Delphi, Recursively Process Subdirectories(though there are none). Create logical diagram for each package and create package per file. Synchronize existing classes.
EA then proceeded to parse the long list of .pas files generating a package lobeled the root directory and an empty logical diagram labeled the same. It also generated packages for each .pas file and empty logical diagrams inside these.
object definition code syntax example
TObject1 = object
variable1 : Boolean;
variable2 :Byte;
string1 : String[5];
constructor Init(var param1: Word;
param2 : Byte;);
procedure procedure1(param3 : Boolean;);
function function1( param4 : Pointer; {comment}
private
data1 : Byte;
data2 : Word;
destructor Done;
end;
TDaughterObject1 = object(TObject1)
procedure procedure1;
end;
etc.
Any help appreciated
Murray
More details.
The code I'm actually parsing is not exactly Delphi but the old pre Delphi Object pascal for for dos. I may be wrong but I would believe that the class constructs/syntax and relationships would be the same though no forms etc.
In workspace I created a new package and from its context menu selected import directory structure.
From this dialog I specified the directory where the .pas files live and the source type as Delphi, Recursively Process Subdirectories(though there are none). Create logical diagram for each package and create package per file. Synchronize existing classes.
EA then proceeded to parse the long list of .pas files generating a package lobeled the root directory and an empty logical diagram labeled the same. It also generated packages for each .pas file and empty logical diagrams inside these.
object definition code syntax example
TObject1 = object
variable1 : Boolean;
variable2 :Byte;
string1 : String[5];
constructor Init(var param1: Word;
param2 : Byte;);
procedure procedure1(param3 : Boolean;);
function function1( param4 : Pointer; {comment}
private
data1 : Byte;
data2 : Word;
destructor Done;
end;
TDaughterObject1 = object(TObject1)
procedure procedure1;
end;
etc.
Any help appreciated
Murray