Book a Demo

Author Topic: rev. engineering error with Delphi ?  (Read 3685 times)

EG

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
rev. engineering error with Delphi ?
« on: May 10, 2006, 05:34:08 am »
Hi, I tried reverse engineering with a Delphi .pas and I got an error parsing the file (unexpected symbol) when I have some compiler directives like this :

{$IFDEF ConditionA} uses Ram0000; {$ENDIF ConditionA}
{$IFDEF ConditionB} uses RVM0000; {$ENDIF ConditionB}
...

Am I doing something wrong  ???

Thank you

Evelyne

EG

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: rev. engineering error with Delphi ?
« Reply #1 on: May 25, 2006, 01:23:57 pm »
And I get another error when parsing if I use deprecated keyword... as an example, try with System.pas.

EG

There was an error parsing D:\Program Files\Borland\Delphi7\Source\Rtl\Sys\System.pas on line 159.  Unexpected symbol: deprecated

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: rev. engineering error with Delphi ?
« Reply #2 on: May 25, 2006, 03:34:15 pm »
The first error appears to be because our parser isn't expecting conditions in the Endif.  I also think I found the error in our handling of deprecated.  We should have both of them fixed for our next release.