#NEWLINE# def calculate( self , s ) : #NEWLINE# #INDENT# '\n        * infix to postfix\n        * eval postfix\n        :type s: str\n        :rtype: int\n        ' #NEWLINE# lst = self . to_list ( s ) #NEWLINE# postfix = self . infix2postfix ( lst ) #NEWLINE# return self . eval_postfix ( postfix )