[Rd] unbelievable parser bug (PR#956)
maechler@stat.math.ethz.ch
maechler@stat.math.ethz.ch
Tue, 29 May 2001 15:11:05 +0200 (MET DST)
>>>>> "FrL" == Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at> writes:
>>>>> 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
FrL> what you don't see is that the ``spaces'' before the comment are
FrL> no spaces: if I copy & paste the thing to a vi buffer I see:
FrL> x <- 1\xa0\xa0## A = 1
FrL> ...
FrL> I got the idea from sequentially deleting characters:
>> x <- 1 ## A = 1
FrL> Error: syntax error
>> x <- 1 # A = 1
FrL> Error: syntax error
>> x <- 1 # A
FrL> Error: syntax error
>> x <- 1 #
FrL> Error: syntax error
>> x <- 1
FrL> Error: syntax error
FrL> especially the last one look nice IMO ...
;-)
thank you, Fritz.
Now what about a "morale of the story" (<< probably a Germanism) ?
Don't cut and paste from e-mails any more, unless you have a really
ASCII only e-mail program or editor into which you paste.
Unfortunately, emacs doesn't seem to be among these anymore...
aaargghh...
Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._