Re: [HACKERS] Postgres' lexer

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ansley, Michael" <Michael(dot)Ansley(at)intec(dot)co(dot)za>
Cc: "'Leon'" <leon(at)udmnet(dot)ru>, hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Postgres' lexer
Date: 1999-09-03 15:35:18
Message-ID: 12845.936372918@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Point taken. So, if the spaces are used, then a>-2 is not the same as a>-
> 2. The latter should then generate an error, right?

It wasn't real clear where you intended to insert whitespace in this
example... but in any case, it might or might not generate an error
depending on what operators have been defined. Both "a >- 2" (three
tokens) and "a > - 2" (four tokens) might be legal expressions.
If they are not, it's not the lexer's job to figure that out.

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Edwin Ramirez 1999-09-03 15:42:22 Postgres Performance
Previous Message Leon 1999-09-03 15:33:28 Re: [HACKERS] Postgres' lexer