added function to parse rhight hand side of binary operations