1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
6 Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
7 Software License, Version 1.0. (See accompanying file
8 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 =============================================================================*/
11 #if !defined(CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED)
12 #define CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED
14 #include <boost/wave/wave_config.hpp>
15 #include <boost/wave/cpp_iteration_context.hpp>
16 #include <boost/wave/grammars/cpp_value_error.hpp>
19 #include <boost/pool/pool_alloc.hpp>
21 // this must occur after all of the includes and before any code appears
22 #ifdef BOOST_HAS_ABI_HEADERS
23 #include BOOST_ABI_PREFIX
26 // suppress warnings about dependent classes not being exported from the dll
29 #pragma warning(disable : 4251 4231 4660)
32 ///////////////////////////////////////////////////////////////////////////////
37 ///////////////////////////////////////////////////////////////////////////////
39 // expression_grammar_gen template class
41 // This template helps separating the compilation of the
42 // expression_grammar class from the compilation of the main
43 // pp_iterator. This is done to safe compilation time.
45 ///////////////////////////////////////////////////////////////////////////////
47 template <typename TokenT>
48 struct BOOST_WAVE_DECL expression_grammar_gen {
50 typedef TokenT token_type;
51 typedef std::list<token_type, boost::fast_pool_allocator<token_type> >
55 typename token_sequence_type::const_iterator const &first,
56 typename token_sequence_type::const_iterator const &last,
57 typename token_type::position_type const &tok,
58 bool if_block_status, value_error &status);
61 ///////////////////////////////////////////////////////////////////////////////
62 } // namespace grammars
70 // the suffix header occurs after all of the code
71 #ifdef BOOST_HAS_ABI_HEADERS
72 #include BOOST_ABI_SUFFIX
75 #endif // !defined(CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED)