2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-29 19:52:12 +00:00

1077 Commits

Author SHA1 Message Date
Zach Laine
37f70260f1 Replace old badges with Github actions ones. 2023-12-02 02:47:23 -06:00
Zach Laine
2d0a6bdc6a Remove the C++20 build from macos-12 workflow. 2023-12-02 02:31:33 -06:00
Zach Laine
0bc35153d7 Remove appveyor config file. 2023-12-02 02:29:18 -06:00
Zach Laine
22a2e95d43 Add Github workflows. 2023-12-02 02:23:59 -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
61bd9fba5c Comment typo. 2023-12-02 02:03:28 -06:00
Zach Laine
670fb39f2d Remove Travis build file. 2023-12-02 02:03:28 -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
176f9a71a7 Flesh out the Best Practices section. 2022-07-23 13:41:48 -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
c437e98985 Fix int literal/long long literal confusion in parser_api.cpp tst. 2022-04-10 22:12:04 -05:00
Zach Laine
75ec33d8eb Stop GTest from messing about with the MSVC link flags! 2022-04-10 21:57:50 -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
1c0bd473f3 Fix really weird thinko in file_slurp() in JSON examples. 2022-04-08 19:07:59 -05:00
Zach Laine
65b9020ed4 Add missing include. 2022-04-08 17:47:40 -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
f8dcd56578 Fix uninitialized vars in GTest. 2022-04-08 17:45:08 -05:00
Zach Laine
4f3b106de9 Fix a failing static_assert in the non-callback JSON example, that was due to
sizeof(std::unique_ptr<T>) being 2*(sizeof(T*) on Clang!
2022-04-08 17:43:05 -05:00
Zach Laine
c7ab7ea845 Add sketch of string_view[] directive. 2022-04-08 09:58:05 -05:00
Zach Laine
127e3d65c7 Doc copy edits. 2022-04-07 21:58:30 -05:00
Zach Laine
4d0a310809 Correct (sigh) UB in self_filling_symbol_table.cpp example. 2022-04-07 17:49:54 -05:00
Zach Laine
93a51860e3 Doc copy edits. 2022-04-07 00:10:38 -05:00
Zach Laine
095aa362d7 Fix Clang builds. 2020-09-21 17:11:25 -05:00
Zach Laine
8d976d31df Fix Clang build on Linux. 2020-09-20 18:32:24 -05:00
Zach Laine
99005aa848 Add builds to Travis that disable Hana and Boost, respectively. 2020-09-20 17:45:42 -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
895224b214 Convert from Boost.Hana to Hana lite, part 5: Make some small adjustments to
the tests to get them building when Hana is not used; disable building the
examples when Boost.Hana is not in use, so that they can keep using the much
nicer hana::tuple::operator[] instead of parser::get().

This completes the changes to make Hana optional.
2020-09-20 17:05:57 -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
c8b5554fa3 Remove several Boost submodules from the clone list in the
cmake/dependencies.cmake.
2020-09-20 03:23:20 -05:00