/third_party/boost/libs/spirit/test/support/ |
D | utree.cpp | 20 inline bool check(boost::spirit::utree const& val, std::string expected) in check() 34 boost::spirit::utree operator()(boost::spirit::utree) const in operator ()() 36 return boost::spirit::utree(123); in operator ()() 42 boost::spirit::utree operator()(boost::spirit::utree) const in operator ()() 44 return boost::spirit::utree(static_cast<int>(boost::hash_value(this))); in operator ()() 50 using boost::spirit::utree; in main() 58 << sizeof(utree) << " bytes" << std::endl; in main() 59 BOOST_TEST_EQ(sizeof(utree), sizeof(void*[4])); in main() 65 utree val(nil); in main() 72 utree val(empty_list); in main() [all …]
|
D | utree_debug.cpp | 20 qi::rule<std::string::iterator, spirit::utree()> r = qi::int_; in main() 23 spirit::utree ut; in main()
|
D | Jamfile | 52 run utree.cpp ;
|
/third_party/boost/boost/spirit/home/support/utree/ |
D | operators.hpp | 32 bool operator==(utree const& a, utree const& b); 33 bool operator<(utree const& a, utree const& b); 34 bool operator!=(utree const& a, utree const& b); 35 bool operator>(utree const& a, utree const& b); 36 bool operator<=(utree const& a, utree const& b); 37 bool operator>=(utree const& a, utree const& b); 41 std::ostream& operator<<(std::ostream& out, utree const& x); 42 std::ostream& operator<<(std::ostream& out, utree::invalid_type const& x); 43 std::ostream& operator<<(std::ostream& out, utree::nil_type const& x); 47 utree operator&&(utree const& a, utree const& b); [all …]
|
D | utree_traits.hpp | 35 inline T get(boost::spirit::utree const& x) in get() 46 inline bool is_list(utree const& ut) in is_list() 63 inline bool is_uninitialized(utree const& ut) in is_uninitialized() 72 struct variant_which<utree> 74 static int call(utree const& u) { return u.which(); } in call() 78 struct variant_which<utree::list_type> 80 static int call(utree::list_type const& u) { return u.which(); } in call() 87 struct alternative_attribute_transform<utree::list_type, Domain> 88 : mpl::identity<utree> 95 struct sequence_attribute_transform<utree::list_type, Domain> [all …]
|
D | utree.hpp | 239 class utree; 245 virtual utree operator()(utree const& env) const = 0; 246 virtual utree operator()(utree& env) const = 0; 259 virtual utree operator()(utree const& env) const; 260 virtual utree operator()(utree& env) const; 270 virtual utree operator()(utree const& env) const; 271 virtual utree operator()(utree& env) const; 321 friend class utree; 328 class utree { class 344 typedef utree value_type; [all …]
|
D | utree_traits_fwd.hpp | 15 class utree; 21 inline T get(boost::spirit::utree const& x);
|
/third_party/boost/boost/spirit/home/support/utree/detail/ |
D | utree_detail2.hpp | 144 utree val; 167 friend class boost::spirit::utree; 220 friend class boost::spirit::utree; 583 static utree& apply(utree& ut, std::size_t i) in apply() 601 static utree const& apply(utree const& ut, std::size_t i) in apply() 619 static utree& apply(list::node* node, std::size_t i) in apply() 626 static utree const& apply(list::node const* node, std::size_t i) in apply() 649 utree stored_function<F>::operator()(utree const& env) const in operator ()() 655 utree stored_function<F>::operator()(utree& env) const in operator ()() 679 utree referenced_function<F>::operator()(utree const& env) const in operator ()() [all …]
|
/third_party/boost/libs/spirit/example/qi/ |
D | calc_utree.cpp | 39 struct result_of_plus<spirit::utree&, spirit::utree&> 41 typedef spirit::utree type; 45 struct result_of_minus<spirit::utree&, spirit::utree&> 47 typedef spirit::utree type; 51 struct result_of_multiplies<spirit::utree&, spirit::utree&> 53 typedef spirit::utree type; 57 struct result_of_divides<spirit::utree&, spirit::utree&> 59 typedef spirit::utree type; 63 struct result_of_negate<spirit::utree&> 65 typedef spirit::utree type; [all …]
|
D | calc_utree_ast.cpp | 43 void operator()(spirit::utree& expr, spirit::utree const& rhs) const in operator ()() 45 spirit::utree lhs; in operator ()() 64 void operator()(spirit::utree& expr, spirit::utree const& rhs) const in operator ()() 78 struct calculator : qi::grammar<Iterator, ascii::space_type, spirit::utree()> 112 qi::rule<Iterator, ascii::space_type, spirit::utree()> expression, term, factor; 127 using boost::spirit::utree; in main() 141 utree ut; in main()
|
D | calc_utree_naive.cpp | 47 struct calculator : qi::grammar<Iterator, ascii::space_type, spirit::utree()> 80 qi::rule<Iterator, ascii::space_type, spirit::utree()> expression; 81 qi::rule<Iterator, ascii::space_type, spirit::utree::list_type()> term; 82 qi::rule<Iterator, ascii::space_type, spirit::utree::list_type()> factor; 97 using boost::spirit::utree; in main() 111 utree ut; in main()
|
/third_party/boost/libs/spirit/doc/support/ |
D | utree.qbk | 10 [import ../../../../boost/spirit/home/support/utree/utree.hpp] 11 [import ../../example/support/utree/sexpr_parser.hpp] 13 [section:utree The utree data structure] 15 `utree` is a dynamically-typed hierarchical data structure that can represent 16 abstract syntax trees. It's well integrated with __qi__ and __karma__. `utree` 17 can be passed as an attribute to almost any grammar. `utree`'s type system is 20 `utree` has a minimal memory footprint. The data structure size is 16 bytes on a 29 `utree`. The maximum possible length of the data to be stored in the node data 30 depends on the platform the `utree` is compiled for. It is 14 bytes for a 35 The `utree` data structure is very versatile and can be used as an attribute [all …]
|
/third_party/boost/libs/spirit/example/support/utree/ |
D | sexpr_parser.hpp | 20 struct transform_attribute<utree::nil_type, unused_type, qi::domain> { 23 static unused_type pre (utree::nil_type&) { return unused_type(); } in pre() 24 static void post (utree::nil_type&, unused_type) { } in post() 25 static void fail (utree::nil_type&) { } in fail() 39 using boost::spirit::utree; 88 void operator()(utree& ast, Range const& rng) const in operator ()() 103 struct tagger : qi::grammar<Iterator, void(utree&, char)> 105 qi::rule<Iterator, void(utree&, char)> 108 qi::rule<Iterator, void(utree&)> 152 struct parser : qi::grammar<Iterator, utree(), whitespace<Iterator> > [all …]
|
D | sexpr_generator.hpp | 20 struct transform_attribute<utree::nil_type, unused_type, karma::domain> { 23 static unused_type pre (utree::nil_type&) { return unused_type(); } in pre() 36 using boost::spirit::utree; 57 struct generator : karma::grammar<Iterator, utree()> 59 typedef boost::iterator_range<utree::const_iterator> utree_list; 61 karma::rule<Iterator, utree()> 70 karma::rule<Iterator, utree::nil_type()>
|
D | utf8_parser.hpp | 32 using boost::spirit::utree;
|
/third_party/boost/libs/spirit/test/qi/ |
D | utree1.cpp | 19 inline bool check(boost::spirit::utree const& val, std::string expected) in check() 34 using boost::spirit::utree; in main() 55 utree ut; in main() 80 utree ut; in main() 83 rule<char const*, utree()> r1 = char_("abc"); in main() 86 rule<char const*, utree::list_type()> r2 = char_("abc"); in main() 99 utree ut; in main() 116 rule<char const*, utree::list_type()> r1 = double_; in main() 127 rule<char const*, utree()> r2 = int_ >> char_("!") >> double_; in main() 133 rule<char const*, utree()> r3 = double_ >> as_string[string("foo")] >> int_; in main() [all …]
|
D | utree4.cpp | 19 inline bool check(boost::spirit::utree const& val, std::string expected) in check() 34 using boost::spirit::utree; in main() 61 utree ut; in main() 113 utree ut; in main() 131 rule<char const*, utree()> r2 = int_ % ','; in main() 140 rule<char const*, utree::list_type()> r3 = int_ % ','; in main() 149 rule<char const*, utree()> r4 = int_; in main() 158 rule<char const*, utree::list_type()> r5 = -r4; in main() 171 rule<char const*, utree::list_type()> r6 = int_; in main() 172 rule<char const*, utree()> r7 = -r6; in main() [all …]
|
D | utree2.cpp | 38 inline bool check(boost::spirit::utree const& val, std::string expected) in check() 53 using boost::spirit::utree; in main() 78 utree ut; in main() 89 rule<char const*, utree(), space_type> r1; in main() 90 rule<char const*, utree::list_type(), space_type> r2 = '(' >> *r1 >> ')'; in main() 123 rule<char const*, utree()> r1; in main() 124 rule<char const*, utree::list_type()> r2; in main() 126 BOOST_TEST(compare_attribute_type<utree>( in main() 132 utree ut; in main() 157 rule<char const*, utree()> r4 = double_ % ','; in main()
|
D | utree3.cpp | 19 inline bool check(boost::spirit::utree const& val, std::string expected) in check() 34 using boost::spirit::utree; in main() 59 utree ut; in main() 74 rule<char const*, utree()> r2 = strict_double | int_; in main() 82 rule<char const*, utree::list_type()> r3 = strict_double | int_; in main() 93 utree ut; in main() 125 rule<char const*, utree::list_type()> r1 = int_ >> -char_; in main() 137 rule<char const*, utree::list_type()> r2 = -int_ >> char_; in main() 149 rule<char const*, utree()> r3 = int_; in main() 166 utree ut; in main()
|
/third_party/boost/libs/spirit/test/karma/ |
D | utree2.cpp | 24 using boost::spirit::utree; in main() 42 utree ut; in main() 60 rule<output_iterator, utree()> r1, r1ref; in main() 62 rule<output_iterator, utree::const_range()> r1list; in main() 73 utree ut; in main() 80 utree ut1; in main() 135 rule<output_iterator, utree()> r1 = int_ | double_; in main() 136 utree ut(10); in main() 147 utree ut('x'); in main()
|
D | utree3.cpp | 24 using boost::spirit::utree; in main() 45 utree ut("xy"); in main() 68 utree ut("xy"); in main() 93 utree ut("buzz"); in main() 106 utree ut("foo"); in main() 119 utree ut; in main()
|
D | utree1.cpp | 24 using boost::spirit::utree; in main() 42 utree ut('x'); in main() 66 utree ut; in main() 89 rule<output_iterator, utree()> r2 = double_; in main() 101 utree ut1; in main()
|
/third_party/boost/libs/spirit/doc/ |
D | support.qbk | 13 [include support/utree.qbk]
|
/third_party/boost/libs/spirit/example/support/ |
D | Jamfile | 16 exe parse_sexpr : utree/parse_sexpr.cpp ;
|
/third_party/boost/boost/spirit/home/lex/lexer/lexertl/ |
D | token.hpp | 504 struct assign_to_container_from_value<utree 506 : assign_to_attribute_from_value<utree
|