2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-26 18:52:23 +00:00
Commit Graph

561 Commits

Author SHA1 Message Date
Zach Laine
f83345e1fb Bring in GTest from text. 2020-09-09 22:59:53 -05:00
Zach Laine
b0964f039b Initial add of Travis and Appveyor config files. 2020-09-09 03:00:22 -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
3c8cc0275d Use C++17 by default in the CMake build. 2020-09-09 02:45:17 -05:00
Zach Laine
93f4ab246a Add an empty-input test that covers every parser.
Fixes #1.
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
e545504a81 Remove top-level index.html 2020-09-08 00:28:32 -05:00
Zach Laine
c19bafc7d9 Remove README.md files from GTest and Google Bench. 2020-09-08 00:22:51 -05:00
Zach Laine
0cbb776c8f Add README.md. 2020-09-08 00:18:58 -05:00
Zach Laine
10d0ec0846 First draft of Error Handling and Debugging. 2020-09-08 00:00:03 -05:00
Zach Laine
1b2ea46927 Revert "Make the Jamfile look a lot more like the ones in yap and stl_interfaces."
This reverts commit 454a84d3d3.

Turns out those changes do not work for standalone (out-of-Boost) docs.
2020-09-07 22:33:55 -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
Zach Laine
ff856a20a3 First draft of Memory Allocation section. 2020-09-07 22:27:40 -05:00
Zach Laine
df0a9b5214 Correct top-level index.html for standalone docs use. 2020-09-07 20:50:56 -05:00
Zach Laine
19fa0d31a3 Add a reference to the callback JSON example to the section on callback
parsing.
2020-09-07 20:44:54 -05:00
Zach Laine
e24b0b05cb Add extended JSON callback parsing example. 2020-09-07 20:44:54 -05:00
Zach Laine
27fa5b853a Fix callback parsing in the case where the top-level rul is not a callback
parser, one or more but subrules are.
2020-09-07 20:44:54 -05:00
Zach Laine
48ceef1b5d Correct comment. 2020-09-07 20:44:54 -05:00
Zach Laine
3a7e501dba Ensure that rule.with() takes at least one argument. 2020-09-07 20:44:54 -05:00
Zach Laine
47a53489c8 Frist draft of Callback Parsing section. 2020-09-07 20:44:54 -05:00
Zach Laine
ea6a5da09d Collapse the two partial specializations of rule_parser into a single
definition.
2020-09-06 21:56:22 -05:00
Zach Laine
4decca1023 Cruft removal. 2020-09-06 21:40:58 -05:00
Zach Laine
f391c40898 Clarify comment. 2020-09-06 21:35:32 -05:00
Zach Laine
750fa90cad First draft of Unicode Support section. 2020-09-06 20:14:35 -05:00
Zach Laine
71dddaf844 Make an unconditional eps in a repeat parser an error.
Fixes #10.
2020-09-06 15:08:53 -05:00
Zach Laine
312c71c776 Cruft removal. 2020-09-06 14:48:01 -05:00
Zach Laine
322bb32b2b Warning mitigation. 2020-09-06 14:44:49 -05:00
Zach Laine
af39bd8beb ADL audit.
Fixes #12.
2020-09-06 02:58:23 -05:00
Zach Laine
84ab0327f9 Doc spell checking corrections. 2020-09-06 01:54:17 -05:00
Zach Laine
0b6d631e85 Grooming. 2020-09-06 01:54:17 -05:00
Zach Laine
f843b6aeb2 foo<>::value -> foo_v 2020-09-06 01:54:17 -05:00
Zach Laine
3d23c9d1d7 Use newly-added detail::is_nope_v throughout the implementation. 2020-09-06 01:54:17 -05:00
Zach Laine
673fa56bc6 Remove hana::map as the implementation strategy for the parse context. Use a
plain ol' struct instead.

Fixes #13.
2020-09-06 01:54:17 -05:00
Zach Laine
43f5ac1726 Doc tweak. 2020-09-06 01:12:51 -05:00
Zach Laine
68e2c6daf8 Change detail::callback_skip_parse_impl() not to turn off the use of
callbacks.

Fixes #6.
2020-09-05 17:18:17 -05:00
Zach Laine
f616d38642 Drop support for hna::map as a calblacks parameter to parse(), and change the
passing of tags to callbacks from hana::type<tag> to just tag.

Fixes #5.
2020-09-05 17:09:13 -05:00
Zach Laine
c6ae723be3 Move the UDLs to the end of parser.hpp. 2020-09-05 17:08:32 -05:00
Zach Laine
2386c18441 Copy editing in rationale. 2020-09-05 16:30:57 -05:00
Zach Laine
6f4dec5f76 Implement missing portions of rationale marked TODO. 2020-09-05 13:46:59 -05:00
Zach Laine
b23d2e5f6c Add a definition of none ("struct none{};"), even when
BOOST_PARSER_NO_RUNTIME_ASSERTIONS is defined.  Otherwise, even code that uses
none properly becomes ill-formed.
2020-09-05 13:45:03 -05:00
Zach Laine
faab941450 Add exended JSON parsing example. 2020-09-05 01:49:16 -05:00