/third_party/boost/libs/spirit/example/support/utree/ |
D | sexpr_parser.hpp | 20 struct transform_attribute<utree::nil_type, unused_type, qi::domain> { 35 namespace qi = boost::spirit::qi; 50 using boost::spirit::qi::detail::string_parse; in parse_true() 51 using boost::spirit::qi::bool_policies; in parse_true() 52 using boost::spirit::qi::unused; in parse_true() 66 using boost::spirit::qi::detail::string_parse; in parse_false() 67 using boost::spirit::qi::bool_policies; in parse_false() 68 using boost::spirit::qi::unused; in parse_false() 103 struct tagger : qi::grammar<Iterator, void(utree&, char)> 105 qi::rule<Iterator, void(utree&, char)> [all …]
|
/third_party/boost/libs/spirit/doc/ |
D | qi.qbk | 9 [section:qi Qi - Writing Parsers] 12 [include qi/tutorial_intro.qbk] 13 [include qi/warming_up.qbk] 14 [include qi/actions.qbk] 15 [include qi/complex.qbk] 16 [include qi/sum_tutorial.qbk] 17 [include qi/num_list2.qbk] 18 [include qi/num_list3.qbk] 19 [include qi/num_list4.qbk] 20 [include qi/roman.qbk] [all …]
|
D | index.idx | 9 #!scan-path "../../../boost/spirit/home/qi" ".*hpp" true 14 parse "" ".*qi.reference.parse_api.iterator_api.*" qi_index 15 phrase_parse "" ".*qi.reference.parse_api.iterator_api.*" qi_index 16 match "" ".*qi.reference.parse_api.stream_api.*" qi_index 17 phrase_match "" ".*qi.reference.parse_api.stream_api.*" qi_index 18 skip_flag::postskip "postskip" ".*qi.reference.parse_api.*_api.*" qi_index 19 skip_flag::dont_postskip "dont_postskip" ".*qi.reference.parse_api.*_api.*" qi_index 20 create_parser "" ".*qi.reference.parse_api.*" qi_index 21 create_parser_exists "" ".*qi.reference.parse_api.*" qi_index 23 parser "[P|p]arser" ".*qi.reference.parser_concepts.*" qi_index [all …]
|
/third_party/boost/libs/spirit/test/qi/ |
D | attribute1.cpp | 59 struct transform_attribute<test_int_data1, int, qi::domain> 79 struct transform_attribute<test_int_data2, int, qi::domain> 93 namespace qi = boost::spirit::qi; in main() 104 *(qi::char_ - ',') >> ',' >> qi::int_ >> ',' >> qi::double_, v1)); in main() 110 *(qi::char_ - ',') >> ',' >> qi::int_ >> ',' >> qi::double_, in main() 111 v2, qi::space)); in main() 120 , qi::attr_cast<std::string, std::string>(*qi::digit), str)); in main() 130 qi::rule<char const*, test_view()> r1 = in main() 131 *(qi::char_ - ',') >> ',' >> qi::int_ >> ',' >> qi::double_; in main() 133 BOOST_TEST(test_attr("s1,2,1.5\ns2,4,3.5", r1 % qi::eol, v)); in main() [all …]
|
D | attribute2.cpp | 59 struct transform_attribute<test_int_data1, int, qi::domain> 79 struct transform_attribute<test_int_data2, int, qi::domain> 93 namespace qi = boost::spirit::qi; in main() 98 qi::rule<char const*, int()> r = qi::int_; in main() 106 qi::rule<char const*, int()> r = qi::int_; in main() 122 , qi::attr_cast<test_int_data1, int>(qi::double_) % ',', v)); in main() 125 qi::rule<char const*, int()> r = qi::double_; in main() 135 BOOST_TEST(test_attr("1", qi::attr_cast(qi::int_), d)); in main() 137 BOOST_TEST(test_attr("2", qi::attr_cast<test_int_data2>(qi::int_), d)); in main() 139 BOOST_TEST(test_attr("3", qi::attr_cast<test_int_data2, int>(qi::int_), d)); in main() [all …]
|
D | regression_repeat.cpp | 11 namespace qi = boost::spirit::qi; 12 using qi::omit; 13 using qi::repeat; 17 typedef qi::rule<std::string::const_iterator, std::string()> strrule_type; 24 BOOST_TEST(qi::parse(i, ie, rule, target) && target == result); in test() 30 omit[-qi::char_(" \t")] >> in main() 31 repeat(2)[qi::digit] >> in main() 32 omit[-qi::char_(" \t")]; in main() 33 strrule_type correct_year = repeat(4)[qi::digit]; in main() 35 test("1776", qi::hold[correct_year] | repeat(2)[qi::digit], "1776"); in main() [all …]
|
D | regression_one_element_fusion_sequence.cpp | 21 namespace qi = boost::spirit::qi; in main() 24 qi::symbols<char, qi::rule<iterator> > phrase_keyword_rules; in main() 25 qi::rule<iterator, qi::locals<qi::rule<iterator> > > phrase_markup_impl; in main() 28 = (phrase_keyword_rules >> !qi::alnum) [qi::_a = qi::_1] in main()
|
/third_party/boost/libs/spirit/workbench/qi/ |
D | keywords.cpp | 55 namespace qi = boost::spirit::qi; 146 struct permutation_parser : qi::grammar<Iterator, parsedData(), ascii::space_type> 150 using qi::int_; in permutation_parser() 151 using qi::lit; in permutation_parser() 152 using qi::double_; in permutation_parser() 153 using qi::lexeme; in permutation_parser() 157 using qi::_r1; in permutation_parser() 158 using qi::_1; in permutation_parser() 159 using qi::_val; in permutation_parser() 160 using qi::omit; in permutation_parser() [all …]
|
/third_party/boost/libs/spirit/doc/html/ |
D | spirit2_HTML.manifest | 35 spirit/qi.html 36 spirit/qi/tutorials.html 37 spirit/qi/tutorials/quick_start.html 38 spirit/qi/tutorials/warming_up.html 39 spirit/qi/tutorials/semantic_actions.html 40 spirit/qi/tutorials/complex___our_first_complex_parser.html 41 spirit/qi/tutorials/sum___adding_numbers.html 42 spirit/qi/tutorials/number_list___stuffing_numbers_into_a_std__vector.html 43 spirit/qi/tutorials/number_list_redux___list_syntax.html 44 spirit/qi/tutorials/number_list_attribute___one_more__with_style.html [all …]
|
/third_party/boost/libs/spirit/example/qi/ |
D | reference.cpp | 31 using boost::spirit::qi::parse; in test_parser() 45 using boost::spirit::qi::phrase_parse; in test_phrase_parser() 46 using boost::spirit::qi::ascii::space; in test_phrase_parser() 62 using boost::spirit::qi::parse; in test_parser_attr() 76 using boost::spirit::qi::phrase_parse; in test_phrase_parser_attr() 77 using boost::spirit::qi::ascii::space; in test_phrase_parser_attr() 122 struct ts_real_policies : boost::spirit::qi::ureal_policies<T> 131 bool r = boost::spirit::qi:: in parse_frac_n() 163 using boost::spirit::qi::uint_parser; in parse_n() 164 namespace qi = boost::spirit::qi; in parse_n() [all …]
|
D | expect.cpp | 16 namespace qi = boost::spirit::qi; 32 bool result = qi::phrase_parse(iter, end, parser, qi::space, parsed_result); in parse() 61 struct ident : qi::grammar < Iterator, std::string(), qi::space_type> 65 qi::rule <iterator_type, std::string(), qi::space_type> 72 using qi::on_error; in ident() 73 using qi::fail; in ident() 74 using qi::expect; in ident() 76 id = (qi::alpha | qi::char_('_')) >> *(qi::alnum | qi::char_('_')); in ident() 78 id_list = expect[id >> qi::lit(';')]; in ident() 84 << qi::_4 in ident() [all …]
|
D | porting_guide_qi.cpp | 22 struct roman : qi::grammar<Iterator, unsigned()> 39 first = eps [qi::_val = 0] in roman() 40 >> ( +lit('M') [qi::_val += 1000] in roman() 41 || hundreds [qi::_val += qi::_1] in roman() 42 || tens [qi::_val += qi::_1] in roman() 43 || ones [qi::_val += qi::_1] in roman() 47 qi::rule<Iterator, unsigned()> first; 48 qi::symbols<char, unsigned> hundreds; 49 qi::symbols<char, unsigned> tens; 50 qi::symbols<char, unsigned> ones; [all …]
|
D | unescaped_string.cpp | 14 namespace qi = boost::spirit::qi; 18 : qi::grammar<InputIterator, std::string(char const*)> 28 unesc_str = qi::lit(qi::_r1) in unescaped_string() 29 >> *(unesc_char | qi::alnum | "\\x" >> qi::hex) in unescaped_string() 30 >> qi::lit(qi::_r1) in unescaped_string() 34 qi::rule<InputIterator, std::string(char const*)> unesc_str; 35 qi::symbols<char const, char const> unesc_char; 45 namespace qi = boost::spirit::qi; in main() 58 if (!qi::parse(iter, end, p(quote), parsed)) in main()
|
D | nabialek.cpp | 27 namespace qi = boost::spirit::qi; 34 struct nabialek_trick : qi::grammar< 35 Iterator, ascii::space_type, qi::locals<qi::rule<Iterator, ascii::space_type>*> > 40 using qi::lexeme; in nabialek_trick() 41 using qi::lazy; in nabialek_trick() 42 using qi::_a; in nabialek_trick() 43 using qi::_1; in nabialek_trick() 57 qi::rule<Iterator, ascii::space_type> id, one, two; 58 … qi::rule<Iterator, ascii::space_type, qi::locals<qi::rule<Iterator, ascii::space_type>*> > start; 59 qi::symbols<char, qi::rule<Iterator, ascii::space_type>*> keyword;
|
D | reorder_struct.cpp | 17 namespace qi = boost::spirit::qi; 41 return qi::parse(begin, input.end(), p, s); in parse() 79 *(qi::char_ - ',') >> ", " >> qi::int_, in main() 90 *(qi::char_ - ',') >> ", " >> *(qi::char_ - ':') >> ": " >> qi::double_, in main() 101 *(qi::char_ - ':') >> ": " >> qi::int_ >> " (" >> *(qi::char_ - ')') >> ')', in main() 114 qi::rule<client::iterator_type, names_and_salary()> r = in main() 115 *(qi::char_ - ',') >> ", " >> *(qi::char_ - ',') >> ", " >> qi::double_; in main() 119 r % qi::eol, employees); in main()
|
/third_party/boost/libs/spirit/test/support/ |
D | regression_multi_pass_error_handler.cpp | 35 qi::rule<iterator_type> r = qi::int_ > qi::int_; in main() 36 qi::on_error<qi::fail>(r, phoenix::ref(oss) << phoenix::val("error")); in main() 38 BOOST_TEST(!qi::parse(first, last, r)); in main() 54 qi::rule<iterator_type> r1 = qi::int_ > qi::int_; in main() 55 qi::rule<iterator_type> r2 = qi::int_ > qi::char_; in main() 56 qi::on_error<qi::fail>(r1, phoenix::ref(oss) << phoenix::val("error in r1")); in main() 57 qi::on_error<qi::fail>(r2, phoenix::ref(oss) << phoenix::val("error in r2")); in main() 59 BOOST_TEST(qi::parse(first, last, r1 | r2)); in main()
|
/third_party/boost/libs/spirit/example/qi/compiler_tutorial/calc7/ |
D | expression_def.hpp | 18 qi::_1_type _1; in expression() 19 qi::_2_type _2; in expression() 20 qi::_3_type _3; in expression() 21 qi::_4_type _4; in expression() 23 qi::char_type char_; in expression() 24 qi::uint_type uint_; in expression() 25 qi::_val_type _val; in expression() 26 qi::raw_type raw; in expression() 27 qi::lexeme_type lexeme; in expression() 28 qi::alpha_type alpha; in expression() [all …]
|
D | statement_def.hpp | 17 qi::_1_type _1; in statement() 18 qi::_2_type _2; in statement() 19 qi::_3_type _3; in statement() 20 qi::_4_type _4; in statement() 22 qi::_val_type _val; in statement() 23 qi::raw_type raw; in statement() 24 qi::lexeme_type lexeme; in statement() 25 qi::alpha_type alpha; in statement() 26 qi::alnum_type alnum; in statement() 28 using qi::on_error; in statement() [all …]
|
/third_party/boost/libs/spirit/example/qi/compiler_tutorial/conjure1/ |
D | expression_def.hpp | 18 qi::_1_type _1; in expression() 19 qi::_2_type _2; in expression() 20 qi::_3_type _3; in expression() 21 qi::_4_type _4; in expression() 23 qi::char_type char_; in expression() 24 qi::uint_type uint_; in expression() 25 qi::_val_type _val; in expression() 26 qi::raw_type raw; in expression() 27 qi::lexeme_type lexeme; in expression() 28 qi::alpha_type alpha; in expression() [all …]
|
D | function_def.hpp | 17 qi::_1_type _1; in function() 18 qi::_2_type _2; in function() 19 qi::_3_type _3; in function() 20 qi::_4_type _4; in function() 22 qi::_val_type _val; in function() 23 qi::raw_type raw; in function() 24 qi::lexeme_type lexeme; in function() 25 qi::alpha_type alpha; in function() 26 qi::alnum_type alnum; in function() 27 qi::string_type string; in function() [all …]
|
/third_party/boost/libs/spirit/example/qi/compiler_tutorial/mini_c/ |
D | function_def.hpp | 17 qi::_1_type _1; in function() 18 qi::_2_type _2; in function() 19 qi::_3_type _3; in function() 20 qi::_4_type _4; in function() 22 qi::_val_type _val; in function() 23 qi::raw_type raw; in function() 24 qi::lexeme_type lexeme; in function() 25 qi::alpha_type alpha; in function() 26 qi::alnum_type alnum; in function() 27 qi::string_type string; in function() [all …]
|
/third_party/boost/libs/spirit/repository/example/qi/ |
D | advance.cpp | 18 namespace qi = boost::spirit::qi; 19 using boost::spirit::repository::qi::advance; 26 struct advance_grammar : qi::grammar<Iterator, qi::locals<int> > 30 using qi::byte_; in advance_grammar() 31 using qi::eoi; in advance_grammar() 32 using namespace qi::labels; in advance_grammar() 44 qi::rule<Iterator, qi::locals<int> > start; 70 qi::parse(alt1_string.begin(), alt1_string.end() in main() 76 qi::parse(alt1_list.begin(), alt1_list.end() in main() 97 qi::parse(alt2_string.begin(), alt2_string.end() in main() [all …]
|
/third_party/boost/libs/spirit/example/qi/compiler_tutorial/calc8/ |
D | statement_def.hpp | 17 qi::_1_type _1; in statement() 18 qi::_2_type _2; in statement() 19 qi::_3_type _3; in statement() 20 qi::_4_type _4; in statement() 22 qi::_val_type _val; in statement() 23 qi::raw_type raw; in statement() 24 qi::lexeme_type lexeme; in statement() 25 qi::alpha_type alpha; in statement() 26 qi::alnum_type alnum; in statement() 27 qi::lit_type lit; in statement() [all …]
|
D | expression_def.hpp | 18 qi::_1_type _1; in expression() 19 qi::_2_type _2; in expression() 20 qi::_3_type _3; in expression() 21 qi::_4_type _4; in expression() 23 qi::char_type char_; in expression() 24 qi::uint_type uint_; in expression() 25 qi::_val_type _val; in expression() 26 qi::raw_type raw; in expression() 27 qi::lexeme_type lexeme; in expression() 28 qi::alpha_type alpha; in expression() [all …]
|
/third_party/boost/libs/spirit/repository/test/ |
D | Jamfile | 20 alias qi-pch : : <pch>on-spirit:<source>../../test/qi//pch ; 22 explicit qi-pch ka-pch ; 43 [ run qi-pch qi/advance.cpp : : : : qi_repo_advance ] 44 [ run qi-pch qi/confix.cpp : : : : qi_repo_confix ] 45 [ run qi-pch qi/distinct.cpp : : : : qi_repo_distinct ] 46 [ run qi-pch qi/subrule.cpp : : : : qi_repo_subrule ] 47 [ run qi-pch qi/keywords.cpp : : : $(keywords_reqs) : qi_repo_keywords ] 48 [ run qi-pch qi/seek.cpp : : : : qi_repo_seek ]
|