[Rd] unbelievable parser bug (PR#956)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
29 May 2001 16:25:22 +0200
maechler@stat.math.ethz.ch writes:
> >>>>> "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
....
>
> ;-)
>
> 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...
Hmm. 0xa0 is M-SPC. These are fairly easily generated on non-English
keyboards: both Alt_L+SPC and AltGr+SPC on mine (and those three keys
are adjacent). It might make sense to force the parser to accept the
"metafied" whitespace characters?
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._