From: Eric Mahurin Date: 2005-05-30T07:14:23+09:00 Subject: Re: cursor-0.6 --- Simon Strandgaard wrote: > On 5/28/05, Eric Mahurin wrote: > [snip] > > I think you'd have to rewrite it from scratch in Ruby or do > > stuff in C. Like I said, Regexp is too tied to String. If > it > > could handle String-like objects, you might be able to do > it. > > Or if it would have a callback when it reached the end of > the > > string (or the matched failed) that might help. > Unfortunately, > > there isn't enough control. > [snip] > > I have made a regexp lib where you can supply your own > iterators if you have string like classes. > > http://rubyforge.org/frs/download.php/1311/regexp-engine-0.12.zip > > Maybe it has interest? Possibly. From what I could tell this is pure ruby. So it offers a lot more flexibility than the C Regexp. But, you loose all of the speed advantage, right? For my purposes, that was the only reason I wanted to incorporate Regexp - because Grammar will be able to do Regexp like stuff - and more. __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/