2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-26 06:42:25 +00:00
Commit Graph

149 Commits

Author SHA1 Message Date
Zach Laine
8317aeb942 typedef -> using 2017-04-30 21:25:34 -05:00
Zach Laine
9abcb3dd0f Alter error reporting to report errors and warnings via user-supplied
callbacks; if you error callback is supplied, and exception results.
2017-04-30 21:25:34 -05:00
Zach Laine
a79a17571c Add TODO. 2017-04-30 21:20:04 -05:00
Zach Laine
83f3dcda12 Fix segfaults caused by errors in value_t hashing. 2017-04-30 11:30:57 -05:00
Zach Laine
32c2b51b80 Allow equality comparisons of value_t with different active members. 2017-04-30 10:52:25 -05:00
Zach Laine
6688b864d9 Cruft removal. 2017-04-30 10:52:25 -05:00
Zach Laine
439bb42b52 Remove incorrect whitespace separators in block_header. 2017-04-30 10:52:25 -05:00
Zach Laine
98e4efbd47 Remove simplifying assumption in tests that each input file contains only one
document.
2017-04-30 10:52:18 -05:00
Zach Laine
f3c364cc85 Fix broken use of YAML_PARSER_PRINT_INDENT when BOOST_SPIRIT_DEBUG is
undefined.
2017-04-30 01:08:07 -05:00
Zach Laine
b5e25fc867 Apparently <TAB> means \t in the input test data. Sigh. 2017-04-30 01:07:42 -05:00
Zach Laine
17ac5cc43f Fix horribly mistaken guess at what the unexplained "m" parameter in
s-l+block-indented(n,c) meant in the spec.
2017-04-30 00:45:44 -05:00
Zach Laine
bf11a1e0ca Correct ?:- >> plain_safe case of plain_first. 2017-04-30 00:03:04 -05:00
Zach Laine
eeadbb0502 Cruft removal. 2017-04-30 00:01:04 -05:00
Zach Laine
84209639c7 Serveral interconencted changes:
- anchored_node_t -> properties_node_t
- Correctly handle anchors and aliases, plus retention of propertieswhen
  specified (tags TBD).
- Remove now-moot link_yaml().

This makes ast::value_t Regular.
2017-04-29 23:20:08 -05:00
Zach Laine
03540bc4ea Correct auto-detected indentation on block mappings. 2017-04-29 18:39:56 -05:00
Zach Laine
1586e87bba Apply YAML_PARSER_PRINT_INDENT in more places. 2017-04-29 18:34:31 -05:00
Zach Laine
59103f136a Add very simple test to exercise the flow plain parsers. 2017-04-29 16:59:50 -05:00
Zach Laine
3856349be9 Add indentation printer for use in debugging throughout the parsers. 2017-04-29 16:58:28 -05:00
Zach Laine
8ea8946b5a Correct handling of nschar >> '#' case of plain_char. 2017-04-29 16:18:30 -05:00
Zach Laine
e960469747 Disbale Spirit debugging for n{b,s}_char. 2017-04-29 16:17:10 -05:00
Zach Laine
7dbc296088 std::string -> char for several character parsers. 2017-04-28 21:36:31 -05:00
Zach Laine
86b5db7dc1 Disable Spirit debugging for no-op whitespace parsers. 2017-04-28 21:35:53 -05:00
Zach Laine
67e67afc3e Add ASan and UBSan build support. 2017-04-28 21:19:39 -05:00
Zach Laine
1ed16473ad Add omit[] to more places in the flow parsers; this fixes many results, but
not parsing.
2017-04-28 00:37:07 -05:00
Zach Laine
8a5b47312e Numerous small corrections, fixing several failures. 2017-04-28 00:16:52 -05:00
Zach Laine
1694c7831c Correct copyright years. 2017-04-27 22:37:11 -05:00
Zach Laine
122b56cbd9 array_t -> seq_t
object_t -> map_t
anchored_object_t -> anchored_node_t
object_element_t -> map_element_t
2017-04-27 22:36:55 -05:00
Zach Laine
14133d1954 Remove old parser cruft, and omd namespace. 2017-04-27 22:36:55 -05:00
Zach Laine
b61041da17 Add support for expected-fail tests. 2017-04-27 22:36:55 -05:00
Zach Laine
534a5ceb7f Convert the current test to parse-only, and preserve the current round-trip
test in a new TU, to be used later.
2017-04-27 22:36:48 -05:00
Zach Laine
d8b04377dd Add a hash case for null_t. 2017-04-27 19:45:37 -05:00
Zach Laine
a5c83296f4 Fix crashes in tests, due to improper checking of parse validity. 2017-04-27 19:45:37 -05:00
Zach Laine
777923c791 Fix GCC buld error. 2017-04-27 19:45:37 -05:00
Zach Laine
d22c4f60b3 Remove unneeded omit[]s. 2017-04-27 19:45:37 -05:00
Zach Laine
9c209f5f75 std::string -> void on numerous character parsers. 2017-04-27 00:14:29 -05:00
Zach Laine
ec1d3d5a76 Switch parse test to using new parser. 2017-04-26 21:25:50 -05:00
Zach Laine
8ee7d42672 Add parsers implementing YAML Character Stream section. 2017-04-26 21:10:04 -05:00
Zach Laine
46a0826b93 Add parsers implementing Block Styles section. 2017-04-26 20:27:21 -05:00
Zach Laine
a9ad95203a Add parsers implementing Flow Styles section. 2017-04-25 22:15:45 -05:00
Zach Laine
5740ead138 Add parsers implementing Basic Structures section. 2017-04-25 15:59:59 -05:00
Zach Laine
074d33f125 -Wno-parentheses 2017-04-25 15:59:59 -05:00
Zach Laine
a0a6d5f2e9 Add new lowest-level parser, implementing YAML section 5. 2017-04-25 15:59:59 -05:00
Zach Laine
bf905eb6b3 Expand context_t to have all the contexts from the spec. 2017-04-24 20:34:26 -05:00
Zach Laine
caaa85e07e Add debug support for recent additions. 2017-04-24 16:49:54 -05:00
Zach Laine
267cd4bbcf Sketch in folded scalar portion of block rewrite. 2017-04-24 16:33:59 -05:00
Zach Laine
a57b0fc0f2 Refactor block literals to make the code clearer. 2017-04-24 16:03:40 -05:00
Zach Laine
7e52a66eda Sketch in literal scalar portion of block rewrite. 2017-04-24 14:54:48 -05:00
Zach Laine
d4e4e0e3ac Include scalar.yaml in the "check" target. 2017-04-24 10:54:41 -05:00
Zach Laine
ae74567002 Rewrite "yaml" grammar to better conform to the spec. 2017-04-24 10:48:48 -05:00
Zach Laine
9b09002357 Remove escaping of % and # in original .tml test files. 2017-04-24 10:46:33 -05:00