Re: Light ideas

2002-08-03 Thread Ken Fox
Dave Storrs wrote: > why didn't you have to write: > > rule ugly_c_comment { > / > \/ \* [ .*? ? ]*? \* \/ > { let $0 := " " } > / > } Think of the curly braces as the regex quotes. If "{" is the quote then there's nothing spe

Re: Light ideas

2002-08-03 Thread Dave Storrs
On Sat, 3 Aug 2002, Ken Fox wrote: > Dave Storrs wrote: > > why didn't you have to write: > > > >rule ugly_c_comment { > > > / > > > \/ \* [ .*? ? ]*? \* \/ > > > { let $0 := " " } > > > / > >} > > Think of the curly braces as the regex q

Re: Light ideas

2002-08-03 Thread Uri Guttman
> "KF" == Ken Fox <[EMAIL PROTECTED]> writes: > Dave Storrs wrote: >> why didn't you have to write: >> >> rule ugly_c_comment { >> / >> \/ \* [ .*? ? ]*? \* \/ >> { let $0 := " " } >> / >> } > Think of the curly braces as the regex quotes. If "{" is the quote > then

Re: Light ideas

2002-08-03 Thread Ken Fox
Uri Guttman wrote: > but remember that whitespace is ignored as the /x mode is on > all the time. Whoops, yeah. For some reason I kept literal mode on when reading the spaces between two literals. The rules {foo bar} and {foobar} are the same, but some very low level part of my brain is resisti

Re: Use of regular expressions on non-strings

2002-08-03 Thread Markus Laire
On 1 Aug 2002 at 19:30, David Whipp wrote: > I'm wondering if Perl6's new regex can be applied to non-string things. I > seem to recall A5 mentioning something about strings tied to array > implementations; but I'm wanting something a little more powerful. Yes, it can be applied to anything whic