develooper Front page | perl.perl6.compiler | Postings from December 2004

Hyphenated rule names [Was: Perl 6 Summary for 2004-12-06 through 2004-12-20]

From:
Larry Wall
Date:
December 20, 2004 21:53
Subject:
Hyphenated rule names [Was: Perl 6 Summary for 2004-12-06 through 2004-12-20]
Message ID:
20041221055333.GA12932@wall.org
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



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