On Tue, Dec 07, 2004 at 11:33:54AM -0800, Kevin Scaldeferri wrote: > I'm wondering if I'm the only one who would love to see > Devel::Cover::Regex? Many (most?) perl programs are pretty regex > heavy, and if we are honest with ourselves, we have to admit that each > regex is actually a program in itself. You can try to throw lots of > inputs at it and hope that you were thorough enough, but most of us > aren't that good at figuring out all the crazy ways a regex could > execute. I think this would be a very useful extension to > Devel::Cover, although I imagine that it's pretty tricky to do. Even > figuring out how to display the results might be tough to do well.
This is something I mentioned early in the development of Devel::Cover. I think the display should map fairly well into the statements, branches and conditions we have at the moment. Atoms map to statements. Quantifiers map to branches. Alternation maps to conditions. It won't be quite that simple of course, but I think that should be the basics. > Occasionally I have fantasies of having enough free time to really dig > into the internals of the regex engine and trying to do this, but to be > honest I don't really see it happening for me. So, I figure the next > best thing is to throw this idea out here and see if anyone else runs > with it. Micheal suggested mjd's Rx might be useful. Jeff Pinyan's Regexp::Parser might also help as a base. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net