regex and xml/html/*ml

2002-06-05 Thread esp5
hmm. Just read (skimmed) apocalypse 5, had one concern - it looks like we are on a serious collision course with parsing the various *mls. before: m#..etc# after m#\\\# Also, the space being backslashed sort of bugs me. Surely there is going to be a 'non-x' modifier? And perhaps a modifier t

Re: Apoc 5 questions/comments

2002-06-07 Thread esp5
>> Can we please have a 'reverse x' modifier that means "treat whitespace as >> literals"? > I'll talk about that with Larry. If he were to approve it, it might possibly > be :W. Likewise, could we please have a modifier that makes <> literal, and aliases <> as something else so *ml can match ea

Re: Apoc 5 questions/comments

2002-06-07 Thread esp5
f On Fri, Jun 07, 2002 at 05:10:49PM -0400, Trey Harris wrote: > In a message dated Fri, 7 Jun 2002, [EMAIL PROTECTED] writes: > > The most serious objection to this was 'well, use modules for matching *ml" - > > which simply points out that the current incarnation of perl6 regex doesn' > > t han

Re: Apoc 5 questions/comments

2002-06-09 Thread esp5
On Sat, Jun 08, 2002 at 09:59:10AM -0700, Larry Wall wrote: > On Fri, 7 Jun 2002, Peschko, Edward wrote: > : Let me get this straight. the grammar of Perl is reprogrammable, > : and expressed in perl6. And a script is parsed using this grammar, > : on the fly, hence portions of scripts could have

Re: exegesis 5 question: matching negative, multi-byte strings

2002-10-02 Thread esp5
On Wed, Oct 02, 2002 at 10:39:17AM +0300, Markus Laire wrote: > On 1 Oct 2002 at 18:47, [EMAIL PROTECTED] wrote: > > > > > all text up to, but not including the string "union". > > > > > > rule getstuffbeforeunion { (.*?) union | (.*) } > > > > > > "a union" => "a " > > > "b" => "b" > > > > hmm

exegesis 5 question: matching negative, multi-byte strings

2002-10-01 Thread esp5
I was wondering what the favored syntax in perl6 would be to match negative multi-byte strings. In perl 5: $sql = "select * from a where b union select * from c where d"; my $nonunion = "[^u]|u[^n]|un[^i]|uni[^o]|unio[^n]"; my (@subsqls) = ($sql =~ m"((?:$nonunion)*"); g

Re: exegesis 5 question: matching negative, multi-byte strings

2002-10-01 Thread esp5
On Tue, Oct 01, 2002 at 01:24:45PM -0600, Luke Palmer wrote: > > > [Negative matching] > > > a generic negative, multi-byte string matching mechanism. Any thoughts? > > Am I missing something already present or otherwise obvious? > > Maybe I'm misundertanding the question, but I think you want

Re: exegesis 5 question: matching negative, multi-byte strings

2002-10-01 Thread esp5
On Tue, Oct 01, 2002 at 06:32:07PM -0400, Mike Lambert wrote: > > guaranteeing that the subsqls have all text up to, but not including the string > > "union". > > > > I suppose I could say: > > > > rule nonunion { (.*) :: { fail if ($1 =~ m"union$"); } } > > What's wrong with: ? > > rule get

Re: exegesis 5 question: matching negative, multi-byte strings

2002-10-01 Thread esp5
On Tue, Oct 01, 2002 at 05:24:43PM -0400, Peter Behroozi wrote: > On Tue, 2002-10-01 at 16:44, [EMAIL PROTECTED] wrote: > > doesn't work (just tried it out, not sure why it doesn't) but even if it did, > > it would be awful slow. It would try one character, look at the next for the > > string uni

Re: Perl6 summary for week beginning 2002-09-30

2002-10-06 Thread esp5
> Someone mysteriously known only as "Ed" asked what the favored syntax would be > to match negative multi-byte strings in Perl 6. It wasn't entirely clear > what the question was, but one thing is sure: the Perl 6 pattern matching > engine will have a lot of scope for optimisation. Oops, sorry,

Re: exegesis 5 question: matching negative, multi-byte strings

2002-10-07 Thread esp5
On Mon, Oct 07, 2002 at 07:11:08AM -0500, [EMAIL PROTECTED] wrote: > > match negative multi-byte strings > > > in perl5, I'd tend to do > > m/(?:(?!union).)*/is > > or to capture > > m/((?:(?!union).)*)/is yeah, I'm not arguing that there isn't a solution available, just that the so

cvs repository on regular port

2001-11-29 Thread esp5
hey, I'm trying to set up tinderbox here for parrot on two systems (sun5.6 and omvs (open edition os/390)) Unfortunately, I can't see to port 2401 in the outside world because of firewall (to do the continuous checkout from cvs)... any plans to set up a pserver on a regular port (say, 80) that

stringification of objects, subroutine refs

2002-05-10 Thread esp5
I was wondering how perl6 would stringify (as in Data::Dumper): 1) objects with 'my' and 'our' variables 2) $.property 2) subroutines (and coderefs) 3) properties (both is/has) Right now, the fact that subroutines come out as 'sub { "DUMMY" }' is a minor pain to w