Sorry, Tom, I saw the tgl initals, and assumed it was you, before realising
that there are a couple of people who could be identified by those initials.
tgl, please stand up ;-)

MikeA

>> -----Original Message-----
>> From: Ansley, Michael 
>> Sent: Friday, August 20, 1999 12:37 PM
>> To: 'Leon'; hackers; 'Tom Lane'
>> Subject: RE: [HACKERS] Postgres' lexer
>> 
>> 
>> I figured it out.  The first thing the code does is set the 
>> state to xm (BEGIN (xm)).  If you look in the comments at 
>> the top, Tom Lane put these in to deal with numeric strings 
>> with embedded minuses.  Tom, can you give us a run-down of 
>> what the problem was that required this stuff.  Perhaps if 
>> we can find another way around it, we can reduce the vltc's
>> 
>> Thanks...
>> 
>> MikeA
>> 
>> >> -----Original Message-----
>> >> From: Leon [mailto:leon@udmnet.ru]
>> >> Sent: Friday, August 20, 1999 11:36 AM
>> >> To: hackers
>> >> Subject: Re: [HACKERS] Postgres' lexer
>> >> 
>> >> 
>> >> Ansley, Michael wrote:
>> >> ...
>> >> > >> And what this stands for:
>> >> > >>
>> >> > >> {identifier}/{space}*-{number}
>> >> > An identifier followed by any number of spaces, and then a 
>> >> minus, or a
>> >> > number.  Again, double check this with a reference of 
>> some sorts.
>> >> 
>> >> Well, I studied flex manpage from top to bottom, and almost 
>> >> everything
>> >> in Postgres's lexer makes sense. But these "followed by 
>> spaces and a
>> >> queer minused number" do not. Can someone tell me what do these 
>> >> minused single - digit numbers stand for?
>> >> 
>> >> -- 
>> >> Leon.
>> >> ---------
>> >> "This may seem a bit weird, but that's okay, because it 
>> is weird." -
>> >> Perl manpage.
>> >> 
>> >> 
>> >> 
>> >> ************
>> >> 
>> 

Fri, 20 Aug 1999 12:38:37 +0200
"Ansley, Michael" <Michael.Ansley@intec.co.za>
RE: [HACKERS] Postgres' lexer
"Ansley, Michael" <Michael.Ansley@intec.co.za> writes:
> Sorry, Tom, I saw the tgl initals, and assumed it was you, before realising
> that there are a couple of people who could be identified by those initials.

All of those are Lockhart.  I recall having done something with the
string-constant lexing, but I have no idea what this <xm> is all about.

			regards, tom lane

Fri, 20 Aug 1999 12:18:18 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Postgres' lexer 
Tom Lane wrote:
> 
> "Ansley, Michael" <Michael.Ansley@intec.co.za> writes:
> > Sorry, Tom, I saw the tgl initals, and assumed it was you, before realising
> > that there are a couple of people who could be identified by those initials.
> 
> All of those are Lockhart.  I recall having done something with the
> string-constant lexing, but I have no idea what this <xm> is all about.

BTW, one more stu-u-u-upid question: why unary minus needs high 
precedence? Seems that all works well without any specified
precedence for uminus ;)  - it is only a remark.

-- 
Leon.
---------
"This may seem a bit weird, but that's okay, because it is weird." -
Perl manpage.


Sat, 21 Aug 1999 02:11:51 +0500
Leon <leon@udmnet.ru>
Re: [HACKERS] Postgres' lexer