/*============================================================================= Copyright (c) 2001-2003 Joel de Guzman Copyright (c) 2002-2003 Hartmut Kaiser http://spirit.sourceforge.net/ 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_PARSER_NAMES_HPP) #define BOOST_SPIRIT_PARSER_NAMES_HPP #if defined(BOOST_SPIRIT_DEBUG) ////////////////////////////////// #include #include namespace boost { namespace spirit { BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN /////////////////////////////////////////////////////////////////////////////// // // Declaration of helper functions, which return the name of a concrete // parser instance. The functions are specialized on the parser types. The // functions declared in this file are for the predefined parser types from // the Spirit core library only, so additional functions might be provided as // needed. // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // from actions.hpp template std::string parser_name(action const& p); /////////////////////////////////////////////////////////////////////////////// // from directives.hpp template std::string parser_name(contiguous const& p); template std::string parser_name(inhibit_case const& p); template std::string parser_name(longest_alternative const& p); template std::string parser_name(shortest_alternative const& p); /////////////////////////////////////////////////////////////////////////////// // from grammar.hpp template std::string parser_name(grammar const& p); /////////////////////////////////////////////////////////////////////////////// // from numerics.hpp template std::string parser_name(uint_parser const& p); template std::string parser_name(int_parser const& p); template std::string parser_name(real_parser const& p); /////////////////////////////////////////////////////////////////////////////// // from operators.hpp template std::string parser_name(sequence const& p); template std::string parser_name(sequential_or const& p); template std::string parser_name(alternative const& p); template std::string parser_name(intersection const& p); template std::string parser_name(difference const& p); template std::string parser_name(exclusive_or const& p); template std::string parser_name(optional const& p); template std::string parser_name(kleene_star const& p); template std::string parser_name(positive const& p); /////////////////////////////////////////////////////////////////////////////// // from parser.hpp template std::string parser_name(parser const& p); /////////////////////////////////////////////////////////////////////////////// // from primitives.hpp template std::string parser_name(char_parser const &p); template std::string parser_name(chlit const &p); template std::string parser_name(range const &p); template std::string parser_name(chseq const &p); template std::string parser_name(strlit const &p); std::string parser_name(nothing_parser const &p); std::string parser_name(epsilon_parser const &p); std::string parser_name(anychar_parser const &p); std::string parser_name(alnum_parser const &p); std::string parser_name(alpha_parser const &p); std::string parser_name(cntrl_parser const &p); std::string parser_name(digit_parser const &p); std::string parser_name(graph_parser const &p); std::string parser_name(lower_parser const &p); std::string parser_name(print_parser const &p); std::string parser_name(punct_parser const &p); std::string parser_name(blank_parser const &p); std::string parser_name(space_parser const &p); std::string parser_name(upper_parser const &p); std::string parser_name(xdigit_parser const &p); std::string parser_name(eol_parser const &p); std::string parser_name(end_parser const &p); /////////////////////////////////////////////////////////////////////////////// // from rule.hpp template std::string parser_name(rule const& p); /////////////////////////////////////////////////////////////////////////////// // from subrule.hpp template std::string parser_name(subrule_list const &p); template std::string parser_name(subrule_parser const &p); template std::string parser_name(subrule const &p); /////////////////////////////////////////////////////////////////////////////// // from chset.hpp /////////////////////////////////////////////////////////////////////////////// // // Decide, if a node is to be traced or not // /////////////////////////////////////////////////////////////////////////////// template< typename DerivedT, typename EmbedT, typename T0, typename T1, typename T2 > bool trace_parser(impl::rule_base const& p); template bool trace_parser(grammar const& p); template bool trace_parser(subrule const& p); template struct init_closure_parser; template bool trace_parser(init_closure_parser const& p); /////////////////////////////////////////////////////////////////////////////// BOOST_SPIRIT_CLASSIC_NAMESPACE_END }} // namespace BOOST_SPIRIT_CLASSIC_NS ////////////////////////////////// #include #endif // defined(BOOST_SPIRIT_DEBUG) #endif // !defined(BOOST_SPIRIT_PARSER_NAMES_HPP)