On Mon, May 09, 2005 at 08:43:39PM +0000, [EMAIL PROTECTED] wrote:
> Can I say $*1, $*2, etc, to get perl5 flattened peren counting captures?  
> We need something like that to make perl5->perl6 translation easier; 
> otherwise we'd have to parse perl5 RE instead of just slapping on a ":p5".
> Unless ":p5" also means that you get a single already fattened match objct.

PGE will have a perl5 RE parser built in to handle the ":p5"
option, and it will return match objects according to perl 5's
capture semantics with no nesting (i.e., counting left parens).

I will probably start a perl 5 RE parser just to get it started, but 
after that I'd prefer to turn it over to someone else to maintain.  
Note that PGE will already provide the matching engine itself -- 
we simply need something that converts p5 expression trees into 
PGE's expression trees.

In addition, I'm planning to write a glob/wildcard parser, which does
matches based on Unix filename globbing syntax.

Pm

Reply via email to