Book a Demo

Author Topic: Reverse engineering Delphi with 30 Trial EA  (Read 4105 times)

Murray

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Reverse engineering Delphi with 30 Trial EA
« on: July 06, 2003, 08:54:26 pm »
Hello,
I am trialing EA for my company to purchase for our small software group and upcoming project and would find it of great value to have a previous Object Pascal reverse engineered into EA and UML diagrams/class relationships generated. I have traveled the procedure of the reverse engineering the modules (*.pas) but all that is generated is a folder and an empty diagram for each file/module...no classes relationships or anything.
Is there something I'm missing?
Or is this all that I can expect?

Frustrated
Murray

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Reverse engineering Delphi with 30 Trial EA
« Reply #1 on: July 07, 2003, 01:41:57 am »
Hi Murray,
I don't know what you are missing, but reverse engineering from Delphi files works excellently for me. So you can expect more. If you provide us with more details of your problem, maybe we can give you more detailed help.

Mikkel

Murray

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Reverse engineering Delphi with 30 Trial EA
« Reply #2 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

ufechner

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Reverse engineering Delphi with 30 Trial EA
« Reply #3 on: July 07, 2003, 10:46:54 pm »
Hello,

I am sorry, but that is the depreciated Turbo Pascal Syntax.
It is quite different from the delphi syntax and I guess that it is not supported by EA.

Regards:

Uwe Fechner

ufechner

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Reverse engineering Delphi with 30 Trial EA
« Reply #4 on: July 07, 2003, 10:49:38 pm »
Hello,

too more ideas:

a) Try to do a search and replace and replace object with class and than try to import the pas file.

b) Write a feature request to Sparx.

Regards:

Uwe Fechner