parse exponentiation and modulus operators