[DUG] D2006 Compiler
Max Nilson
max at accredo.co.nz
Wed Dec 21 10:01:54 NZDT 2005
John Bird asks:
> There is a code Structure window top left on the screen that
> looks like it continuously compiles the code and shows syntax
> errors, also wavy red lines appear under the code in the code
> window.....I have some blocks of code it doesn't like and
> complains about, only thing there is nothing wrong with the
> code, and the main compiler (Run/F9) produces no errors and a
> nice .DCU and the running program.
>
> Is there a split personality going on here? Doesn't bother
> me, but I am curious....
Yes, there is a separate parser that is used for the structure window as
opposed to the actual code generator. Over the course of the Delphi 2006
development it has come in for a certain amount of whacking to get it
parsing the same way as the actual Delphi compiler parser.
The bug you are seeing was fairly common at one stage but has mostly been
fixed and seems to be an issue with pathing differences between the two
compilers. Hopefully your particular problem will be corrected in the Update
1 patch out nowish, or perhaps in the Update 2 due some time next early
year.
Interesting FYI: The Win32 Delphi compiler and code generator is written in
C++, and is a separate DLL that you can see in the Bin directory called
DCC32.DLL. The new structure parser is written in Delphi and is thus a
completely separate code base. There my be still some corners of Delphi
syntax that the new parser doesn't handle correctly.
Cheers, Max.
More information about the Delphi
mailing list