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