develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991118.014] Error producing ^\ (chr 28) with "\c\\"

Thread Previous | Thread Next
From:
Philip Newton
Date:
November 25, 1999 01:08
Subject:
Re: [ID 19991118.014] Error producing ^\ (chr 28) with "\c\\"
Message ID:
Pine.LNX.4.04.9911250451160.17980-100000@ficus.frogspace.net
On Wed, 24 Nov 1999, Ilya Zakharevich wrote:

> On Wed, Nov 24, 1999 at 03:10:58AM -0500, Philip Newton wrote:
> > > > > So you want it to be parsed left-to-right.  But you want \c\\ to be
> > > > > parsed right-to-left.  Choose one.
> > > > 
> > > > Not quite. I want '\\' to be translated to \ in a previous pass, before
> > > > the \c mechanism sees it. After the '\\' -> \ pass, I want left-to-right.
> > > 
> > > Then you are advising that "\\nc" and "\cc" should be parsed the same, right?
> 
> It should have been, of course, \\cc vs \cc

OK. I see what you mean now. No, I suppose I don't want that. I suppose
what I want was expressed, more or less, by Yitzchak Scott-Thoennes
elsewhere in this thread. Something along the lines of having \-conversion
(\n \f etc.) done in parallel with \c-conversion, and having \c\ do
roughly the same thing as \c if the following character is either a
backslash or the closing delimiter, e.g. "\c\\", "\c\"", qq^\c\^^.

Cheers,
Philip
-- 
Philip Newton <newton@newton.digitalspace.net>


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About