RE: A5: Is this right?

2002-06-06 Thread Brent Dax
Larry Wall: # On Fri, 7 Jun 2002, Damian Conway wrote: # # > Brent Dax wrote: # > # > > grammar Perl6::Regex { # > > rule metachar { <[<{(\[\])}>:*+?\\|]>} # > > # > > rule ws { [<[\h\v]>|\#\N*]*} # > # > Or just: # > # > rule ws

Re: A5: Is this right?

2002-06-06 Thread Larry Wall
On Fri, 7 Jun 2002, Damian Conway wrote: > Brent Dax wrote: > > > grammar Perl6::Regex { > > rule metachar { <[<{(\[\])}>:*+?\\|]>} > > > > rule ws { [<[\h\v]>|\#\N*]*} > > Or just: > > rule ws { [\s|\#\N*]*

Re: A5: Is this right?

2002-06-06 Thread Damian Conway
Brent Dax wrote: > grammar Perl6::Regex { > rule metachar { <[<{(\[\])}>:*+?\\|]>} > > rule ws { [<[\h\v]>|\#\N*]*} Or just: rule ws { [\s|\#\N*]* } > rule atom { ( | \\ . | ) } > > rule m

Re: A5: Is this right?

2002-06-06 Thread Larry Wall
On Thu, 6 Jun 2002, Buddha Buck wrote: > At 11:31 AM 06-06-2002 -0700, Brent Dax wrote: > I had gotten the impression that a literal string separated by whitespace > was an atom, so > > rule foofoobar { foo <1,2> bar } > > would match 'foobar' or 'foofoobar'. If so, I think needs to > be re

Re: A5: Is this right?

2002-06-06 Thread Buddha Buck
At 11:31 AM 06-06-2002 -0700, Brent Dax wrote: >#Preliminary Perl6::Regex ># This does not have any actions, but otherwise I think is correct. ># Let me know if it's right or not. I'm not a regex guru, but... >use 6; > >grammar Perl6::Regex { > rule metachar { <[<{(\[\])}>:*+?\\|]>

A5: Is this right?

2002-06-06 Thread Brent Dax
#Preliminary Perl6::Regex # This does not have any actions, but otherwise I think is correct. # Let me know if it's right or not. use 6; grammar Perl6::Regex { rule metachar { <[<{(\[\])}>:*+?\\|]>} rule ws { [<[\h\v]>|\#\N*]*} rule