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

73 Commits

Author SHA1 Message Date
Zach Laine
71c697d23d Convert from Boost.Hana to Hana lite, part 2: introduce a template aliases for
constants like llong; provide a tuple accessor get(); use these throughout the
code.

Also, adapt the code in detail/hl.hpp to work with hana::tuple and std::tuple.
2020-09-20 16:05:52 -05:00
Zach Laine
969de5c23d Move all the text and stl_interface internal header code into
boost::parser::detail namespace.
2020-09-20 03:23:23 -05:00
Zach Laine
113270d6f6 Remove dependency on Boost.Any. 2020-09-19 20:43:12 -05:00
Zach Laine
d8a323a5fb Fix VC2019 test failures. 2020-09-09 23:42:04 -05:00
Zach Laine
3ac30663b4 Add support for C++17. 2020-09-09 02:45:19 -05:00
Zach Laine
711bc9e2b3 - eol_parser -> ws_parser
- ws_parser does all whitespace (according to the Unicode White_Space
  property) or just eol, depending on parameterization.
- Add ws, a parser object that uses the all-whitespace mode of ws_parser.
- Fix an error in the constraints on *parse(); iterators over char8_t (and not
  just pointers) now properly fall under the Unicode parsing path.

Fixes #4.
2020-09-01 21:52:28 -05:00
Zach Laine
852559ce67 static_assert inside the prase() overloads that take an attr out-param that
the parser generates an attribute.

Fixes #2.
2020-09-01 01:24:12 -05:00
Zach Laine
950065b5d2 Range-parse overloads now indicated failure when the entire input is not
consumed.
2020-08-29 21:09:50 -05:00
Zach Laine
678f666785 Remove "skip_" from all parse function names, and reorder the parse API
functions for clarity.  Also, drive-by cleanups in parser_{,api}.cpp.
2020-08-29 19:17:04 -05:00
Zach Laine
c2374adf12 Warning mitigation in test/. 2020-08-29 19:17:04 -05:00
Zach Laine
4b516b9047 Make parser::range a proper view (called "parser::view"), via
view_interface. Some drive-by grooming.
2020-08-28 19:09:58 -05:00
Zach Laine
f39e309118 Add Windows-only support for std::wstring_view file names. 2019-11-16 14:06:18 -06:00
Zach Laine
89e08daec7 string_view -> range in the parse API. 2019-11-16 13:44:33 -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
f802b967da boost::optional -> std::optional 2019-10-30 20:24:30 -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
489f8f69d9 Zach Laine -> T. Zachary Laine 2018-10-23 23:52:05 -05:00
Zach Laine
a6a0826f22 Add bool_parser case to parser.cpp test. 2018-10-22 23:42:19 -05:00
Zach Laine
04dbec39dc Add parser tests. 2018-10-10 19:34:29 -05:00
Zach Laine
7e208d7085 First half of a largish refactor that allows BOMs to be handled correctly. 2017-05-06 14:29:10 -05:00
Zach Laine
ec1d3d5a76 Switch parse test to using new parser. 2017-04-26 21:25:50 -05:00
Zach Laine
dc36d8dbed Comment out failing tests. 2017-04-21 23:23:04 -05:00
Zach Laine
6137003e7f Build parser into its own TU. 2017-04-20 21:01:47 -05:00