def parse(self, string, parent):
        """Parses all the value code elements from the specified string."""
        result = {}
        for member in self.RE_MEMBERS.finditer(string):
            mems = self._process_member(member, parent, string)
            #The regex match could contain multiple members that were defined
            #on the same line in the code file.
            for onemem in mems:
                result[onemem.name.lower()] = onemem
                
        return result
def parse ( self , string , parent ) : result = { } for member in self . RE_MEMBERS . finditer ( string ) : mems = self . _process_member ( member , parent , string ) for onemem in mems : result [ onemem . name . lower ( ) ] = onemem return result
Parses all the value code elements from the specified string.