def text_to_data(self, text, elt, ps):
if text is None:<EOL><INDENT>return None<EOL><DEDENT>m = self.lex_pattern.match(text)<EOL>if not m:<EOL><INDENT>raise EvaluateException('<STR_LIT>' %text, ps.Backtrace(elt))<EOL><DEDENT>try:<EOL><INDENT>retval = _dict_to_tuple(m.groupdict())<EOL><DEDENT>except ValueError as e:<EOL><INDENT>raise<EOL><DEDENT>if self.pyclass is not None:<EOL><INDENT>return self.pyclass(retval)<EOL><DEDENT>return retval<EOL>
convert text into typecode specific data.