def interpret(self):
strn = self.lineEdit().text()<EOL>suf = self.opts['<STR_LIT>']<EOL>if len(suf) > <NUM_LIT:0>:<EOL><INDENT>if strn[-len(suf):] != suf:<EOL><INDENT>return False<EOL><DEDENT>strn = strn[:-len(suf)]<EOL><DEDENT>try:<EOL><INDENT>val = fn.siEval(strn)<EOL><DEDENT>except:<EOL><INDENT>return False<EOL><DEDENT>return val<EOL>
Return value of text. Return False if text is invalid, raise exception if text is intermediate