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
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*]*
Brent Dax wrote:
> grammar Perl6::Regex {
> rule metachar { <[<{(\[\])}>:*+?\\|]>}
>
> rule ws { [<[\h\v]>|\#\N*]*}
Or just:
rule ws { [\s|\#\N*]* }
> rule atom { ( | \\ . | ) }
>
> rule m
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
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 { <[<{(\[\])}>:*+?\\|]>
#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