Re: True Name Spaces, when?
- From: L <L@xxxxxxxx>
- Date: Mon, 18 Feb 2008 13:35:01 -0700
Hans-Peter Diettrich wrote:
Robert Giesecke wrote:
Two passes are more than enough. The first quick one to fetch all types names in their units.
Then the normal pass but now with infos about all types.
This already is how Delphi works. One pass over the interface sections, the second one over the implementation sections.
DoDi
Just to confuse people.. I want to clear (or not clear) something up about single pass parsers.
The whole "single pass" phrase is kind of a misleading term..IMO.
IMO, during parsing there are several "inner sub passes" to make sure syntax is right.. and things get fastforwarded/rewound while you are analyzing stuff after or during the pass.. so it is not really a single pass at all. It depends on how you visualize parsing, but I don't see it as this one big pass that occurs.. rather I see a hole bunch of mini passes, whether or not it included one big single pass too, to make the whole thing work.
There are many cases for example when someone uses a StringReplace() during a parse, which is actually is reseting part of the pass to not be a single pass any more... since you are rewinding when a replace is done.
Therefore a so called "single pass" are not really truly a single pass.. ever, unless it is a trivial algorithm like a character swap.
In some cases, a single pass parser could be slower than a double pass parser.. if for example the single pass parser was written poorly with a whole bunch of sub passes going on during it's single pass run.
L505
.
- Follow-Ups:
- Re: True Name Spaces, when?
- From: Rudy Velthuis [TeamB]
- Re: True Name Spaces, when?
- From: Hans-Peter Diettrich
- Re: True Name Spaces, when?
- From: L
- Re: True Name Spaces, when?
- References:
- True Name Spaces, when?
- From: Thomas Miller
- Re: True Name Spaces, when?
- From: Hans-Peter Diettrich
- Re: True Name Spaces, when?
- From: Alessandro Federici
- Re: True Name Spaces, when?
- From: Marc Rohloff [TeamB]
- Re: True Name Spaces, when?
- From: Henrick Hellström
- Re: True Name Spaces, when?
- From: Robert Giesecke
- Re: True Name Spaces, when?
- From: Hans-Peter Diettrich
- True Name Spaces, when?
- Prev by Date: Re: Delphi 2008 native?
- Next by Date: Re: Delphi 2008 native?
- Previous by thread: Re: True Name Spaces, when?
- Next by thread: Re: True Name Spaces, when?
- Index(es):