Re: [HACKERS] Postgres' lexer

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Postgres' lexer
Дата
Msg-id 12845.936372918@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: [HACKERS] Postgres' lexer  ("Ansley, Michael" <Michael.Ansley@intec.co.za>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: AW: [HACKERS] SELECT BUG
Следующее
От: Leon
Дата:
Сообщение: Re: [HACKERS] Postgres' lexer