[PATCH] Match PMC

2004-08-17 Thread Steve Fink
I needed to create a Match PMC object for holding the match groups (parenthesized expressions and capturing rules) from a regex match. Unfortunately, it works by using another new PMC type, the MatchRange PMC, to signal that an element of its hashtable should be interpreted specially (as a

Re: [PATCH] Match PMC

2004-08-17 Thread Steve Fink
Oh, and here's my test code for the Match PMC. This is really just a copy of t/pmc/perlhash.t (since the Match PMC is supposed to behave like a hash for the most part), but with one added test case at the end showing how this would be used to store and retrieve hypotheticals. Index: t/pmc/match.t