Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 7038061AFBB for ; Fri, 20 Jan 2012 09:32:26 -0400 (AST) Received: from lo.gmane.org ([80.91.229.12]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RoEZp-0003Zx-IA for pgsql-sql@postgresql.org; Fri, 20 Jan 2012 13:32:25 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RoEZd-0004L1-9Z for pgsql-sql@postgresql.org; Fri, 20 Jan 2012 14:32:09 +0100 Received: from ip-118-90-69-86.xdsl.xnet.co.nz ([118.90.69.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Jan 2012 14:32:09 +0100 Received: from jasen by ip-118-90-69-86.xdsl.xnet.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Jan 2012 14:32:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Jasen Betts Subject: Re: Token separation Date: 20 Jan 2012 13:29:59 GMT Organization: Dis (not Dat) Organisation Lines: 22 Message-ID: References: <17710.1326647758@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ip-118-90-69-86.xdsl.xnet.co.nz X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s; a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W; (T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q; 8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-18 (Linux) X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201201/97 X-Sequence-Number: 36268 On 2012-01-16, Tim Landscheidt wrote: > Tom Lane 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 php eg: -- ⚂⚃ 100% natural