⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 directives.ipp

📁 著名的Parser库Spirit在VC6上的Port
💻 IPP
字号:
/*=============================================================================
    Parser directives

    Spirit V1.3.1
    Copyright (c) 2001, Joel de Guzman

    This software is provided 'as-is', without any express or implied
    warranty. In no event will the copyright holder be held liable for
    any damages arising from the use of this software.

    Permission is granted to anyone to use this software for any purpose,
    including commercial applications, and to alter it and redistribute
    it freely, subject to the following restrictions:

    1.  The origin of this software must not be misrepresented; you must
        not claim that you wrote the original software. If you use this
        software in a product, an acknowledgment in the product documentation
        would be appreciated but is not required.

    2.  Altered source versions must be plainly marked as such, and must
        not be misrepresented as being the original software.

    3.  This notice may not be removed or altered from any source
        distribution.

    Acknowledgements:

        Special thanks to Dan Nuffer, John (EBo) David, Chris Uzdavinis,
        and Doug Gregor. These people are most instrumental in steering
        Spirit in the right direction.

        Special thanks also to people who have contributed to the code base
        and sample code, ported Spirit to various platforms and compilers,
        gave suggestions, reported and provided bug fixes. Alexander
        Hirner, Andy Elvey, Bogdan Kushnir, Brett Calcott, Bruce Florman,
        Changzhe Han, Colin McPhail, Hakki Dogusan, Jan Bares, Joseph
        Smith, Martijn W. van der Lee, Raghavendra Satish, Remi Delcos, Tom
        Spilman, Vladimir Prus, W. Scott Dillman, David A. Greene, Bob
        Bailey, Hartmut Kaiser.

        Finally special thanks also to people who gave feedback and
        valuable comments, particularly members of Spirit's Source Forge
        mailing list and boost.org.

    URL: http://spirit.sourceforge.net/

==============================================================================*/
#ifndef SPIRIT_DIRECTIVES_IPP
#define SPIRIT_DIRECTIVES_IPP

///////////////////////////////////////////////////////////////////////////////

#include "boost/spirit/MSVC/directives.hpp"
#include "boost/spirit/MSVC/operators.hpp"
#include "boost/spirit/MSVC/iterators.hpp"
#include "boost/spirit/MSVC/primitives.hpp"

///////////////////////////////////////////////////////////////////////////////
namespace spirit {

///////////////////////////////////////////////////////////////////////////////
//
//  contiguous class implementation
//
///////////////////////////////////////////////////////////////////////////////
template <typename S>
inline contiguous<S>::contiguous(S const& a)
:   unary<S>(a) {}


///////////////////////////////////////////////////////////////////////////////
//
//  inhibit_case class implementation
//
///////////////////////////////////////////////////////////////////////////////
template <typename S>
inline inhibit_case<S>::inhibit_case(S const& a)
:   unary<S>(a) {}

//////////////////////////////////
inline inhibit_case<chlit<char> >
inhibit_case_parser_gen::operator[](char ch) const
{
    return inhibit_case<chlit<char> >(chlit<char>(ch));
}

//////////////////////////////////
inline inhibit_case<chlit<wchar_t> >
inhibit_case_parser_gen::operator[](wchar_t ch) const
{
    return inhibit_case<chlit<wchar_t> >(chlit<wchar_t>(ch));
}

//////////////////////////////////
inline inhibit_case<strlit<cstring<char> > >
inhibit_case_parser_gen::operator[](char const* str) const
{
    return inhibit_case<strlit<cstring<char> > >
        (strlit<cstring<char> >(str));
}

//////////////////////////////////
inline inhibit_case<strlit<cstring<wchar_t> > >
inhibit_case_parser_gen::operator[](wchar_t const* str) const
{
    return inhibit_case<strlit<cstring<wchar_t> > >
        (strlit<cstring<wchar_t> >(str));
}

///////////////////////////////////////////////////////////////////////////////
//
//  longest_alternative class implementation
//
///////////////////////////////////////////////////////////////////////////////
template <typename A, typename B>
inline longest_alternative<A, B>::longest_alternative(A const& a, B const& b)
:   binary<A, B>(a, b) {}


///////////////////////////////////////////////////////////////////////////////
//
//  shortest_alternative class implementation
//
///////////////////////////////////////////////////////////////////////////////
template <typename A, typename B>
inline shortest_alternative<A, B>::shortest_alternative(A const& a, B const& b)
:   binary<A, B>(a, b) {}

///////////////////////////////////////////////////////////////////////////////
}   //  namespace Spirit

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -