Re: Token separation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tim Landscheidt <tim(at)tim-landscheidt(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Token separation
Date: 2012-01-15 17:15:58
Message-ID: 17710.1326647758@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Tim Landscheidt <tim(at)tim-landscheidt(dot)de> writes:
> [ "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.

Possibly the documentation should be tweaked to mention the
number-followed-by-identifier case.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message IlGenna 2012-01-15 17:28:53 Call function with dynamic schema name
Previous Message Tim Landscheidt 2012-01-15 08:02:27 Token separation