The functor instance for Parser