2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-26 18:52:23 +00:00

1077 Commits

Author SHA1 Message Date
Zach Laine
e03ff6c3eb Remove mooted TODO. 2019-11-16 18:09:06 -06:00
Zach Laine
353186e24b std::string_view -> range in remaining parser operators. 2019-11-16 18:06:40 -06:00
Zach Laine
5a20442ee9 Generalize string() and string lit() to take arbitrary parse ranges, not just
string_view.
2019-11-16 17:56:03 -06:00
Zach Laine
69be9da939 Add requirement to detail::range_t that the value type of the range is
integral.
2019-11-16 17:56:03 -06:00
Zach Laine
1ce01c9ff2 Remove parser_interface template parameters whereever CTAD can deduce them. 2019-11-16 17:56:03 -06:00
Zach Laine
f3b66fff64 Make string_parser work with generalized ranges of characters, not just
std::string_view.
2019-11-16 17:56:03 -06:00
Zach Laine
5047186ee8 Doc tweaks; mark places where support for code point ranges is needed. 2019-11-16 14:28:13 -06:00
Zach Laine
f39e309118 Add Windows-only support for std::wstring_view file names. 2019-11-16 14:06:18 -06:00
Zach Laine
1f76001950 Regularize name in copyright notices. 2019-11-16 13:44:54 -06:00
Zach Laine
89e08daec7 string_view -> range in the parse API. 2019-11-16 13:44:33 -06:00
Zach Laine
3addd65178 Add TODOs. 2019-11-16 10:10:05 -06:00
Zach Laine
22112f177b Warning mitigation in detail::char_range. 2019-11-16 10:10:05 -06:00
Zach Laine
40458a36ab Sentinelize all the things. 2019-11-16 08:14:30 -06:00
Zach Laine
17db109704 Cruft removal. 2019-11-16 08:14:30 -06:00
Zach Laine
f330217402 Remove char const * overload of op() from char_parser, and correct the docs on
its range overload; misc doc tweaks.
2019-11-16 08:14:30 -06:00
Zach Laine
b5f3c45f10 Generalize parser_interface::operator() as a variadic function template. 2019-11-16 08:14:30 -06:00
Zach Laine
01201aebd3 Sentinels in range template. 2019-11-16 08:14:30 -06:00
Zach Laine
bdd4514efd API documentation in parser/error_handling*. 2019-11-16 08:14:30 -06:00
Zach Laine
5f33a6a1e9 Upgrade to the latest version of Boost.Text transcoding code. 2019-11-16 08:14:30 -06:00
Zach Laine
e51b4fe8c1 Round out first draft of parser API docs. 2019-11-16 08:14:30 -06:00
Zach Laine
ea9b2fff4a Move tag objects used in context accessors to detail. 2019-11-16 08:14:30 -06:00
Zach Laine
47709e4961 Even more parser API docs. 2019-11-16 08:14:30 -06:00
Zach Laine
a69f9df5c2 Add more parser API documentation. 2019-11-16 08:14:30 -06:00
Zach Laine
6a39de3f73 Add more parser documentation. 2019-11-16 08:14:30 -06:00
Zach Laine
7df8b8c112 Partial parser API docs. 2019-11-16 08:14:30 -06:00
Zach Laine
79b38d9eb4 Use relative instead of absolute paths in parse_perf. 2019-11-02 01:21:11 -05:00
Zach Laine
d76288b860 Add missing include. 2019-11-02 01:21:11 -05:00
Zach Laine
2cbce12473 Add iterators to the beginning and end of the entire parsed sequence to the
context, and improve the error/warning reporting mechanism.
2019-10-30 22:22:09 -05:00
Zach Laine
f802b967da boost::optional -> std::optional 2019-10-30 20:24:30 -05:00
Zach Laine
f3c33af01b boost::variant -> std::variant 2019-10-30 20:12:23 -05:00
Zach Laine
514722965d Cruft removal. 2019-10-30 19:40:52 -05:00
Zach Laine
abde235d92 Sketch in top-level YAML parse function. 2019-10-30 19:39:24 -05:00
Zach Laine
b56461684b Add yaml::value test. 2019-10-30 19:39:24 -05:00
Zach Laine
3bb0517391 Sketch in space-optimized yaml::value; fix constexpr-related build issues on
Clang.
2019-10-30 19:39:24 -05:00
Zach Laine
ee93a67f6c Cruft removal. 2019-10-29 23:28:40 -05:00
Zach Laine
9f8c121731 Add json::value test. 2019-10-29 23:28:40 -05:00
Zach Laine
d0135f445e Sketch in space-optimized json::value. 2019-10-29 23:28:40 -05:00
Zach Laine
af7f88b677 Make parse API 4x smaller by:
- making trace (formerly debug) mode a runtime parameter; and

- adding a with_error_handler() (a la with_globals()) fundiotn, and using that
  instead of passing an optional error_handler parameter to the parse
  functions.
2019-10-28 21:13:07 -05:00
Zach Laine
e7da42cff1 boost::parser::param -> boost::parser::_p 2019-10-28 19:19:04 -05:00
Zach Laine
9eec9a1660 Sketch the remaining Block Sequences rules. 2019-10-28 15:30:59 -05:00
Zach Laine
f1053eaa81 Add inline variable template for param<N> callables. 2019-10-27 21:05:35 -05:00
Zach Laine
3734d05474 Sketch in top-level YAML stream rules. 2019-10-27 16:10:37 -05:00
Zach Laine
ee6638a544 Add a TODO. 2019-10-27 16:10:13 -05:00
Zach Laine
893ec613cf Add .clang-format. 2019-10-27 15:36:41 -05:00
Zach Laine
fa1486c60e Fix outstanding compilation errors. 2019-10-26 21:13:16 -05:00
Zach Laine
65813d153d Comment typo. 2019-10-26 21:12:45 -05:00
Zach Laine
404487d6cb Fix broken folded rules. 2018-11-05 10:20:51 -06:00
Zach Laine
6af5a973b5 Ensure all attributes are initializes in parsers. 2018-11-05 10:17:20 -06:00
Zach Laine
a0fb2e8850 Initial sketch of folded and associaated rules. Probably does not even compile. 2018-10-31 23:18:27 -05:00
Zach Laine
977b6e069f Implement Block-style literal rule and its dependees. 2018-10-31 23:15:57 -05:00