]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/spirit/classic/test/group_match_bug.cpp
1 /*=============================================================================
2 Copyright (c) 2004 Joao Abecasis
3 http://spirit.sourceforge.net/
5 Use, modification and distribution is subject to the Boost Software
6 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 http://www.boost.org/LICENSE_1_0.txt)
8 =============================================================================*/
10 #include <boost/spirit/include/classic_core.hpp>
12 #include <boost/spirit/include/classic_closure.hpp>
14 #include <boost/spirit/include/classic_ast.hpp>
15 #include <boost/spirit/include/classic_parse_tree.hpp>
17 using namespace BOOST_SPIRIT_CLASSIC_NS
;
19 struct test_closure
: public closure
<test_closure
, int>
24 struct test_grammar
: public grammar
<test_grammar
>
26 template <typename ScannerT
>
29 definition(const test_grammar
&)
33 rule
<ScannerT
, test_closure::context_t
> const & start() const
38 rule
<ScannerT
, test_closure::context_t
> first
;
44 parse("abcd", test_grammar());
45 pt_parse("abcd", test_grammar());
46 ast_parse("abcd", test_grammar());