Thread: RE: [HACKERS] Postgres' lexer

RE: [HACKERS] Postgres' lexer

From
"Ansley, Michael"
Date:
Leon, I see that you have been running into the vltc problem ;-)  I just run
a flex -p, and went to line 314.

MikeA

>> -----Original Message-----
>> From: Ansley, Michael [mailto:Michael.Ansley@intec.co.za]
>> Sent: Friday, August 20, 1999 11:27 AM
>> To: 'Leon'; hackers
>> Subject: RE: [HACKERS] Postgres' lexer 
>> 
>> 
>> >> >> Is it an operator followed by mandatory '-' and (dot 
>> or digit) ?
>> >> I think this is used to recognize an operator followed by 
>> a minus or any
>> >> single character (the period is escaped, the character 
>> can be used to
>> denote
>> >> the base of the number) or a single digit.
>> Sorry, make that an operator followed by a minus AND then any single
>> character or a single digit.
>> 
>> MikeA
>> 
>> ************
>> 


Re: [HACKERS] Postgres' lexer

From
Leon
Date:
Ansley, Michael wrote:
> 
> Leon, I see that you have been running into the vltc problem ;-)  I just run
> a flex -p, and went to line 314.

I got it. It is done to prevent minus from sticking to number in
expressions like 'a -2'. Dirty, but it works.

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