Implementing Parse::RecDescent directives

2002-06-15 Thread Marcel Gruenauer
Now that it seems that Parse::RecDescent and, ultimately, Parse::FastDescent, will be subsumed into the Perl 6 regex/grammar system, I've been thinking about how to implement P::RD directives such as , and ; or features such as tracing. I've really only thought about , but am not sure if those t

Re: Implementing Parse::RecDescent directives

2002-06-15 Thread Marcel Gruenauer
On Sat, Jun 15, 2002 at 09:08:31AM -0500, Jonathan Scott Duff wrote: > At the very least you should be able to do this: > > rule leftop($leftop,$op;$rightop) { > $other := { (defined $rightop) ?? $rightop :: $leftop } > <$leftop> [$op <$other>]* > } Or maybe