Subject Re: [Firebird-Architect] Re: the insert into t select * from t infinite
Author Jim Starkey
Dmitry Yemanov wrote:

>"Jim Starkey" <jas@...> wrote:
>
>
>>Parsers don't do transformations. Parser parse. Period.
>>
>>
>
>What name should have PASS1 then, considering its logic? :-)
>
>
Semantic analysis. Classical language processing steps: parse =>
semantic analysis => optimization => code generation.

The parser's only job is to return a parse tree that reflects the
language string. Anything else is a mistake. Please believe me. I've
made it more times than I care to admit. A parse is -- and should be --
too stupid to have context to do effective tweaks.

>Nevermind. There should be a separate query rewrite code in the engine.
>Currently it's splitted between PASS1, CMP and OPT. This should be cleaned
>up some time.
>
>
>
This isn't the time.


--

Jim Starkey
Netfrastructure, Inc.
978 526-1376