[Boost-bugs] [Boost C++ Libraries] #1752: Feeding new tokens to be processed from a "#pragma wave" directive

Subject: [Boost-bugs] [Boost C++ Libraries] #1752: Feeding new tokens to be processed from a "#pragma wave" directive
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-02 10:03:10


#1752: Feeding new tokens to be processed from a "#pragma wave" directive
--------------------------------+-------------------------------------------
 Reporter: caminant_at_[hidden] | Owner: hkaiser
     Type: Feature Requests | Status: new
Milestone: Boost 1.36.0 | Component: wave
  Version: Boost 1.34.1 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 While processing a custom "#pragma wave" directive using a struct derived
 from context_policies::default_preprocessing_hooks like in this example :

 {{{

         class EmptyPreprocessorHooks
                         : public
 boost::wave::context_policies::default_preprocessing_hooks
         {
         public:

         template <typename ContextT, typename ContainerT>
         bool interpret_pragma(ContextT const &ctx, ContainerT &pending,
             typename ContextT::token_type const &option,
             ContainerT const &values,
             typename ContextT::token_type const &pragma_token)
                 {
                         return true;
                 }

         };

 }}}

 it is possible to feed tokens in the "pending" container, that are copied
 verbatim to the output. What I think it would be very interesting is that
 this tokens are not copied verbatim, but parsed and processed. For
 instance, you could add "#define" or "#include" directives and they would
 be processed normally. Right now they are just copied.

 Thanks.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1752>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC