Re: Regular and Context-Free languages

2002-08-09 Thread Steve Fink
On Fri, Aug 09, 2002 at 09:50:00PM -0400, Mark J. Reed wrote: > On Fri, Aug 09, 2002 at 05:23:58PM -0700, Steve Fink wrote: > > On Thu, Aug 08, 2002 at 12:05:00AM -0400, Mark J. Reed wrote: > > > Finite state machines can match regular expressions whose only operations > > > are closure (*), alter

Re: Regular and Context-Free languages

2002-08-09 Thread Mark J. Reed
On Fri, Aug 09, 2002 at 05:23:58PM -0700, Steve Fink wrote: > Wow. Since you went to the trouble of writing all this up, it really > ought to go in a FAQ somewhere. It probably already is in a FAQ somewhere; I just don't know where. :) > On Thu, Aug 08, 2002 at 12:05:00AM -0400, Mark J. Reed wrot

Re: 'while <> {' in Perl 6

2002-08-09 Thread Larry Wall
On Fri, 9 Aug 2002, Adam Lopresto wrote: : I was wondering whether the Perl 'while (<>){' idiom will continue to be : supported in Perl 6? I seem to recall people posting example code the list : using it (although I can't dig any up), but it seems to me that if Perl 6's : lazy list implementation

Re: Regular and Context-Free languages

2002-08-09 Thread Steve Fink
Wow. Since you went to the trouble of writing all this up, it really ought to go in a FAQ somewhere. On Thu, Aug 08, 2002 at 12:05:00AM -0400, Mark J. Reed wrote: > Finite state machines can match regular expressions whose only operations > are closure (*), alternation (|), and grouping. Some of

Re: 'while <> {' in Perl 6

2002-08-09 Thread Mark J. Reed
On Sat, Aug 10, 2002 at 02:23:07AM +0800, Christian Renz wrote: > Actually, I once found myself wondering why while doesn't set $_ all > the time anyway... It would be nice to do things like Because the logic of the while construct doesn't require any connection between the condition and the topic

Re: 'while <> {' in Perl 6

2002-08-09 Thread Christian Renz
>I was wondering whether the Perl 'while (<>){' idiom will continue to >be supported in Perl 6? Actually, I once found myself wondering why while doesn't set $_ all the time anyway... It would be nice to do things like while ($iterator->each()) { ... } while (query->nextResult()) { ... }

Re: 'while <> {' in Perl 6

2002-08-09 Thread Trey Harris
In a message dated Fri, 9 Aug 2002, Adam Lopresto writes: > I was wondering whether the Perl 'while (<>){' idiom will continue to be > supported in Perl 6? I seem to recall people posting example code the list > using it (although I can't dig any up), but it seems to me that if Perl 6's > lazy l

'while <> {' in Perl 6

2002-08-09 Thread Adam Lopresto
I was wondering whether the Perl 'while (<>){' idiom will continue to be supported in Perl 6? I seem to recall people posting example code the list using it (although I can't dig any up), but it seems to me that if Perl 6's lazy list implementation is sufficiently smart, it could just be replaced