Skip to content

unbelievable parser bug (PR#956)

3 messages · Martin Maechler, Peter Dalgaard, Jan de Leeuw

#
>> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
maechler@stat.math.ethz.ch writes:
....
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?
#
--Apple-Mail-503838107-1
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	format=flowed;
	charset=us-ascii

Martin

Re: Germanism, Not so. This is from "The Ballad of Frankie Lee
and Judas Priest" on Bob Dylan's "John Wesley Harding" album.
==========================
Well, the moral of the story,
the moral of this song
is simply that one should never be
where one does not belong
==========================
--- Jan
On Tuesday, May 29, 2001, at 06:11 AM, maechler@stat.math.ethz.ch wrote:

            
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
US mail: 9432 Boulter Hall, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw@stat.ucla.edu
homepage: http://www.stat.ucla.edu/~deleeuw
========================================================
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://www.stat.ucla.edu/sounds/nomatter.au
========================================================

--Apple-Mail-503838107-1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=us-ascii

Martin


Re: Germanism, Not so. This is from "The Ballad of Frankie Lee=20

and Judas Priest" on Bob Dylan's "John Wesley Harding" album.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D

Well, the moral of the story,

the moral of this song

is simply that one should never be

where one does not belong

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D

--- Jan


On Tuesday, May 29, 2001, at 06:11 AM, maechler@stat.math.ethz.ch
wrote:


<excerpt>thank you, Fritz.  =20

Now what about a "morale of the story" (<<<< probably a Germanism) ?


</excerpt>

<color><param>0000,6363,1212</param>=3D=3D=3D

Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;

US mail: 9432 Boulter Hall, Box 951554, Los Angeles, CA 90095-1554

phone (310)-825-9550;  fax (310)-206-5658;  email:
deleeuw@stat.ucla.edu

homepage:
=
</color><underline><color><param>1A1A,1A1A,FFFF</param>http://www.stat.ucl=
a.edu/~deleeuw</color></underline><color><param>0000,6363,1212</param>

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D

          No matter where you go, there you are. --- Buckaroo Banzai

                 =20
=
</color><underline><color><param>1A1A,1A1A,FFFF</param>http://www.stat.ucl=
a.edu/sounds/nomatter.au</color></underline><color><param>0000,6363,1212</=
param>

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D

</color>=

--Apple-Mail-503838107-1--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._