source: NonGTP/Boost/boost/spirit/core/composite/sequential_and.hpp @ 857

Revision 857, 2.3 KB checked in by igarcia, 18 years ago (diff)
Line 
1/*=============================================================================
2    Copyright (c) 1998-2003 Joel de Guzman
3    Copyright (c) 2001 Daniel Nuffer
4    Copyright (c) 2002 Hartmut Kaiser
5    http://spirit.sourceforge.net/
6
7    Use, modification and distribution is subject to the Boost Software
8    License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
9    http://www.boost.org/LICENSE_1_0.txt)
10=============================================================================*/
11#if !defined(BOOST_SPIRIT_SEQUENTIAL_AND_HPP)
12#define BOOST_SPIRIT_SEQUENTIAL_AND_HPP
13
14#include <boost/spirit/core/parser.hpp>
15#include <boost/spirit/core/primitives/primitives.hpp>
16#include <boost/spirit/core/composite/composite.hpp>
17#include <boost/spirit/meta/as_parser.hpp>
18
19namespace boost { namespace spirit {
20
21    ///////////////////////////////////////////////////////////////////////////
22    //
23    //  sequential-and operators
24    //
25    //      Handles expressions of the form:
26    //
27    //          a && b
28    //
29    //      Same as a >> b.
30    //
31    ///////////////////////////////////////////////////////////////////////////
32    template <typename A, typename B>
33    sequence<A, B>
34    operator&&(parser<A> const& a, parser<B> const& b);
35   
36    template <typename A>
37    sequence<A, chlit<char> >
38    operator&&(parser<A> const& a, char b);
39   
40    template <typename B>
41    sequence<chlit<char>, B>
42    operator&&(char a, parser<B> const& b);
43   
44    template <typename A>
45    sequence<A, strlit<char const*> >
46    operator&&(parser<A> const& a, char const* b);
47   
48    template <typename B>
49    sequence<strlit<char const*>, B>
50    operator&&(char const* a, parser<B> const& b);
51   
52    template <typename A>
53    sequence<A, chlit<wchar_t> >
54    operator&&(parser<A> const& a, wchar_t b);
55   
56    template <typename B>
57    sequence<chlit<wchar_t>, B>
58    operator&&(wchar_t a, parser<B> const& b);
59   
60    template <typename A>
61    sequence<A, strlit<wchar_t const*> >
62    operator&&(parser<A> const& a, wchar_t const* b);
63   
64    template <typename B>
65    sequence<strlit<wchar_t const*>, B>
66    operator&&(wchar_t const* a, parser<B> const& b);
67
68}} // namespace boost::spirit
69
70#endif
71
72#include <boost/spirit/core/composite/impl/sequential_and.ipp>
Note: See TracBrowser for help on using the repository browser.