parse exponent expressions