[Rd] unbelievable parser bug (PR#956)
Friedrich Leisch
Friedrich.Leisch@ci.tuwien.ac.at
Tue, 29 May 2001 14:34:51 +0200
>>>>> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._