From Friedrich.Leisch@ci.tuwien.ac.at  Tue May 29 13:34:51 2001
From: Friedrich.Leisch@ci.tuwien.ac.at (Friedrich Leisch)
Date: Tue, 29 May 2001 14:34:51 +0200
Subject: [Rd] unbelievable parser bug (PR#956)
In-Reply-To: <200105291225.OAA22283@pubhealth.ku.dk>
References: <200105291225.OAA22283@pubhealth.ku.dk>
Message-ID: <15123.38763.364918.656351@galadriel.ci.tuwien.ac.at>

>>>>> On Tue, 29 May 2001 14:25:19 +0200 (MET DST),
>>>>> maechler  (m) wrote:

  > close to ``unbelievable'' but the following line
  > is not parsed correctly but gives a syntax error :

  >     x <- 1## A = 1


what you don't see is that the ``spaces'' before the comment are no
spaces: if I copy & paste the thing to a vi buffer I see:

	 x <- 1\xa0\xa0## A = 1

...

I got the idea from sequentially deleting characters:

> x <- 1## A = 1
Error: syntax error
> x <- 1# A = 1
Error: syntax error
> x <- 1# A    
Error: syntax error
> x <- 1#   
Error: syntax error
> x <- 1
Error: syntax error


especially the last one look nice IMO ...

.f


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] unbelievable parser bug (PR#956)
Friedrich Leisch