Closing brace encountered , solve entire brace .
INDENT elif tokens [ i ] == ' ) ' : NEW_LINE INDENT while len ( ops ) != 0 and ops [ - 1 ] != ' ( ' : NEW_LINE INDENT val2 = values . pop ( ) NEW_LINE val1 = values . pop ( ) NEW_LINE op = ops . pop ( ) NEW_LINE values . append ( applyOp ( val1 , val2 , op ) ) NEW_LINE DEDENT DEDENT DEDENT