Re: Token separation

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: Token separation
Дата
Msg-id jfbq8n$l8b$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Token separation  (Tim Landscheidt <tim@tim-landscheidt.de>)
Список pgsql-sql
On 2012-01-16, Tim Landscheidt <tim@tim-landscheidt.de> wrote:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
>>> [ "0x13" is lexed as "0" then "x13" ]
>
>>> Is this behaviour really conforming to the standard?
>
>> Well, it's pretty much the universal behavior of flex-based lexers,
>> anyway.  A token ends when the next character can no longer sensibly
>> be added to it.
>
> I know, but - off the top of my head - in most other lan-
> guages "0abc" will then give a syntax error.
In most other languages "0 abc" would also be a syntax error.0and  doesn't give a syntax error in phpeg: <? echo 0and
0;?>
 
-- 
⚂⚃ 100% natural



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

Предыдущее
От: Gary Stainburn
Дата:
Сообщение: Re: date range to set of dates expansion
Следующее
От: Rehan Saleem
Дата:
Сообщение: How to Return Table From Function