// Copyright (c) 2001-2008 Hartmut Kaiser // 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_KARMA_META_GRAMMAR_MAR_05_2007_0436PM) #define BOOST_SPIRIT_KARMA_META_GRAMMAR_MAR_05_2007_0436PM #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once // MS compatible compilers support #pragma once #endif #include #include #include #include #include namespace boost { namespace spirit { namespace karma { /////////////////////////////////////////////////////////////////////////// // forwards /////////////////////////////////////////////////////////////////////////// struct nonterminal_director; template struct is_valid_expr; template struct expr_transform; /////////////////////////////////////////////////////////////////////////// // nonterminal meta-grammar /////////////////////////////////////////////////////////////////////////// struct nonterminal_meta_grammar : meta_grammar::terminal_rule< karma::domain, nonterminal_holder, nonterminal_director > { }; /////////////////////////////////////////////////////////////////////////// // These specializations non-intrusively hook into the Karma meta-grammar. // (see karma/meta_grammar.hpp) /////////////////////////////////////////////////////////////////////////// template struct is_valid_expr< Expr, typename enable_if< proto::matches >::type > : mpl::true_ { }; template struct expr_transform< Expr, typename enable_if< proto::matches >::type > : mpl::identity { }; }}} #endif