Zach Laine
ffe3c522b5
Change the concepts for utf{8,32}_code_unit to be char/char8_t and
...
wchar_t/char32_t, respectively. Obvs, the wchar_t bit only applies to
non-MSVC.
2023-12-02 14:19:57 -06:00
Zach Laine
fb47fdc0f1
Make the configury simpler:
...
- Remove BOOST_PARSER_STANDALONE, and make that the default. The bits of
Boost that we might use are used automatically when they're available (as
discovered via __has_include).
- Remove the non-essential uses of Boost from the examples.
2023-12-02 02:05:53 -06:00
Zach Laine
c02d68ff45
Introduce BOOST_PARSER_CONSTEXPR, which is defined to be constexpr, except on
...
MSVC before VS2022. This works around a bug in constexpr in VS2017.
2023-12-01 22:34:09 -06:00
Zach Laine
8c38314b98
Make the minimal change to fix the Clang+libstdc++ build in C++20 mode.
2023-11-29 19:20:37 -06:00
Zach Laine
ebaf584846
Force stl_interfaces and text to use C++17 code path.
2023-11-29 19:08:02 -06:00
Zach Laine
f15a8a2dde
Fix failure in C++20 builds due to the use of std::prev instead of
...
std::ranges::prev.
2023-11-26 00:54:53 -06:00
Zach Laine
cefbc69962
Add missing header.
2023-11-25 17:36:21 -06:00
Zach Laine
e9893e7979
C++17 Clang warning mitigation.
2023-11-25 17:25:18 -06:00
Zach Laine
a8f0c62fb9
Update stl_interfaces code to the version from Boost 1.85. Verified to work
...
with C++17 on clang {10,12,13,14} and GCC {9,10,12,13}.
2023-11-25 17:02:24 -06:00
Zach Laine
a38eb982f8
Fix no-Boost C++17 builds by using the is_detected from detail/text instead of
...
the one from boost/type_traits.
2023-11-25 15:36:40 -06:00
Zach Laine
d54381247a
Add missing std include.
2023-11-25 15:24:52 -06:00
Zach Laine
2de63708cc
Update Boost.Text to 1ff99f926f.
2022-08-21 18:32:05 -05:00
Zach Laine
7bed764196
Update stl_interfaces code from latest (1.80).
2022-08-20 23:55:16 -05:00
LoewT
ed37f05998
Fix Boost.Text namespace confusion.
2022-08-20 15:45:54 -05:00
Zach Laine
b350682856
Fix template instantiation ambiguity introduced when working around MSVC bugs.
2022-04-15 00:41:36 -05:00
Zach Laine
68800adb37
Work around broken MSVC template specialization logic.
2022-04-10 20:06:31 -05:00
Zach Laine
4439f84247
text::as_utf8 -> detail::text::as_utf8
2022-04-10 16:48:36 -05:00
Zach Laine
0c083f572b
Fix constexpr UB in hl UDL.
2022-04-08 17:47:22 -05:00
Zach Laine
8e91ee5145
Fix call ambiguity claimed by GCC in C++20 mode.
2022-04-08 17:45:36 -05:00
Zach Laine
c7ab7ea845
Add sketch of string_view[] directive.
2022-04-08 09:58:05 -05:00
Zach Laine
93a51860e3
Doc copy edits.
2022-04-07 00:10:38 -05:00
Zach Laine
25b99b53cd
Change the CMake build mode when BUILD_WITHOUT_BOOST is defined not to find
...
nor include Boost at all. Fix several problems that this brought out.
2020-09-20 17:32:23 -05:00
Zach Laine
8af6138021
Convert from Boost.Hana to Hana lite, part 4: Remove all the remaining direct
...
uses of Boost.Hana, including the hana namespace algorithms.
2020-09-20 16:58:27 -05:00
Zach Laine
7f45618fe1
Convert from Boost.Hana to Hana lite, part 3: Replace numerous compile-time
...
constants, and make other small changes that leave only use of the big Hana
algorithms behind.
2020-09-20 16:58:21 -05:00
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
c1205a419d
Convert from Boost.Hana to Hana lite, part 1: introduce a template alias for
...
tuple, and use it throughout the code.
2020-09-20 14:07:49 -05:00
Zach Laine
df8d20838e
Create Boost.Hana lite.
2020-09-20 12:46:01 -05:00
Zach Laine
4b415e0856
Cruft removal.
2020-09-20 03:23:46 -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
f173196885
Fully internalize Boost.STLInterfacecs headers.
2020-09-20 03:23:23 -05:00
Zach Laine
111efe1eb3
Fully internalize Boost.Text headers.
2020-09-20 03:23:23 -05:00
Zach Laine
c288298713
Remove dependencies on Boost.Optional, Boost.Algorithm, and
...
Boost.ThrowException.
2020-09-19 22:10:35 -05:00
Zach Laine
5bed6f9776
Make dependency on Boost.Preprocessor optional.
2020-09-19 21:37:45 -05:00
Zach Laine
675fcd2309
Make dependency on Boost.TypeIndex optional.
2020-09-19 21:12:24 -05:00
Zach Laine
113270d6f6
Remove dependency on Boost.Any.
2020-09-19 20:43:12 -05:00
Zach Laine
1ed37641e9
Remove dependency on the Spirit headers, via extensive copy/pasta.
2020-09-19 19:55:52 -05:00
Zach Laine
c3db92bdb1
Fix VC2017 compilation failures.
2020-09-10 00:02:29 -05:00
Zach Laine
435ac5adf4
Fix a handfull of compilation failures when building on MSVC.
2020-09-09 23:01:49 -05:00
Zach Laine
3ac30663b4
Add support for C++17.
2020-09-09 02:45:19 -05:00
Zach Laine
701566d6b0
Grooming.
2020-09-09 02:45:19 -05:00
Zach Laine
0f8eedbd7f
Constrain iterator and/or sentinel template parameters in make_view(),
...
report_error(), and _report_warning().
2020-09-09 02:45:17 -05:00
Zach Laine
3fe8116714
Remove TODO.
2020-09-09 02:45:17 -05:00
Zach Laine
62149efddf
Constrain view's iterator type to be a forward-iterator.
2020-09-09 02:45:17 -05:00
Zach Laine
32ebd38270
Exercise the sentinel code path for every parser; fix errors.
...
Fixes #3 .
2020-09-09 02:45:17 -05:00
Zach Laine
f23c864976
Fix detail::make_input_view()'s handling of pointers-as-ranges.
2020-09-09 02:45:17 -05:00
Zach Laine
19d441743a
Fix the constraints on {callback_,}parse() when called with a pointer to a
...
null-terminated string.
2020-09-09 02:45:15 -05:00
Zach Laine
4e803101ca
Enforce that skip_directive::oeprator()() takes a parser_interface, and add
...
comments in a couple of plaes to indicate to users why their code is
ill-formed.
Fixes #8 (to the greatest extent possible, which isn't much).
2020-09-09 02:45:10 -05:00
Zach Laine
fb9c4736ff
Regularize the features of {stream,callback}_error_handler by giving
...
stream_error_handler an optional second stream.
2020-09-07 22:27:40 -05:00
Zach Laine
dcbb0fd932
Don't even generate the name of parsers in the no-trace case.
2020-09-07 22:27:40 -05:00
Zach Laine
edf4b0ebff
Fix broken line quoting in write_formatted_message().
2020-09-07 22:27:40 -05:00