Project revived from Feb2017
[EroSomnia.git] / deps / boost_1_63_0 / boost / wave / grammars / cpp_expression_grammar_gen.hpp
bloba575c9f701be1909c7063fbfe17ea0bad1ed35b3
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
4 http://www.boost.org/
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>
18 #include <list>
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
24 #endif
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
32 ///////////////////////////////////////////////////////////////////////////////
33 namespace boost {
34 namespace wave {
35 namespace grammars {
37 ///////////////////////////////////////////////////////////////////////////////
38 //
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> >
52 token_sequence_type;
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);
61 ///////////////////////////////////////////////////////////////////////////////
62 } // namespace grammars
63 } // namespace wave
64 } // namespace boost
66 #ifdef BOOST_MSVC
67 #pragma warning(pop)
68 #endif
70 // the suffix header occurs after all of the code
71 #ifdef BOOST_HAS_ABI_HEADERS
72 #include BOOST_ABI_SUFFIX
73 #endif
75 #endif // !defined(CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED)