Chris@16
|
1 /*=============================================================================
|
Chris@16
|
2 Copyright (c) 2006 Tobias Schwinger
|
Chris@16
|
3 http://spirit.sourceforge.net/
|
Chris@16
|
4
|
Chris@16
|
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
|
Chris@16
|
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
7 =============================================================================*/
|
Chris@16
|
8 #if !defined(BOOST_SPIRIT_TREE_COMMON_FWD_HPP)
|
Chris@16
|
9 #define BOOST_SPIRIT_TREE_COMMON_FWD_HPP
|
Chris@16
|
10
|
Chris@16
|
11 #include <boost/spirit/home/classic/namespace.hpp>
|
Chris@16
|
12 #include <boost/spirit/home/classic/core/nil.hpp>
|
Chris@16
|
13
|
Chris@16
|
14 namespace boost { namespace spirit {
|
Chris@16
|
15
|
Chris@16
|
16 BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
|
Chris@16
|
17
|
Chris@16
|
18 template <typename T>
|
Chris@16
|
19 struct tree_node;
|
Chris@16
|
20
|
Chris@16
|
21 template <typename IteratorT = char const*, typename ValueT = nil_t>
|
Chris@16
|
22 struct node_iter_data;
|
Chris@16
|
23
|
Chris@16
|
24 template <typename ValueT = nil_t>
|
Chris@16
|
25 class node_iter_data_factory;
|
Chris@16
|
26
|
Chris@16
|
27 template <typename ValueT = nil_t>
|
Chris@16
|
28 class node_val_data_factory;
|
Chris@16
|
29
|
Chris@16
|
30 template <typename ValueT = nil_t>
|
Chris@16
|
31 class node_all_val_data_factory;
|
Chris@16
|
32
|
Chris@16
|
33 template <
|
Chris@16
|
34 typename IteratorT,
|
Chris@16
|
35 typename NodeFactoryT = node_val_data_factory<nil_t>,
|
Chris@16
|
36 typename T = nil_t
|
Chris@16
|
37 >
|
Chris@16
|
38 class tree_match;
|
Chris@16
|
39
|
Chris@16
|
40 struct tree_policy;
|
Chris@16
|
41
|
Chris@16
|
42 template <
|
Chris@16
|
43 typename MatchPolicyT,
|
Chris@16
|
44 typename IteratorT,
|
Chris@16
|
45 typename NodeFactoryT,
|
Chris@16
|
46 typename TreePolicyT,
|
Chris@16
|
47 typename T = nil_t
|
Chris@16
|
48 >
|
Chris@16
|
49 struct common_tree_match_policy;
|
Chris@16
|
50
|
Chris@16
|
51 template <typename MatchPolicyT, typename NodeFactoryT>
|
Chris@16
|
52 struct common_tree_tree_policy;
|
Chris@16
|
53
|
Chris@16
|
54 template <typename T>
|
Chris@16
|
55 struct no_tree_gen_node_parser;
|
Chris@16
|
56
|
Chris@16
|
57 template <typename T>
|
Chris@16
|
58 struct leaf_node_parser;
|
Chris@16
|
59
|
Chris@16
|
60 template <typename T, typename NodeParserT>
|
Chris@16
|
61 struct node_parser;
|
Chris@16
|
62
|
Chris@16
|
63 struct discard_node_op;
|
Chris@16
|
64 struct reduced_node_op;
|
Chris@16
|
65 struct infix_node_op;
|
Chris@16
|
66 struct discard_first_node_op;
|
Chris@16
|
67 struct discard_last_node_op;
|
Chris@16
|
68 struct inner_node_op;
|
Chris@16
|
69
|
Chris@16
|
70 template <typename T, typename ActionParserT>
|
Chris@16
|
71 struct action_directive_parser;
|
Chris@16
|
72
|
Chris@16
|
73 struct access_match_action
|
Chris@16
|
74 {
|
Chris@16
|
75 template <typename ParserT, typename ActionT>
|
Chris@16
|
76 struct action;
|
Chris@16
|
77 };
|
Chris@16
|
78
|
Chris@16
|
79 struct access_node_action
|
Chris@16
|
80 {
|
Chris@16
|
81 template <typename ParserT, typename ActionT>
|
Chris@16
|
82 struct action;
|
Chris@16
|
83 };
|
Chris@16
|
84
|
Chris@16
|
85 template <
|
Chris@16
|
86 typename IteratorT = char const *,
|
Chris@16
|
87 typename NodeFactoryT = node_val_data_factory<nil_t>,
|
Chris@16
|
88 typename T = nil_t
|
Chris@16
|
89 >
|
Chris@16
|
90 struct tree_parse_info;
|
Chris@16
|
91
|
Chris@16
|
92 BOOST_SPIRIT_CLASSIC_NAMESPACE_END
|
Chris@16
|
93
|
Chris@16
|
94 }} // namespace BOOST_SPIRIT_CLASSIC_NS
|
Chris@16
|
95
|
Chris@16
|
96 #endif
|