Re: Token separation - Mailing list pgsql-sql

From Jasen Betts
Subject Re: Token separation
Date
Msg-id jfbq8n$l8b$1@reversiblemaps.ath.cx
Whole thread Raw
In response to Token separation  (Tim Landscheidt <tim@tim-landscheidt.de>)
List 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 by date:

Previous
From: Gary Stainburn
Date:
Subject: Re: date range to set of dates expansion
Next
From: Rehan Saleem
Date:
Subject: How to Return Table From Function