From maechler@stat.math.ethz.ch  Tue May 29 15:28:07 2001
From: maechler@stat.math.ethz.ch (maechler@stat.math.ethz.ch)
Date: Tue, 29 May 2001 16:28:07 +0200 (MET DST)
Subject: [Rd] unbelievable parser bug (PR#956)
Message-ID: <200105291428.QAA24734@pubhealth.ku.dk>

>>>>> "PD" == Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:

    PD> 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
    PD> ....
    >>  ;-)
    >> 
    >> thank you, Fritz.  Now what about a "morale of the story" (<<
    >> probably a Germanism) ?

in the mean time I've learned:   ``moral of the story'' (is no 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...


    PD> Hmm. 0xa0 is M-SPC. These are fairly easily generated on
    PD> non-English keyboards: both Alt_L+SPC and AltGr+SPC on mine (and
    PD> those three keys are adjacent). 

Thank you Peter;
in this cases, they text was from an e-mail (from a `R for MacOS' user who
 most proably had a SwissGerman keyboard {but probably no Emacs..})) but it
was smart Emacs (VM) dealing ``automagically'' with strange encodings ...

    PD> It might make sense to force the
    PD> parser to accept the "metafied" whitespace characters?

yes, I think that might be useful and make sense.
Compatibility with S(plus) might be a point here, but then we *do* have
locale dependent syntax anyway.

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] unbelievable parser bug (PR#956)
maechler@stat.math.ethz.ch