Use applicative parsec for p_hex.