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

Commit Graph

  • ecd40e1e7a Doc typo. Zach Laine 2024-01-07 21:22:07 -06:00
  • 89926ef65d html/Update docs. Zach Laine 2024-01-07 21:18:43 -06:00
  • 90063efa84 Merge branch 'master' into gh-pages Zach Laine 2024-01-07 21:18:06 -06:00
  • 7b0327f167 Guard the operator<< defined in tuple_aggregate with TEST_BOOST_OPTIONAL. Zach Laine 2024-01-07 21:14:54 -06:00
  • cd11fbb000 Documentation for the new alternative optionals and variants. Zach Laine 2024-01-07 20:56:51 -06:00
  • 121a5390b3 Merge branch 'master' into gh-pages Zach Laine 2024-01-07 20:48:23 -06:00
  • cd284572c9 Add support for parsing into attributes whose types are optionals or variants other than the ones from std:: (e.g. boost::optional, boost::variant, and boost::variant2::variant). Zach Laine 2024-01-07 19:51:35 -06:00
  • 4becbe34ad Fix infinite loop when handling an optional of sequence attribute type in repeat_parser. Zach Laine 2024-01-07 19:45:12 -06:00
  • 64227fc441 Update docs. Zach Laine 2024-01-07 15:21:05 -06:00
  • c8df813982 Merge branch 'master' into gh-pages Zach Laine 2024-01-07 15:20:44 -06:00
  • 745b1b151d Add a small example to the parser test that shows that you do not need Sprit 2's hold[] directve. Fix an error exercised by the example. Zach Laine 2024-01-07 15:11:47 -06:00
  • 8caf4bea09 Cruft removal. Zach Laine 2024-01-07 15:10:11 -06:00
  • 426bfd236c Merge branch 'master' into gh-pages Zach Laine 2024-01-07 12:33:26 -06:00
  • 3ebbd9e08c Correct an error in repeat_parser's choice of attribute. Sometimes it is necessary to use the value_type of the container out-param, rather than the attribute generated by the subparser. Zach Laine 2024-01-07 12:29:23 -06:00
  • 960e2eaf45 Update docs. Zach Laine 2024-01-07 01:16:38 -06:00
  • ba2eacf34d Merge branch 'master' into gh-pages Zach Laine 2024-01-07 01:16:19 -06:00
  • a6c4cb14b1 Introduce op% early, and use it instead of its long-form equivalent in the rest of the docs. Zach Laine 2024-01-07 01:13:15 -06:00
  • 86cfa03dde Replace eplxicit max aggregate size of 50 with reference to BOOST_PARSER_MAX_AGGREGATE_SIZE. Zach Laine 2024-01-07 01:11:20 -06:00
  • 186a333f96 Update docs. Zach Laine 2024-01-07 00:54:15 -06:00
  • 946297f757 Merge branch 'master' into gh-pages Zach Laine 2024-01-07 00:53:45 -06:00
  • 9e374f8cc3 Flesh out support for parsing into non-sequence containers. Zach Laine 2024-01-07 00:40:33 -06:00
  • 6ab2a9b6a4 Fix the parsing of attributes into nested aggregate types. Zach Laine 2024-01-06 13:37:12 -06:00
  • c7b9eb6eb5 Reimplement get() overloads as one publicly-facing function. Zach Laine 2024-01-06 14:20:46 -06:00
  • e6cb3e4159 Add BOOST_PARSER_MAX_AGGREGATE_SIZE, to replace the hardcoded 50 in tuple.hpp. Zach Laine 2024-01-06 13:22:58 -06:00
  • 469b0b9615 Add info for standalone mode to README.md. Zach Laine 2024-01-06 13:11:45 -06:00
  • 9d9ca546cc Update docs. Zach Laine 2024-01-06 02:38:03 -06:00
  • b8849c3eae Merge branch 'master' into gh-pages Zach Laine 2024-01-06 02:37:28 -06:00
  • 6f06bc4189 Add no_case[] docs. Zach Laine 2024-01-06 02:35:48 -06:00
  • aa1951aa89 Minimum MSVC 2017 -> 2019. Zach Laine 2024-01-06 02:35:06 -06:00
  • 2e4154dcba Cruft removal. Zach Laine 2024-01-06 02:26:03 -06:00
  • 1e373378bd Assert when an rvalue reference is detected in the char_parser::operator() overlaod that takes a range, to prevent dangling references. Zach Laine 2024-01-06 01:17:29 -06:00
  • 7a98202845 Address TODO about not using sizeof() to detect char32_t/single-byte input value type. Zach Laine 2024-01-06 01:00:50 -06:00
  • f1190f6f59 Grooming. Zach Laine 2024-01-06 00:58:41 -06:00
  • 2b0053bf83 Add no_case[] directive, and associated changes to char, string, and boolean parsers to make it work; uses the recently-added Unicode case-folding operation. Needs docs. Zach Laine 2024-01-04 20:05:28 -06:00
  • 0b7891d9cd Add a note to the "Parsing structs" section of the docs, indicating the 50-member limit on automatic use of structs as tuple. Zach Laine 2024-01-04 19:38:47 -06:00
  • 3b5ea8717c Lower the max number of supported struct elements from 100 to 50 so as not to choke MSVC. Zach Laine 2024-01-04 19:26:43 -06:00
  • f34f096c66 Add logic to repeat_parser analogous to the logic in seq_parser, to enable implicit tuple <-> struct conversions. Zach Laine 2024-01-04 18:38:36 -06:00
  • e10cc0619c Refactor detail::move_back() overloads to eliminate code duplication. Zach Laine 2024-01-04 17:58:53 -06:00
  • e81035615b Fix MSVC builds -- std::array::begin() is not necessarily a pointer! Zach Laine 2024-01-04 08:53:06 -06:00
  • c37274c9a5 Fix broken build. Zach Laine 2024-01-04 02:40:33 -06:00
  • d0fe18b61d Add single-code point Unicode case folding function; data and tests are generated from CaseFolding.txt. Zach Laine 2024-01-04 00:41:17 -06:00
  • a2f02f1ab2 Update docs. Zach Laine 2024-01-03 23:50:46 -06:00
  • c3d1e73092 Merge branch 'master' into gh-pages Zach Laine 2024-01-03 23:50:21 -06:00
  • fcd3a9fc7d Gross hack to fix GCC < 12 builds. Zach Laine 2024-01-03 23:44:00 -06:00
  • 60cea9aa29 Fix broken docs. Zach Laine 2024-01-03 23:35:19 -06:00
  • d60d33e40b Finish implementing support for parsing into structs as if they were tuples. This makes it possible to map from sequence parsers onto structs with no semantic actions. Also, add a doc section describing how parsing structs works (including a couple of short example programs). Zach Laine 2024-01-03 19:14:57 -06:00
  • 7921f15ef8 Cruft removal. Zach Laine 2024-01-03 16:55:13 -06:00
  • 8bad1f2963 detail::aggregate_to_tuple() -> detail::tie_aggregate(), and change detail::tie_aggregate() to return a tuple of references. Zach Laine 2024-01-03 02:19:17 -06:00
  • f2bf068f00 Update docs. Zach Laine 2024-01-03 02:05:49 -06:00
  • de6584c663 Merge branch 'master' into gh-pages Zach Laine 2024-01-03 02:05:24 -06:00
  • 0e78ea2d26 Remove the T >> T -> std::vector<T> attribute combining rule from seq_parser. Zach Laine 2024-01-03 01:55:38 -06:00
  • 7883b8ed1e Update docs to reflect the new detail::sequence_of<T> semantics (std::string for sequence of char, std::vector<T> for everything else). Also, update one of the examples to match the associated test code. Zach Laine 2024-01-03 01:35:20 -06:00
  • 0454d4dad0 Fix MSVC build. Zach Laine 2024-01-03 00:55:42 -06:00
  • f08255cf94 Use a tuple instead of a pair in seq_parser::{make_temp_result,combine}. Add a third tuple to the output of make_temp_result; this tuple is true/false values indicating whether this parser's attribute was merged with an adjacent parser's container of attributes of the same type. Zach Laine 2024-01-01 20:03:26 -06:00
  • e7daff5b26 Use std::move consistently when assigning/appending values. Zach Laine 2024-01-01 19:44:31 -06:00
  • 2020e44fda Radically change the way that repeat_parser generates a sequence of attributes. It now produces std::string when Attribute is char, and std::vector<Attribute> otherwise (except for nope special-casing of course). Zach Laine 2024-01-01 18:09:52 -06:00
  • 009ad6fc69 Add a note to the entry for "ws" in the big table in "The Parsers and Their Uses", indicating that it should be preferred over asci::space. Zach Laine 2024-01-01 15:48:35 -06:00
  • 4f26a25db7 Update docs. Zach Laine 2024-01-01 15:37:49 -06:00
  • 052a593782 Merge branch 'master' into gh-pages Zach Laine 2024-01-01 15:37:26 -06:00
  • 24d18b4eaf Remove the documentation section "An Odd Case", which was obviated by the previous commit. Also remove the test cases that exercised that case. Zach Laine 2024-01-01 15:28:05 -06:00
  • d34d4b7e6a Remove the seq_parser C<T> >> C<T> -> C<T> collapsing rule. Add special logic for recursive rules to make accumulating recursive parsers like recursive_string_rule in the parser_rule test easier to write. Zach Laine 2023-12-31 17:36:24 -06:00
  • dced620290 Remove mooted TODO. Zach Laine 2024-01-01 00:41:47 -06:00
  • 27cf4b73ad Improve description of parse context. Zach Laine 2024-01-01 00:11:17 -06:00
  • 32b244aa3a Clean up uses of tuple template names in variaous parts of the docs. This mostly amounts to replacing uses of boost::hana::tuple with more general boost::parser::tuple where appropriate. Zach Laine 2023-12-31 17:04:54 -06:00
  • 2ec66193e1 Document, using links, the existence and semantics of Parser's tuple and get. Zach Laine 2023-12-31 16:52:38 -06:00
  • c25982f1d2 In the intro, be very specific about what the __has_include-triggered differences are. Zach Laine 2023-12-31 16:34:24 -06:00
  • 2fd5248be5 Remove stray uses of ascii::space. Zach Laine 2023-12-30 21:36:15 -06:00
  • 8a02f10aed Update docs. Zach Laine 2023-12-30 21:05:58 -06:00
  • 14e17fa64a Merge branch 'master' into gh-pages Zach Laine 2023-12-30 21:05:28 -06:00
  • 19f398907b Remove references to Boost.Preprocessor. Zach Laine 2023-12-30 21:04:31 -06:00
  • e88d819122 Change the trivial_skipper example to use ws instead of ascii::space, and add text to the tutorial to explain why this is a better choice. Zach Laine 2023-12-30 17:22:55 -06:00
  • b02e9e32a6 Add preprocessor code from Boost.Describe instead of conditionally using Boost.Preprocessor. Thanks, Peter! Zach Laine 2023-12-30 16:54:41 -06:00
  • 144ac9c2c1 Update docs. Zach Laine 2023-12-30 16:25:22 -06:00
  • 6639d17e6c Merge branch 'master' into gh-pages Zach Laine 2023-12-30 16:24:40 -06:00
  • 38279949a4 Fix numerous doc typos. Guess I haven't run spellcheck in a while. Zach Laine 2023-12-30 16:24:08 -06:00
  • f8fb63766e Fix aggr_tuple_assignment test for MSVC. Zach Laine 2023-12-30 15:24:04 -06:00
  • 3fee66b562 Doc typo. Zach Laine 2023-12-30 15:14:17 -06:00
  • b7d1d3dba5 Fix spelling of hexadecimal sehe 2023-12-30 18:12:31 +01:00
  • fcb435df99 Add test for the struct <-> tuple assignment machinery; fix errors. Zach Laine 2023-12-30 04:12:05 -06:00
  • 95374a7878 Add initial sketch of struct -> tuple assignment machinery. Zach Laine 2023-12-30 02:58:08 -06:00
  • 669af7fa69 Add initial sketch of tuple -> struct assignment machinery. Zach Laine 2023-12-30 01:40:16 -06:00
  • 7afc5e5ac3 Remove needless inclusion of <coroutine>. Zach Laine 2023-12-29 19:55:25 -06:00
  • 2030e41bc5 Doc typo. Zach Laine 2023-12-29 14:50:52 -06:00
  • 6308a8b9b4 Update docs. Zach Laine 2023-12-29 14:06:19 -06:00
  • 0a3a043768 Merge branch 'master' into gh-pages Zach Laine 2023-12-29 14:05:36 -06:00
  • 868b5854c0 MSVC warning mitigation. Zach Laine 2023-12-29 13:52:56 -06:00
  • ed95f33ef6 Add explicit mention of BOOST_PARSER_DEFINE_RULE* to the tutorial page on rules. Zach Laine 2023-12-29 13:43:50 -06:00
  • b218bd78d7 Print diagnostics to cerr by default instead of cout. Zach Laine 2023-12-29 13:27:52 -06:00
  • 7cba6c36f5 Doc typo. Zach Laine 2023-12-29 13:27:28 -06:00
  • 98b8a4bb29 Update docs. Zach Laine 2023-12-23 13:48:22 -06:00
  • 46b4ae89a9 Merge branch 'master' into gh-pages Zach Laine 2023-12-23 13:47:57 -06:00
  • 88a965d9c5 Rename the {callback_,}parse() overloads that take an iterator/sentinel pair to {callback,}prefix_parse(). Zach Laine 2023-12-23 03:37:26 -06:00
  • cb74df5601 Add documentation for string_view directive. Zach Laine 2023-12-23 03:08:15 -06:00
  • 8e620ae21b Add/correct existing documentation for null_sentinel_t. Zach Laine 2023-12-23 03:07:19 -06:00
  • 2416d0d966 Doc copy editing. Zach Laine 2023-12-23 03:06:28 -06:00
  • fe23476eed Get rid of phony Doxygen-only as_utf*, since they were not showing up in the generated docs anyway, and let Doxygen see the real as_utf*s and utf*_views instead. Zach Laine 2023-12-23 02:59:39 -06:00
  • 30d02167e1 Add an alias for boost::parser::detail::text::null_sentinel_t to boost::parser, and add a Doxygen comment to document it. Zach Laine 2023-12-23 02:58:29 -06:00
  • 21cb1a2184 Half open ranges -> closed ranges in Doxygen comments in parser.hpp. Zach Laine 2023-12-23 02:57:19 -06:00
  • 3b8c74c990 Use boost::parser::as_utf32 instead of boost::parser::detail::text::as_utf32 in the examples. Zach Laine 2023-12-23 02:55:26 -06:00
  • 454beb1903 Update docs. Zach Laine 2023-12-21 18:22:55 -06:00