parsing binary expressions