wrote a functor instance for the parser
wrote a functor instance for the parser