1 | /*============================================================================= |
---|
2 | Copyright (c) 2006 Tobias Schwinger |
---|
3 | http://spirit.sourceforge.net/ |
---|
4 | |
---|
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 | =============================================================================*/ |
---|
9 | #if !defined(BOOST_SPIRIT_TREE_COMMON_FWD_HPP) |
---|
10 | #define BOOST_SPIRIT_TREE_COMMON_FWD_HPP |
---|
11 | |
---|
12 | #include <boost/spirit/core/nil.hpp> |
---|
13 | |
---|
14 | namespace boost { namespace spirit { |
---|
15 | |
---|
16 | template <typename T> |
---|
17 | struct tree_node; |
---|
18 | |
---|
19 | template <typename IteratorT = char const*, typename ValueT = nil_t> |
---|
20 | struct node_iter_data; |
---|
21 | |
---|
22 | template <typename ValueT = nil_t> |
---|
23 | class node_iter_data_factory; |
---|
24 | |
---|
25 | template <typename ValueT = nil_t> |
---|
26 | class node_val_data_factory; |
---|
27 | |
---|
28 | template <typename ValueT = nil_t> |
---|
29 | class node_all_val_data_factory; |
---|
30 | |
---|
31 | template < |
---|
32 | typename IteratorT, |
---|
33 | typename NodeFactoryT = node_val_data_factory<nil_t>, |
---|
34 | typename T = nil_t |
---|
35 | > |
---|
36 | class tree_match; |
---|
37 | |
---|
38 | struct tree_policy; |
---|
39 | |
---|
40 | template < |
---|
41 | typename MatchPolicyT, |
---|
42 | typename IteratorT, |
---|
43 | typename NodeFactoryT, |
---|
44 | typename TreePolicyT |
---|
45 | > |
---|
46 | struct common_tree_match_policy; |
---|
47 | |
---|
48 | template <typename MatchPolicyT, typename NodeFactoryT> |
---|
49 | struct common_tree_tree_policy; |
---|
50 | |
---|
51 | template <typename T> |
---|
52 | struct no_tree_gen_node_parser; |
---|
53 | |
---|
54 | template <typename T, typename NodeParserT> |
---|
55 | struct node_parser; |
---|
56 | |
---|
57 | struct discard_node_op; |
---|
58 | struct leaf_node_op; |
---|
59 | struct infix_node_op; |
---|
60 | struct discard_first_node_op; |
---|
61 | struct discard_last_node_op; |
---|
62 | struct inner_node_op; |
---|
63 | |
---|
64 | template <typename T, typename ActionParserT> |
---|
65 | struct action_directive_parser; |
---|
66 | |
---|
67 | struct access_match_action |
---|
68 | { |
---|
69 | template <typename ParserT, typename ActionT> |
---|
70 | struct action; |
---|
71 | }; |
---|
72 | |
---|
73 | struct access_node_action |
---|
74 | { |
---|
75 | template <typename ParserT, typename ActionT> |
---|
76 | struct action; |
---|
77 | }; |
---|
78 | |
---|
79 | template < |
---|
80 | typename IteratorT = char const *, |
---|
81 | typename NodeFactoryT = node_val_data_factory<nil_t>, |
---|
82 | typename T = nil_t |
---|
83 | > |
---|
84 | struct tree_parse_info; |
---|
85 | |
---|
86 | }} // namespace boost::spirit |
---|
87 | |
---|
88 | #endif |
---|