Re: More 6PAN musings: local namespaces

2002-06-15 Thread Luke Palmer
On Sun, 16 Jun 2002, Michael G Schwern wrote: > On Sat, Jun 15, 2002 at 10:35:48PM -0400, John Siracusa wrote: > > Once nice thing about Java is the class naming convention that lets > > individual companies (or even individuals, I guess) do custom development > > that they can safely integrate w

Re: More 6PAN musings: local namespaces

2002-06-15 Thread Michael G Schwern
On Sat, Jun 15, 2002 at 10:35:48PM -0400, John Siracusa wrote: > Once nice thing about Java is the class naming convention that lets > individual companies (or even individuals, I guess) do custom development > that they can safely integrate with the "standard" Java classes and the work > of other

More 6PAN musings: local namespaces

2002-06-15 Thread John Siracusa
Once nice thing about Java is the class naming convention that lets individual companies (or even individuals, I guess) do custom development that they can safely integrate with the "standard" Java classes and the work of other companies/individuals without fear of namespace clashes. For example,

RE: Implementing Perl 6 (was Re: Implementing Parse::RecDescent directives)

2002-06-15 Thread Brent Dax
Dan Sugalski: # At 2:00 PM -0500 6/15/02, Jonathan Scott Duff wrote: # >With all this new syntax, I can't wait until there's a perl6 # I can try # >it out against rather than just perl6-language. # # Well, then, time to pitch in! :) # # Seriously, Parrot's at a state where a not inconsiderable

Implementing Perl 6 (was Re: Implementing Parse::RecDescentdirectives)

2002-06-15 Thread Dan Sugalski
At 2:00 PM -0500 6/15/02, Jonathan Scott Duff wrote: >With all this new syntax, I can't wait until there's a perl6 I can try >it out against rather than just perl6-language. Well, then, time to pitch in! :) Seriously, Parrot's at a state where a not inconsiderable chunk of perl 6 (and perl 5) c

Re: Implementing Parse::RecDescent directives

2002-06-15 Thread Luke Palmer
> Now, could you just do > > rule leftop ($leftop, $op) { > <$leftop> [$op <$leftop>]* > } > > rule leftop ($leftop, $op, $rightop) { > <$leftop> [$op <$rightop>]* > } I should hope that rules can take multiple arguments. Here's something that made me wonde

Re: Implementing Parse::RecDescent directives

2002-06-15 Thread Jonathan Scott Duff
On Sat, Jun 15, 2002 at 04:50:20PM +0200, Marcel Gruenauer wrote: > 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 :

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

Re: Implementing Parse::RecDescent directives

2002-06-15 Thread Jonathan Scott Duff
On Sat, Jun 15, 2002 at 03:19:34PM +0200, Marcel Gruenauer wrote: > Now, could you just do > > rule leftop ($leftop, $op) { > <$leftop> [$op <$leftop>]* > } > > rule leftop ($leftop, $op, $rightop) { > <$leftop> [$op <$rightop>]* > } At the very least you sho

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: Simple RegExp (Ap5) question

2002-06-15 Thread Luke Palmer
On 15 Jun 2002, Alberto Manuel Brandão Simões wrote: > > If spaces delimit tokens, > > /abc* def/ means in perl5 > > /abc*def/ > or /(?:abc)*def/ ? > > Thanks > > Alberto The former.

Simple RegExp (Ap5) question

2002-06-15 Thread Alberto Manuel Brandão Simões
If spaces delimit tokens, /abc* def/ means in perl5 /abc*def/ or /(?:abc)*def/ ? Thanks Alberto -- Alberto Manuel B. Simoes Departamento de Informática - Universidade do Minho http://alfarrabio.di.uminho.pt/~albie - http://numexp.sf.net