def text_to_data(self, text, elt, ps):
if self.pyclass is not None:<EOL><INDENT>v = self.pyclass(text) <EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>v = int(text)<EOL><DEDENT>except:<EOL><INDENT>try:<EOL><INDENT>v = int(text)<EOL><DEDENT>except:<EOL><INDENT>raise EvaluateException('<STR_LIT>', <EOL>ps.Backtrace(elt))<EOL><DEDENT><DEDENT><DEDENT>return v<EOL>
convert text into typecode specific data.