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

39 Commits

Author SHA1 Message Date
Zach Laine
6d796287b6 Disable the tests for in-Boost builds. 2024-11-13 20:54:34 -06:00
Martin Posch
274e4e36ea Revert "avoid usage of CMAKE_CXX_COMPILER_FRONTEND_VARIANT and go with pre 3.14 version"
This reverts commit eab545e5b4.
2024-10-01 00:47:53 -05:00
Martin Posch
9d3647db3d avoid usage of CMAKE_CXX_COMPILER_FRONTEND_VARIANT and go with pre 3.14 version 2024-10-01 00:47:53 -05:00
Martin Posch
568494346a remove commented-out cmake 2024-10-01 00:47:53 -05:00
Martin Posch
f12e6a4882 quotes were missing for string comparison; use alternative compiler frontend check 2024-10-01 00:47:53 -05:00
MPo
912bfbded6 Fix MSVC Compiler issue.
MSVC in cmake has always been a boolean variable ( see https://cmake.org/cmake/help/latest/variable/MSVC.html)
detecting the MSVC Compiler requires therefore "if (MSVC)"

further, the MSVC Compiler will always emit '199711L' for __cplusplus, if it is called without the option '/Zc:__cplusplus'

this odd behavior will break any version check in the headers.
e.g. './include/boost/parser/detail/text/detail/begin_end.hpp' or 'boost/hana/traits.hpp

therefore "add_compile_options(/Zc:__cplusplus)" is always nrequired for the MSVC compiler
2024-10-01 00:47:53 -05:00
Zach Laine
8accdd922f Fix ignored USE_{A,UB}SAN in CMake files. 2024-09-30 18:08:09 -05:00
Zach Laine
d88e47cf17 Fix deficiencies in the CMake build:
- Clone minimal Boost dependencies so that the minimal Boost.Test header is
  available.

- Add boostdep-generated CMake code to the top of the top-level
  CMakeLists.txt.

Fixes #127.
2024-03-24 22:29:10 -05:00
Zach Laine
8e39ad067b Change tests from GTest to Boost.Test. Remove Goolge.{Test,Benchmark}.
Fixes #165.
2024-03-24 22:29:10 -05:00
Zach Laine
317248843b BOOST_PARSER_DISABLE_HANA_TUPLE - > BOOST_PARSER_USE_HANA_TUPLE; disable Hana
by default.

Fixes #155.
2024-03-23 22:26:16 -05:00
Zach Laine
02c140a251 MSVC warning mitigation.
Fixes #120.
Fixes #121.
Fixes #122.
Fixes #123.
2024-03-08 21:19:36 -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
8d976d31df Fix Clang build on Linux. 2020-09-20 18:32:24 -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
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
3c8cc0275d Use C++17 by default in the CMake build. 2020-09-09 02:45:17 -05:00
Zach Laine
1f317d5588 Add trivial parsing example. 2020-08-29 19:17:04 -05:00
Zach Laine
19cd3646d5 Cruft removal. 2020-08-28 20:40:28 -05:00
Zach Laine
f96b6bb0ad Trim all the YAML and JSON stuff, leaving only the parsing library. 2020-08-28 19:10:00 -05:00
Zach Laine
46a2acd18d Largish changes to get things going again after a long break:
- Update text and stl_interface files.
- Flesh out concepts constraints, using C++20 proper instead of cmcstl2.
  Remove SFINAE constraints (though SFINAE may make a comback for C++17
  support).
- Remove parser concept entirely.  Matching parser_interface<...> should
  suffice.
- Add CXX_STD to CMake files, a la text and stl_interfaces.
2020-08-28 19:09:45 -05:00
Zach Laine
03e01b9810 Add an API test for the parser API, using the new standalone CMake parser
library; fix errors.
2019-11-27 22:28:56 -06:00
Zach Laine
ea3242867c Update concepts constraints, but disable them for now. 2019-11-27 22:28:18 -06:00
Zach Laine
7651786c3f Add optional support for cmcstl2 to the CMake build. 2019-11-19 09:55:15 -06:00
Zach Laine
3de3f75785 Add -ftemplate-depth=1024 to build. 2018-10-27 18:12:12 -05:00
Zach Laine
de9dd2aeaa Initial steps toward rewriting the JSON parser using the new parsers. 2018-10-21 20:19:49 -05:00
Zach Laine
04dbec39dc Add parser tests. 2018-10-10 19:34:29 -05:00
Zach Laine
6d8606cd80 Add the start of a Spirit X3-based parser for YAML. 2018-10-01 00:36:54 -05:00
Zach Laine
d18ee90b9a Fix Clang-on-Linux build. 2018-09-29 19:07:01 -05:00
Zach Laine
7c39af865f Break JSON parsing code and JSON data model into separate files. 2018-09-26 23:58:36 -05:00
Zach Laine
ee8df7636f Add JSON parser to build. 2018-09-26 23:29:55 -05:00
Zach Laine
2575467a40 Move all headers under include/boost/. 2018-09-24 06:48:48 -05:00
Zach Laine
a478c44b69 Move the test library sources to src/, and compile a real lib for the test and
perf programs to use.
2017-05-12 20:26:55 -05:00
Zach Laine
77739b7a91 Add Google Benchmark-based parser perf test. 2017-05-12 18:54:01 -05:00
Zach Laine
d50bbd5668 Make the use of compare_libyaml optional, and off by default. 2017-05-11 19:19:24 -05:00
Zach Laine
0ed0a9b976 Add simple CMake file to build libyaml and one of its test apps. 2017-05-11 18:55:15 -05:00
Zach Laine
777923c791 Fix GCC buld error. 2017-04-27 19:45:37 -05:00
Zach Laine
074d33f125 -Wno-parentheses 2017-04-25 15:59:59 -05:00
Zach Laine
14baf0e2e4 Add CMake build, GTest, and Google Bench. 2017-04-20 21:01:31 -05:00