/*============================================================================= Copyright (c) 2001-2007 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #if !defined(BOOST_SPIRIT_META_GRAMMAR_FEB_05_2007_0320PM) #define BOOST_SPIRIT_META_GRAMMAR_FEB_05_2007_0320PM #include #include #include #include #include #include #include #include #include namespace boost { namespace spirit { namespace qi { /////////////////////////////////////////////////////////////////////////// // forwards /////////////////////////////////////////////////////////////////////////// struct lexeme_director; struct omit_director; struct raw_director; struct main_meta_grammar; template struct is_valid_expr; template struct expr_transform; /////////////////////////////////////////////////////////////////////////// // directive meta-grammars /////////////////////////////////////////////////////////////////////////// struct directive_meta_grammar : proto::or_< meta_grammar::deep_directive_meta_grammar< spirit::char_class::no_case_tag , main_meta_grammar > , meta_grammar::binary_rule_rhs< qi::domain, proto::tag::subscript, lexeme_director , proto::terminal, main_meta_grammar > , meta_grammar::binary_rule_rhs< qi::domain, proto::tag::subscript, omit_director , proto::terminal, main_meta_grammar > , meta_grammar::binary_rule_rhs< qi::domain, proto::tag::subscript, raw_director , proto::terminal, main_meta_grammar > > {}; /////////////////////////////////////////////////////////////////////////// // These specializations non-intrusively hooks into the RD meta-grammar. // (see qi/meta_grammar.hpp) /////////////////////////////////////////////////////////////////////////// template struct is_valid_expr >::type> : mpl::true_ { }; template struct expr_transform >::type> : mpl::identity { }; }}} #endif