ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-internals
perl6-internals
Hyphenated rule names [Was: Perl 6 Summary for 2004-12-06 through 2004-12-20]
by Larry Wall other posts by this author
Dec 20 2004 9:53PM messages near this date
Re: P5 is the new P2 | [perl #33129] N registers get whacked in odd circumstances
On Mon, Dec 20, 2004 at 09:52:32PM -0500, Matt Fowles wrote:
:     Much churning went on and it seems that multiple different
:     (but identically named) rule captures can now be performed by adding
:     information after a dash ala "<ws-1>  <ws-2> <ws-3>".

Actually, much churning is still going on in both @Larry and $Larry,
and the final form of the solution is unlikely to involve hyphenated
names.  There has to be some way of serially getting at everything
that matched anyway, and picking up multiple names is probably just
a particular kind of selection syntax.  The hash and array subscripts
are just other shortcuts through that same general selector.  But
my formulations up till now have tended to destroy the serialization
of the matches unless you already know what your rules say.  And that's
not good, since it ought to be possible traverse a syntax tree generated
by a rule-set you aren't familiar with.

Larry

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved