2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-19 04:22:13 +00:00

Commit Graph

  • eb68bacfbb Fix improperly macro-disabled enable_borrowed_range specializations, to fix MSVC builds. Zach Laine 2024-01-20 09:28:38 -06:00
  • a68c1d3187 Add documentation section on algorithms views and view adaptors, to document search(), search_all, and split. Zach Laine 2024-01-20 03:09:53 -06:00
  • 5adef16a4d Add split_view + split range adaptor. split produces a range of subranges, each of which is a nonoveralpping match of the given parser. Zach Laine 2024-01-17 23:03:18 -06:00
  • aa76e9f85e Add search() algorithm, and search_all_view + search_all range adaptor. search() finds the first occurrence of a match of the given parser. search_all produces a range of subranges, each of which is a nonoveralpping match of the given parser. Zach Laine 2024-01-15 23:45:11 -06:00
  • 9298cef3ef Update docs. Zach Laine 2024-01-19 21:19:01 -06:00
  • 1334d23875 Merge branch 'master' into gh-pages Zach Laine 2024-01-19 21:18:40 -06:00
  • 52e8b187e8 Document BOOST_PARSER_SUBRANGE in Configuration and Optional Features. Zach Laine 2024-01-19 20:24:07 -06:00
  • ff83e3170c Update docs. Zach Laine 2024-01-19 21:10:29 -06:00
  • 3f0781a40a Merge branch 'master' into gh-pages Zach Laine 2024-01-19 21:10:04 -06:00
  • 591ac9921b Remove BOOST_PARSER_DEFINE_RULE now that BOOST_PARSER_DEFINE_RULES is always available. Zach Laine 2024-01-19 21:06:33 -06:00
  • ce7804a003 Refer to the text asociated with a rule as diagnostic text rather than a name, in the code and the docs. Zach Laine 2024-01-19 20:53:13 -06:00
  • 4c3e0a7448 Add another reason for using rules -- callback parsing. Zach Laine 2024-01-19 20:36:42 -06:00
  • ffdc3f967b Add docs for the new automatic subitutability of non-aggregate class types for tuples. Zach Laine 2024-01-19 20:09:15 -06:00
  • 62002e886a Add support for parsing into an arbitrary class type T, as long as the default attribute we're parsing is a tuple whose elements can be used to construct T. Needs docs. Zach Laine 2024-01-18 23:22:44 -06:00
  • ee00c0393a Put the default behaviors at the first of the constexpr if chains in detail::{assign,move_back}(). Zach Laine 2024-01-19 00:21:55 -06:00
  • a7384b82ad Fix non-advancing iterator error in seq_parser, ue to first/first_ name confusion(!). Zach Laine 2024-01-19 00:59:25 -06:00
  • 338a519bd6 In deploy_unified_header.yml, only commit and push if the generated file indicates diffs. Zach Laine 2024-01-18 01:10:03 -06:00
  • 7f4e8ed904 Add a note to the README about the unified header and Compiler Explorer. Zach Laine 2024-01-18 00:59:23 -06:00
  • 20b017c965 Generated by Github action on push to master. single_header Zach Laine 2024-01-18 06:56:05 +00:00
  • f1c77a05cd Change the way deploy_unified_header.yml generates a unified header to make well-formed code. Zach Laine 2024-01-18 00:55:32 -06:00
  • c4d9e4fbcd Generated by Github action on push to master. Zach Laine 2024-01-18 06:27:48 +00:00
  • a0d18feedc Add git push to deploy_unified_header.yml. Zach Laine 2024-01-18 00:26:28 -06:00
  • 22bf642024 Add git config user and email to deploy_unified_header.yml. Zach Laine 2024-01-18 00:23:35 -06:00
  • 33d0e2aef8 Add another missing $ to deploy_unified_header.yml. Zach Laine 2024-01-18 00:18:29 -06:00
  • cfbabba598 Add a git fetch to the Deploy step of deploy_unified_header.yml. Zach Laine 2024-01-18 00:16:59 -06:00
  • 7e2bfb691c Use continue-on-error: true in the build step of deploy_unified_header.yml. Zach Laine 2024-01-18 00:10:26 -06:00
  • a64d58aaff Fix missing $ in Github action. Zach Laine 2024-01-18 00:07:03 -06:00
  • 2b30e172e4 Add deploy_unified_header.yml. Fingers crossed. Zach Laine 2024-01-18 00:03:48 -06:00
  • c68897b9e6 Replace all the headers with a generated, unified header. Zach Laine 2024-01-17 23:52:18 -06:00
  • 355d443650 Fix logic in trace_input_impl<Iter, Sentinel, 1> specialization, to account for the case that Iter is utf_iterator<utf8, utf8, ...>. Zach Laine 2024-01-17 01:10:33 -06:00
  • 0d6f164964 std::is_array_v -> text::detail::is_bounded_array_v in detail::make_input_subrange(). Zach Laine 2024-01-17 00:07:31 -06:00
  • 471269a374 Define BOOST_PARSER_SUBRANGE, and use it consistently. subrange.hpp is now only included in C++17 builds. Zach Laine 2024-01-17 00:02:28 -06:00
  • 613bf0583a Cruft removal. Zach Laine 2024-01-16 23:39:04 -06:00
  • 1fd49842f0 In lexeme_parser, skip_parser, and expect_parser, don't adjust flags in the overload of call() that just forwards to the other overload; let that other overload do it. Zach Laine 2024-01-16 23:17:10 -06:00
  • 4b2c9bcf14 Fix the unconditional generation of attributes by raw_parser and string_view_parser. They now do so only when the enclosing context has attribute generation enabled, and when their subparser succeeds. Zach Laine 2024-01-16 23:15:02 -06:00
  • cced72dbcd std::{begin,end} -> detail::text::detail::{begin,end} Zach Laine 2024-01-15 23:09:00 -06:00
  • d7bdb4e08a Update docs. Zach Laine 2024-01-15 16:49:58 -06:00
  • 10650d782a Merge branch 'master' into gh-pages Zach Laine 2024-01-15 16:48:27 -06:00
  • c2ba50de51 Add a note to the beginning of Attribute Generation about the assumption that attribute types are semiregular. Zach Laine 2024-01-15 16:44:09 -06:00
  • 9494e5678a Update docs. Zach Laine 2024-01-15 16:45:55 -06:00
  • bf0dd683be Merge branch 'master' into gh-pages Zach Laine 2024-01-15 16:45:31 -06:00
  • 66b93ab401 Add a note to the beginning of Attribute Generation about the assumption that attribute types are semiregular. Zach Laine 2024-01-15 16:44:09 -06:00
  • d28ac53d9f Fix "next section" that moved in the docs, by naming the exact section. Thanks, Andrzej! Zach Laine 2024-01-15 16:36:30 -06:00
  • e15696ed90 Update docs. Zach Laine 2024-01-15 16:31:54 -06:00
  • b195726911 Merge branch 'master' into gh-pages Zach Laine 2024-01-15 16:31:33 -06:00
  • 92c16cbfae Add section about writing your own parsers. Zach Laine 2024-01-15 16:16:37 -06:00
  • 3879758d30 Update docs. Zach Laine 2024-01-15 02:29:54 -06:00
  • eb75f29b5b Merge branch 'master' into gh-pages Zach Laine 2024-01-15 02:29:37 -06:00
  • d59e0528b2 Consolidate documentation on eror handlers into the Error Handling and Debugging section, and add an example of how to write your own error handler. Zach Laine 2024-01-15 02:26:31 -06:00
  • 2054eab1bd Disable string_view[] code in parser.cpp in pre-C++20 builds. Zach Laine 2024-01-15 00:51:00 -06:00
  • f5d8798ffd Update docs. Zach Laine 2024-01-14 20:59:31 -06:00
  • 170f1101c4 Merge branch 'master' into gh-pages Zach Laine 2024-01-14 20:58:59 -06:00
  • 9187bf851e Add section on raw[] and string_view[] to docs. Zach Laine 2024-01-14 20:04:20 -06:00
  • 36ef6d1ae7 Add missing mention of merge[] and separate[] to the Directives section of the tutorial. Zach Laine 2024-01-14 18:43:11 -06:00
  • 7103755e59 Comment out test code that exercises spooky behavior on MSVC. Zach Laine 2024-01-15 02:55:21 -06:00
  • 53e0f7c769 Fix misplaced #endif that broke most of our builds. Zach Laine 2024-01-14 20:15:31 -06:00
  • d17db09303 Use the warning-provocation technique from boost/mpl/print.hpp to cause the types to be printed in some places after a static_assert failure. Zach Laine 2024-01-14 18:32:35 -06:00
  • b055b21f1f Address TODO about string_view_parser needing tests. Zach Laine 2024-01-14 17:41:38 -06:00
  • bf06cfc57a Fix string_view_parser, broken by the most recent boost::text import. Zach Laine 2024-01-14 16:47:50 -06:00
  • a956cd962e Comments on static_asserts to text in the static_asserts instead. Zach Laine 2024-01-14 16:43:58 -06:00
  • 959ff2f8cb Update docs. Zach Laine 2024-01-14 16:19:20 -06:00
  • f097fbb3c7 Merge branch 'master' into gh-pages Zach Laine 2024-01-14 16:19:01 -06:00
  • 62f47c73c8 Add section to rationale on why the attribute compatability rules are stricter than in Spirit. Zach Laine 2024-01-14 16:14:49 -06:00
  • 8a9a851acb Restore an example of how loose attribute rules are looser at the top-level parse than within the middle of the parse. Zach Laine 2024-01-14 15:50:00 -06:00
  • 92be502e79 Copy editing. Zach Laine 2024-01-14 14:52:36 -06:00
  • fe06d6b477 Doc thinko. Zach Laine 2024-01-14 14:38:45 -06:00
  • 1715433a4e Explain that or_parser deduplicated the template parameters of its std::variant attributes. Zach Laine 2024-01-14 14:24:59 -06:00
  • c406cf2ee1 Update docs. Zach Laine 2024-01-14 02:46:25 -06:00
  • 7bf7ea1993 Merge branch 'master' into gh-pages Zach Laine 2024-01-14 02:46:05 -06:00
  • d17268dec7 Add section about merge[] and separate[] to the docs. Zach Laine 2024-01-14 02:43:25 -06:00
  • 6fc7eefb67 Add a Rationale section on the special treatment of sequences of characters. Zach Laine 2024-01-14 01:57:48 -06:00
  • 02447e92a2 Remove template head from lambda, and just use auto param instead, to mollify MSVC. Zach Laine 2024-01-14 04:54:26 -06:00
  • 93d3708010 Disable optional check on older GCCs. Zach Laine 2024-01-13 21:30:35 -06:00
  • 16cd1894e2 Work around GCC12 bug involving the use of declval. Zach Laine 2024-01-13 21:26:49 -06:00
  • 6a2a1229a4 GCC9 warning mitigation. Zach Laine 2024-01-13 21:16:24 -06:00
  • 1566dffe1f Fix GCC and Clang builds. Zach Laine 2024-01-13 21:11:43 -06:00
  • 251dcc9436 Implement the merge[] and separate[] directives that control attribute generation. Needs docs. Zach Laine 2024-01-11 20:33:47 -06:00
  • e6a9763b86 Cruft removal. Zach Laine 2024-01-13 14:15:31 -06:00
  • cf9545fa7c Remove mooted TODOs. Zach Laine 2024-01-12 22:08:03 -06:00
  • 3e7812ebe5 Simplify detail::is_variant and remove enable_variant. Turns out detail::is_variant_v is not actually used, except in one place in the printing code, and it's not even essential there. Zach Laine 2024-01-12 21:45:00 -06:00
  • 69e4f47bff Work around the busted-ass static_asserting op<< in boost::optional by recognizing all enabled optionals, and printing them the same as we do std::optional. Applied the same logic to variants too, for consistency. Zach Laine 2024-01-12 21:36:23 -06:00
  • 03c7cc6bbb Fix broken enable_variant decls in tuple_aggregate test. Zach Laine 2024-01-12 21:31:22 -06:00
  • c2dd86cc68 Remove generated parser tests (cruft). Zach Laine 2024-01-11 23:16:53 -06:00
  • 6ec9ca01e2 Update docs. Zach Laine 2024-01-11 19:27:23 -06:00
  • b579644bf2 Merge branch 'master' into gh-pages Zach Laine 2024-01-11 19:26:59 -06:00
  • c8ce2cace5 Add a special seq_parser combining rule that makes a std::string ot of two adjacent char/char32_t values. Zach Laine 2024-01-10 22:42:56 -06:00
  • b6ffe5fbe3 Change detail::sequence_of and detail::container_and_value_type so that they generate std::strings from repeated char32_ts and combine char32_ts with adjacent strings. Update docs accordingly. Zach Laine 2024-01-10 20:15:34 -06:00
  • 663e3da450 Update docs. Zach Laine 2024-01-09 23:07:38 -06:00
  • 8865ebde9e Merge branch 'master' into gh-pages Zach Laine 2024-01-09 23:07:18 -06:00
  • a8dc1f4cb8 Flesh out the More About Rules page. Zach Laine 2024-01-09 22:56:15 -06:00
  • cb5a5da717 In Rule Parsers, explain that the generated overloads of parse_rule() are not something the user ever needs to use, and but a link to the more detailed section on Rules at the end of the section. Zach Laine 2024-01-08 19:38:33 -06:00
  • 257dcd36aa Add a static_assert in seq_parser that indicates the most likely source of compilation failure there -- attribute incompatibility. Zach Laine 2024-01-08 18:31:54 -06:00
  • 98daf46a5e Add more explanatory text to Parsing In Detail. Zach Laine 2024-01-08 18:14:32 -06:00
  • 203c82c5c5 Update docs. Zach Laine 2024-01-07 22:55:53 -06:00
  • 3add8cb54d Merge branch 'master' into gh-pages Zach Laine 2024-01-07 22:55:36 -06:00
  • 1bb76b13bd Add a description of operator> to the Backtracking section. Zach Laine 2024-01-07 22:52:28 -06:00
  • 43d65d3e4a Add new doc sections Parsing in Detail and Backtracking that describe those semantics, and how parsers are represented in code. Zach Laine 2024-01-07 22:31:23 -06:00
  • 660d90dba1 Document requirements on external optional and variant types. Zach Laine 2024-01-07 22:02:55 -06:00
  • 877fb6433b Update docs. Zach Laine 2024-01-07 21:23:25 -06:00
  • ca6e5a13df Merge branch 'master' into gh-pages Zach Laine 2024-01-07 21:22:46 -06:00