2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-27 07:02:12 +00:00
Commit Graph

546 Commits

Author SHA1 Message Date
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
Zach Laine
2df1e72f20 Add additional overloads of parse() to fix overload resolution when using
{callback_,}rule as a skipper.
2020-09-05 01:49:16 -05:00
Zach Laine
71f316e243 Forward declare {callback_,}rule. 2020-09-05 01:49:16 -05:00
Zach Laine
0348ed2b69 First draft of section on rules. 2020-09-05 01:49:16 -05:00
Zach Laine
447a2fb1c2 Document how with_{globals,error_handler}() work in The parse() API. 2020-09-04 03:00:02 -05:00
Zach Laine
aad66c39f2 Explain how to define parsers from {u,}int_parser directly. 2020-09-04 02:40:21 -05:00
Zach Laine
080b89f920 Add a short example using a rule before we get into the weeds. 2020-09-04 02:23:29 -05:00
Zach Laine
1a17be97c6 Doc copy editing. 2020-09-03 23:27:58 -05:00
Zach Laine
454a84d3d3 Make the Jamfile look a lot more like the ones in yap and stl_interfaces. 2020-09-03 23:01:26 -05:00
Zach Laine
1396b4023b Add section to Rationale about why attribute types are intended to be flexible. 2020-09-03 23:00:43 -05:00
Zach Laine
35113f30ad Add TODOs. 2020-09-03 23:00:16 -05:00
Zach Laine
24d3003352 Rework the tracing code quite a bit, to fill in gaps and correct misleading
output.

Fixes #11.
2020-09-03 22:46:02 -05:00
Zach Laine
c8a0bab822 First draft of "The parse() API" section. 2020-09-03 00:56:59 -05:00
Zach Laine
85ba0efada Sketch in much of the Combining Operations section. 2020-09-02 02:34:56 -05:00
Zach Laine
6e9009a40c Add {sequence,alternative} parser to Terminology. 2020-09-02 01:33:29 -05:00
Zach Laine
bfc94c8019 Doc copy editing. 2020-09-02 01:20:23 -05:00