Zach Laine
8c9ad7bdb3
Document why there are no Spirit-style charater class parsers (alnum, punct,
...
etc.) in the Rationale section of the docs.
Fixes #224 .
2025-07-12 15:01:46 -05:00
Adem Budak
d8abe8f29e
Fix some typos on documentation
2025-07-12 14:46:28 -05:00
Zach Laine
810adb43f6
Use a move asssignment instead of a copy assignment when returning a result
...
via detail::make_parse_result().
Supercedes PR #247 .
2025-07-12 14:42:47 -05:00
Zach Laine
5788fb6967
Add missing 'template ' after dot when naming a dependent template
...
instantiation.
Fixes #221 .
2025-05-06 01:55:23 -05:00
Rene Rivera
ec7df8a0af
Add support for modular build structure.
2025-05-06 01:54:32 -05:00
Zach Laine
a93a1d2647
Use detail::hl::make_tuple() instead of CTAD in test to fix build breakage on
...
some compilers.
2025-04-13 14:26:47 -05:00
Zach Laine
927f35f115
Provide a way to specify radix, and min/max digits for {u,}int_parser, without
...
using the template parameters directly, since this also requires the user to
type parser_interface.
Fixes #220 .
2025-04-12 19:59:46 -05:00
Zach Laine
87617fdec0
std::tuple -> tuple in test to fix build with -DBUILD_WITH_HANA=true.
2025-04-12 19:33:11 -05:00
Zach Laine
ead639e630
Add missing cxxstd to meta/libraries.json.
2025-04-12 13:56:00 -05:00
Zach Laine
a3ca1193b2
Add error reporting when encountering unexpected (left over) code points at
...
the end of an otherwise-successful parse, when doing non-prefix parsing.
2025-03-30 16:06:41 -05:00
Zach Laine
07153117ff
Doc copy editing.
...
Fixes #217 .
2025-03-30 16:06:02 -05:00
Zach Laine
6414f99e04
Remove space from declaration of UDLs, because apparently it matters?!
...
Fixes #216 .
boost-1.88.0
2025-03-13 19:03:14 -05:00
Zach Laine
78bc141d5f
Add doc example of unexpected combining sequence parsers.
...
Example is based on #215 .
boost-1.88.0.beta1
2025-03-01 16:34:22 -06:00
necessarily-equal
b253d9ca53
Add unicode symbols parser ( #213 )
...
* Add symb parser to handle unicode symbols
* Add documentation for symb
* Add tests for symb
* Fix typo in the documentation
---------
Contributed by: Antoine Fontaine <antoinefontaine@posteo.net >
2025-02-20 23:51:17 -06:00
Zach Laine
0a34acc42a
Add new macro BOOST_PARSER_GCC that is defined in config.hpp only for real
...
(non-Clang-emulated) GCC builds; replace relevant uses of the __GNUC__ macro
with BOOST_PARSER_GCC.
See discussion in PR #211 .
2025-02-20 23:38:09 -06:00
Zach Laine
56c81c0b57
Use gross pointer dereference expression to implement detail::whatever
...
converions operator, since 2/3 of the big three compilers reject the use of
declval() there.
2025-02-20 23:38:09 -06:00
Zach Laine
821d1d4c08
Fix longstanding mysterious ill-formedness in
...
detail::static_assert_merge_attributes. It was down to unavailabilty of a
default ctor for certain parser types.
2025-02-20 23:38:09 -06:00
Zach Laine
57cdd78210
Properly sort the code point values in detail::char_set<punct_chars>.
...
Fixes #209 .
2024-12-23 17:28:07 -06:00
Zach Laine
3993efb692
Update MacOS badges in README.md.
2024-12-20 20:02:44 -06:00
Zach Laine
74bc8fc1bb
Add the delimiter(p)[] directive proper (missing from previous commit).
...
Fixes #162 .
2024-12-20 20:01:16 -06:00
Zach Laine
b42b052df4
Add the delimiter(p)[] directive, whic allows you to introduce a delimiter
...
into the parse of a permutation parser.
Fixes #162 .
2024-12-19 22:26:08 -06:00
Zach Laine
42c9d82419
Add an optional char parser to quoted_string_parser, so that it can be made
...
fully general.
Fixes #196 .
2024-12-17 00:17:54 -06:00
Zach Laine
958ac38256
Note for the user that they must be aware of nonobvious C++ operator
...
precedence impact of expression evaluation.
Fixes #205 .
2024-12-16 22:33:55 -06:00
Zach Laine
354586dd76
Github runner macos-12 -> macos-13.
2024-12-16 19:24:39 -06:00
Zach Laine
305bba875b
Grooming.
2024-12-09 01:57:04 -06:00
Zach Laine
f468d529fe
Fix stale comment in doc example.
boost-1.87.0
2024-11-29 16:29:20 -06:00
Zach Laine
b5d4339f2c
Fix semicolon-delimited bullet list in parsers table.
2024-11-29 16:29:13 -06:00
Zach Laine
6d7fa6f105
Add missing Docbook tag to fix broken reference in docs.
2024-11-29 16:20:14 -06:00
Mohammad Nejati
c975f57908
Add index.html
...
This redirects links pointing to the root directory to the documentation
page, such as:
https://www.boost.org/doc/libs/develop/libs/parser/
2024-11-27 20:10:11 -06:00
Zach Laine
063291b78c
Correct the parser used in the second half of the "Parse Into a Class"
...
example.
Fixes #206 .
2024-11-24 22:55:21 -06:00
Zach Laine
3eb827dcd6
Fix error in seq_parser::append() that causes AllowBacktracking=false to be treated as =true.
2024-11-14 22:49:51 -06:00
Zach Laine
6d796287b6
Disable the tests for in-Boost builds.
2024-11-13 20:54:34 -06:00
Zach Laine
bb0fb885b8
Doc update for previous symbol table changes.
...
Related to #183 .
boost-1.87.0.beta1
2024-10-31 23:26:07 -05:00
Zach Laine
94a9daec40
Change the way that the pending operations are applied to symbol table
...
parsers. Instead of trying to find all of them at the start of the top-level
parse, they are recorded in the context, and then applied at the end of the
top-level parse. The previous technique did not work, simplt because the
top-level parse cannot see all the parser involded -- some are behind rule
firewalls, by design.
Related to #183 .
Fixes #204 .
2024-10-31 23:07:17 -05:00
Zach Laine
4344dd3f47
Remove mooted TODOs.
2024-10-31 23:07:17 -05:00
Vernon Mauery
a7c7470bc1
Remove unused lambda capture
...
str is unused in the lambda; remove it from the capture
Signed-off-by: Vernon Mauery <vernon.mauery@intel.com >
2024-10-27 14:54:56 -05:00
Zach Laine
b273133fd2
Remove Hana dependency note from README.
2024-10-23 19:35:19 -05:00
Zach Laine
3a7ddcf936
Remove doc link from README.
2024-10-23 19:33:07 -05:00
Marshall Clow
d79efb0daa
Update README.md
2024-10-23 19:25:31 -05:00
Zach Laine
9b03f3c1f9
Remove " (Proposed)" from docs.
...
Fixes #199 .
2024-10-03 20:06:47 -05:00
Zach Laine
446d09dc5d
Update README.md badges.
2024-10-03 19:31:46 -05:00
Zach Laine
f2aa039282
Document newly-added operations in the Mutable Symbol Tables page of the docs.
...
Documentation for #183 .
2024-10-03 19:23:46 -05:00
Zach Laine
1e64b6e416
Add insert/erase/clear operations on symbol tables for the current parse and
...
subsequent parses both. Add better tests for the added API and the previous
subset of the operations already present. Fix errors revealed by the tests.
Fixes #183 .
2024-10-03 17:56:00 -05:00
Zach Laine
41fb3997ba
Remove official support for VS 2019.
2024-10-03 17:56:00 -05:00
Zach Laine
23017af526
Remove support for direct use of null-terminated strings with the parser APIs.
...
Fixes #175 .
Fixes #190 .
2024-10-02 20:28:50 -05: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