right-to-left search with PEMDAS in expression parser