On Tue, Aug 10, 2010 at 9:00 PM, wrote:
> Once the & operator is in rakudo, though... I gather I /could/ do something
> like the following
>
> ^ [ * & ] $
>
> And this would in effect ensued that the sequence "abc" doesn't exist
> anywhere across the match for
>
>
> Is this correct?
>
Not
Back to your original advice...
> If you want to match an alphabetic string which does not include 'abc'
> anywhere, you can write this as
>
> ^ [ ]* $
I presume this only works here because is one character... if instead
of I used anything more complicated
(for example)
token name
{
philippe.beauch...@bell.ca wrote:
> On the & operator... are you saying that it would operate basically as
> expected...
> allowing sets of rules and'ed rather than or's with the | ?
Yes, with the limitation that both parts separated by & have to match
the same length of string, so that for exam
Great! That does it. Thanks. :)
I realized my error on the anchors after sending... but didn't think of the *
on the grouping.
On the & operator... are you saying that it would operate basically as
expected... allowing sets of rules and'ed rather than or's with the | ?
--- Phil
-Origin
Hi,
philippe.beauch...@bell.ca wrote:
> rule TOP
> {
> ^
> [
> & *
> &
> ]
> $
> }
The & syntax is specced, but it's not yet implemented in Rakudo.
But note that is a zero-width assertion, so your e
Hi there...
New to the list and getting to understand perl6 after a bit of a hiatis from
the Perl world.
I'm working my way through the new grammar syntax trying to implement some
useful modules, and was wondering if there is a mechanism within the grammar
constructs to allow two rules to appl
Author: moritz
Date: 2010-08-10 14:55:57 +0200 (Tue, 10 Aug 2010)
New Revision: 31939
Modified:
docs/Perl6/Spec/S32-setting-library/IO.pod
Log:
[S32::IO] update to new type names, remove some thinkos
Modified: docs/Perl6/Spec/S32-setting-library/IO.pod
=
Author: masak
Date: 2010-08-10 13:50:30 +0200 (Tue, 10 Aug 2010)
New Revision: 31938
Modified:
docs/Perl6/Spec/S32-setting-library/Str.pod
Log:
[S32/Str] nicer where clause for &pack
Reads better and is more amenable to compiler optimization. Suggested by
TheDamian++.
Modified: docs/Perl6/Spe
Author: masak
Date: 2010-08-10 11:47:45 +0200 (Tue, 10 Aug 2010)
New Revision: 31937
Modified:
docs/Perl6/Spec/S32-setting-library/Str.pod
Log:
[S32/Str] fixed thinko in &pack signature
Spotted by moritz++
Modified: docs/Perl6/Spec/S32-setting-library/Str.pod
=