2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-30 20:12:23 +00:00
Commit Graph

779 Commits

Author SHA1 Message Date
Zach Laine
ca6e5a13df Merge branch 'master' into gh-pages 2024-01-07 21:22:46 -06:00
Zach Laine
ecd40e1e7a Doc typo. 2024-01-07 21:22:07 -06:00
Zach Laine
89926ef65d html/Update docs. 2024-01-07 21:18:43 -06:00
Zach Laine
90063efa84 Merge branch 'master' into gh-pages 2024-01-07 21:18:06 -06:00
Zach Laine
7b0327f167 Guard the operator<< defined in tuple_aggregate with TEST_BOOST_OPTIONAL. 2024-01-07 21:14:54 -06:00
Zach Laine
cd11fbb000 Documentation for the new alternative optionals and variants. 2024-01-07 20:56:51 -06:00
Zach Laine
121a5390b3 Merge branch 'master' into gh-pages 2024-01-07 20:48:23 -06:00
Zach Laine
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).

Fixes #53.
2024-01-07 20:44:34 -06:00
Zach Laine
4becbe34ad Fix infinite loop when handling an optional of sequence attribute type in
repeat_parser.
2024-01-07 19:46:43 -06:00
Zach Laine
64227fc441 Update docs. 2024-01-07 15:21:05 -06:00
Zach Laine
c8df813982 Merge branch 'master' into gh-pages 2024-01-07 15:20:44 -06:00
Zach Laine
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.
2024-01-07 15:11:47 -06:00
Zach Laine
8caf4bea09 Cruft removal. 2024-01-07 15:10:11 -06:00
Zach Laine
426bfd236c Merge branch 'master' into gh-pages 2024-01-07 12:33:26 -06:00
Zach Laine
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.

Fixes #52.
2024-01-07 12:29:23 -06:00
Zach Laine
960e2eaf45 Update docs. 2024-01-07 01:16:38 -06:00
Zach Laine
ba2eacf34d Merge branch 'master' into gh-pages 2024-01-07 01:16:19 -06:00
Zach Laine
a6c4cb14b1 Introduce op% early, and use it instead of its long-form equivalent in the
rest of the docs.

Fixes #46.
2024-01-07 01:15:24 -06:00
Zach Laine
86cfa03dde Replace eplxicit max aggregate size of 50 with reference to
BOOST_PARSER_MAX_AGGREGATE_SIZE.

Partially addresses #51.
2024-01-07 01:15:22 -06:00
Zach Laine
186a333f96 Update docs. 2024-01-07 00:54:15 -06:00
Zach Laine
946297f757 Merge branch 'master' into gh-pages 2024-01-07 00:53:45 -06:00
Zach Laine
9e374f8cc3 Flesh out support for parsing into non-sequence containers. 2024-01-07 00:44:21 -06:00
Zach Laine
6ab2a9b6a4 Fix the parsing of attributes into nested aggregate types.
Fixes #50.
2024-01-07 00:44:21 -06:00
Zach Laine
c7b9eb6eb5 Reimplement get() overloads as one publicly-facing function. 2024-01-06 14:21:07 -06:00
Zach Laine
e6cb3e4159 Add BOOST_PARSER_MAX_AGGREGATE_SIZE, to replace the hardcoded 50 in tuple.hpp.
Fixes #51.
2024-01-06 13:22:58 -06:00
Zach Laine
469b0b9615 Add info for standalone mode to README.md. 2024-01-06 13:11:45 -06:00
Zach Laine
9d9ca546cc Update docs. 2024-01-06 02:38:03 -06:00
Zach Laine
b8849c3eae Merge branch 'master' into gh-pages 2024-01-06 02:37:28 -06:00
Zach Laine
6f06bc4189 Add no_case[] docs. 2024-01-06 02:36:26 -06:00
Zach Laine
aa1951aa89 Minimum MSVC 2017 -> 2019. 2024-01-06 02:36:26 -06:00
Zach Laine
2e4154dcba Cruft removal. 2024-01-06 02:36:26 -06:00
Zach Laine
1e373378bd Assert when an rvalue reference is detected in the char_parser::operator()
overlaod that takes a range, to prevent dangling references.
2024-01-06 01:17:32 -06:00
Zach Laine
7a98202845 Address TODO about not using sizeof() to detect char32_t/single-byte input
value type.
2024-01-06 01:01:48 -06:00
Zach Laine
f1190f6f59 Grooming. 2024-01-06 01:01:48 -06:00
Zach Laine
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.

Fixes #44.
2024-01-06 01:01:48 -06:00
Zach Laine
0b7891d9cd Add a note to the "Parsing structs" section of the docs, indicating the
50-member limit on automatic use of structs as tuple.

Fixes #48.
2024-01-04 19:38:47 -06:00
Zach Laine
3b5ea8717c Lower the max number of supported struct elements from 100 to 50 so as not to
choke MSVC.
2024-01-04 19:26:47 -06:00
Zach Laine
f34f096c66 Add logic to repeat_parser analogous to the logic in seq_parser, to enable
implicit tuple <-> struct conversions.

Fixes #47.
2024-01-04 18:38:44 -06:00
Zach Laine
e10cc0619c Refactor detail::move_back() overloads to eliminate code duplication. 2024-01-04 17:58:57 -06:00
Zach Laine
e81035615b Fix MSVC builds -- std::array::begin() is not necessarily a pointer! 2024-01-04 08:53:06 -06:00
Zach Laine
c37274c9a5 Fix broken build. 2024-01-04 02:40:33 -06:00
Zach Laine
d0fe18b61d Add single-code point Unicode case folding function; data and tests are
generated from CaseFolding.txt.

Partially addressed #44.
2024-01-04 02:26:36 -06:00
Zach Laine
a2f02f1ab2 Update docs. 2024-01-03 23:50:46 -06:00
Zach Laine
c3d1e73092 Merge branch 'master' into gh-pages 2024-01-03 23:50:21 -06:00
Zach Laine
fcd3a9fc7d Gross hack to fix GCC < 12 builds.
Fixes #28.
2024-01-03 23:44:51 -06:00
Zach Laine
60cea9aa29 Fix broken docs.
Partially addresses #28.
2024-01-03 23:44:40 -06:00
Zach Laine
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).

Fixes #45.
Partially addresses #28.
2024-01-03 23:24:37 -06:00
Zach Laine
7921f15ef8 Cruft removal. 2024-01-03 16:55:13 -06:00
Zach Laine
8bad1f2963 detail::aggregate_to_tuple() -> detail::tie_aggregate(), and change
detail::tie_aggregate() to return a tuple of references.

Partially addresses #28.
2024-01-03 02:28:10 -06:00
Zach Laine
f2bf068f00 Update docs. 2024-01-03 02:05:49 -06:00