Project revived from Feb2017
[EroSomnia.git] / deps / boost_1_63_0 / boost / spirit / home / classic / dynamic / typeof.hpp
blob7ed99c657b6aa4652fb42f255a7ff606c2a87a47
1 /*=============================================================================
2 Copyright (c) 2006 Tobias Schwinger
3 http://spirit.sourceforge.net/
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8 #if !defined(BOOST_SPIRIT_DYNAMIC_TYPEOF_HPP)
9 #define BOOST_SPIRIT_DYNAMIC_TYPEOF_HPP
11 #include <boost/typeof/typeof.hpp>
13 #include <boost/spirit/home/classic/namespace.hpp>
14 #include <boost/spirit/home/classic/core/typeof.hpp>
16 #include <boost/spirit/home/classic/dynamic/stored_rule_fwd.hpp>
18 namespace boost { namespace spirit {
20 BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
22 // if.hpp
23 template <class ParsableT, typename CondT> struct if_parser;
24 template <class ParsableTrueT, class ParsableFalseT, typename CondT>
25 struct if_else_parser;
27 // for.hpp
28 namespace impl {
29 template<typename InitF, typename CondT, typename StepF, class ParsableT>
30 struct for_parser;
33 // while.hpp
34 template<typename ParsableT, typename CondT, bool is_do_parser>
35 struct while_parser;
37 // lazy.hpp
38 template<typename ActorT> struct lazy_parser;
40 // rule_alias.hpp
41 template <typename ParserT> class rule_alias;
43 // switch.hpp
44 template <typename CaseT, typename CondT> struct switch_parser;
45 template <int N, class ParserT, bool IsDefault> struct case_parser;
47 // select.hpp
48 template <typename TupleT, typename BehaviourT, typename T>
49 struct select_parser;
51 BOOST_SPIRIT_CLASSIC_NAMESPACE_END
53 }} // namespace BOOST_SPIRIT_CLASSIC_NS
56 #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
58 // if.hpp
59 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::if_parser,2)
60 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::if_else_parser,3)
62 // for.hpp
63 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::impl::for_parser,4)
65 // while.hpp
66 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::while_parser,(class)(class)(bool))
68 // lazy.hpp
69 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::lazy_parser,1)
71 // stored_rule.hpp (has forward header)
72 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::stored_rule,(typename)(typename)(typename)(bool))
73 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::stored_rule,3)
74 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::stored_rule,2)
75 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::stored_rule,1)
76 BOOST_TYPEOF_REGISTER_TYPE(BOOST_SPIRIT_CLASSIC_NS::stored_rule<>)
78 // rule_alias.hpp
79 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::rule_alias,1)
81 // switch.hpp
82 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::switch_parser,2)
83 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::case_parser,(int)(class)(bool))
85 // select.hpp
86 BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::select_parser,3)
88 #endif