2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-28 07:22:29 +00:00
Commit Graph

311 Commits

Author SHA1 Message Date
Zach Laine
235f4d92c9 Change many C++17-mode metafunction predicates to constexpr bools instead of
structs.
2023-12-03 15:20:53 -06:00
Zach Laine
72e5573505 Replace use of is_integral with parsable_code_unit, which is all the character
types.  Also slightly simplify the logic for parsable_code_unit.

Fixes #22.
2023-12-03 15:20:40 -06:00
Zach Laine
876056aa28 uint32_t -> char32_t in transcode_iterator. 2023-12-03 14:19:08 -06:00
Zach Laine
7e45010e55 Remove the lazy usage of decay instead of remove_cvref in the public concepts. 2023-12-03 13:57:34 -06:00
Zach Laine
cf63c1ccf6 More char8_t-specific cruft removal. 2023-12-03 13:53:56 -06:00
Zach Laine
fe28fcb8ff Remove superfluous {utf8,code_point}_* concepts and their associated C++17
type traits.
2023-12-03 13:49:15 -06:00
Zach Laine
362542d688 Remove the char8_t-specific public concepts, and simplify code that was
previously the downstream use of those public concepts.
2023-12-03 13:40:50 -06:00
Zach Laine
0744da497b innermost -> bottommost 2023-12-02 17:26:18 -06:00
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