• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2     Boost.Wave: A Standard compliant C++ preprocessor library
3 
4     http://www.boost.org/
5 
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 =============================================================================*/
10 
11 #if !defined(BOOST_CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED)
12 #define BOOST_CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED
13 
14 #include <boost/wave/wave_config.hpp>
15 #include <boost/wave/cpp_iteration_context.hpp>
16 #include <boost/wave/grammars/cpp_value_error.hpp>
17 
18 #include <list>
19 #include <boost/pool/pool_alloc.hpp>
20 
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
24 #endif
25 
26 // suppress warnings about dependent classes not being exported from the dll
27 #ifdef BOOST_MSVC
28 #pragma warning(push)
29 #pragma warning(disable : 4251 4231 4660)
30 #endif
31 
32 ///////////////////////////////////////////////////////////////////////////////
33 namespace boost {
34 namespace wave {
35 namespace grammars {
36 
37 ///////////////////////////////////////////////////////////////////////////////
38 //
39 //  expression_grammar_gen template class
40 //
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.
44 //
45 ///////////////////////////////////////////////////////////////////////////////
46 
47 template <typename TokenT>
48 struct BOOST_WAVE_DECL expression_grammar_gen {
49 
50     typedef TokenT token_type;
51     typedef std::list<token_type, boost::fast_pool_allocator<token_type> >
52         token_sequence_type;
53 
54     static bool evaluate(
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);
59 };
60 
61 ///////////////////////////////////////////////////////////////////////////////
62 }   //  namespace grammars
63 }   //  namespace wave
64 }   //  namespace boost
65 
66 #ifdef BOOST_MSVC
67 #pragma warning(pop)
68 #endif
69 
70 // the suffix header occurs after all of the code
71 #ifdef BOOST_HAS_ABI_HEADERS
72 #include BOOST_ABI_SUFFIX
73 #endif
74 
75 #endif // !defined(BOOST_CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED)
76