Re: I am confused after reading codes of PostgreSQL three week

From: hom <obsidianhom(at)gmail(dot)com>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Vaibhav Kaushal <vaibhavkaushal123(at)gmail(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: I am confused after reading codes of PostgreSQL three week
Date: 2011-03-20 15:31:11
Message-ID: AANLkTikKtHK0BXo+i26pD9S9+UKe-0aWgLPjw1-GGwNy@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2011/3/20 Martijn van Oosterhout <kleptog(at)svana(dot)org>:
> On Sun, Mar 20, 2011 at 11:50:01AM +0800, hom wrote:
>> I trace into scan.c because I want to known how the paser tree is
>> built and I debug the source step by step.
>> Then the eclipse pick up the scan.I and the excute order does not
>> match the code.
>
> Umm, the scanners produced by flex and bison are huge table driven
> parsers, which makes following what is happening in terms of "parse
> tree" extremely difficult to follow.
>
> If you want to follow what's happening, see the following page:
>
> http://dinosaur.compilertools.net/bison/bison_11.html
>
> Which will cause the parser to dump what it's doing. As the page says,
> stepping through the processed file reveals little, becuase it's the
> same code being executed over and over again, only the variables
> change.
>
> Have a nice day,
> --
> Martijn van Oosterhout   <kleptog(at)svana(dot)org>   http://svana.org/kleptog/
>> Patriotism is when love of your own people comes first; nationalism,
>> when hate for people other than your own comes first.
>>                                       - Charles de Gaulle
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iD8DBQFNhdIqIB7bNG8LQkwRAoMeAJsG3Z1reT2E04fy+sFvA2izfXOX3gCfbxhN
> fra+WGq65WMfNlmFa9NGktU=
> =3kpG
> -----END PGP SIGNATURE-----
>
>

Thanks Martijn.
I am trying lex and yacc on my Linux. :)

--
Best Wishes!

                                     hom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message hom 2011-03-20 15:44:29 Re: I am confused after reading codes of PostgreSQL three week
Previous Message Rod Taylor 2011-03-20 15:18:06 Re: foreign keys for array/period contains relationships