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

1075 Commits

Author SHA1 Message Date
Zach Laine
ea4a79aaaa Add the parse-only tests to compare_libyaml/test. 2017-05-11 19:12:05 -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
e2137cbf75 Add libyaml as a submodule. 2017-05-11 18:13:59 -05:00
Zach Laine
82ddfc7227 Mark a few more expected failures. 2017-05-11 17:56:56 -05:00
Zach Laine
7fad1f35b6 Special-case the printing of top-level seqs and maps in canoncial printing
mode.
2017-05-11 17:36:58 -05:00
Zach Laine
b75aab44cf Move configuration of Spirit debug output from compile time to run time. Give
the test apps an optional "-v" flag to control this output.
2017-05-11 15:51:31 -05:00
Zach Laine
883e79d9ce Correct an error in block literal newline handling. 2017-05-11 14:39:07 -05:00
Zach Laine
e1d60f54b9 Mark a compare test as an expected failure. 2017-05-11 14:37:43 -05:00
Zach Laine
97381a152e Correct numerous problems with how flow style strings are collected. 2017-05-11 13:59:18 -05:00
Zach Laine
c4bab65110 Capture missing newline in literal_next. 2017-05-10 22:30:37 -05:00
Zach Laine
59f6012810 Correct == vs += typo. 2017-05-10 22:13:55 -05:00
Zach Laine
3c3f358668 Enforce that m > 1 for block sequence and block mapping auto-detected
indentation.
2017-05-10 21:42:24 -05:00
Zach Laine
6a536f260a Add scalar_auto_detect_indent, which must do multiline lookahead. 2017-05-10 21:24:35 -05:00
Zach Laine
5c9fecf559 Correct the use of auto-detected indentation in block scalars. 2017-05-10 18:58:54 -05:00
Zach Laine
5bbe5b46d0 Improve the error reporting in error_handler_t::report_*(). 2017-05-10 18:37:04 -05:00
Zach Laine
d180a11454 De-templatize the parsers. 2017-05-10 17:04:55 -05:00
Zach Laine
ee51b475e4 Put the definitions used by multiple parsers in new file parser_fwd.hpp. 2017-05-10 16:40:39 -05:00
Zach Laine
83401b05a0 Add config.hpp, and a build-test of the use of YAML_HEADER_ONLY. 2017-05-10 16:10:17 -05:00
Zach Laine
d8c9faed45 Provide a char const * version of parse_yaml(). 2017-05-10 15:44:19 -05:00
Zach Laine
7e33fffc02 Refactor BOM encoding checks in advance of upcoming error reporting
improvements.
2017-05-10 15:06:19 -05:00
Zach Laine
2b5c58d34e Fix badly broken handling of block scalars. 2017-05-10 13:26:44 -05:00
Zach Laine
77ea53a917 Mark a couple more expected failures, and fix part of the CMake failure
auto-marking.
2017-05-10 13:26:44 -05:00
Zach Laine
8d80390b3e Change .tml section stripping to elide the extra newline at the end of each section. 2017-05-10 12:14:17 -05:00
Zach Laine
80aaa62a4f Add print_yaml_canonical(), and use this in the parse-compare tests. 2017-05-09 15:38:55 -05:00
Zach Laine
272f55b9ad Value-compare (instead of pointer-comparing) alias_t referents in value_equal. 2017-05-09 12:31:13 -05:00
Zach Laine
e735e0fd48 Fix CMake marking of known parse-only failures as expected comparison test
failures as well.
2017-05-08 23:31:59 -05:00
Zach Laine
c5010cea17 Annotate some obviously broken comparison tests as expected failures. 2017-05-08 23:03:01 -05:00
Zach Laine
2f29b7930d Remove unwarranted asserts from yaml_printer and map_t. 2017-05-08 22:37:39 -05:00
Zach Laine
a64eeeed3d Allow comparisons between properties_node_t and value_t in value_equal. 2017-05-08 22:16:06 -05:00
Zach Laine
f53d18d64f Add tests for comparing the in-yaml, out-yaml, and json sections from the .tml
test files.
2017-05-08 22:15:02 -05:00
Zach Laine
405269423c Modify make_test_suite_yaml.py to create files for the out-yaml and json
sections as well.
2017-05-08 20:38:10 -05:00
Zach Laine
d2fc6305bb Another large refactor, this time to support UTF-8 streams. 2017-05-08 17:23:21 -05:00
Zach Laine
2b69ae79c8 Effectively constrain all the parser templates by enforcing their use of
Spirit's position_iterator<>.  Also, give each parser a "_t" suffix.
2017-05-07 15:08:34 -05:00
Zach Laine
1bd2eb7d36 Second half of the BOM-handling refactor. 2017-05-07 12:37:39 -05:00
Zach Laine
7e208d7085 First half of a largish refactor that allows BOMs to be handled correctly. 2017-05-06 14:29:10 -05:00
Zach Laine
d4d41e4166 Change error_handler_t to handle CRLF endings. 2017-05-06 12:25:04 -05:00
Zach Laine
edfc5c4f6d boost::optional instead of out-param for parse_yaml(). 2017-05-05 16:01:15 -05:00
Zach Laine
dbdce9abc3 Mark XW4D as an expected failure. 2017-05-05 01:03:05 -05:00
Zach Laine
e1330ea52d Yet another error_handler_t line quoting fix. 2017-05-05 01:01:44 -05:00
Zach Laine
90f78dcd09 Reorder alternatives in flow_map_implicit_entry and flow_content so that JSON
content is before YAML.
2017-05-05 00:33:22 -05:00
Zach Laine
682c0ff55f Clarify reason that NHX8 and P94K are marked as expected failures. 2017-05-05 00:13:19 -05:00
Zach Laine
b80ef8eb3c Correct >> vs. | typo in single_next_line. 2017-05-05 00:00:40 -05:00
Zach Laine
630032589c Mark NHX8 and P94K as expected failures. 2017-05-04 21:20:43 -05:00
Zach Laine
42bdb97e5a Reorder alternatives in plain_char for maximum munch. 2017-05-04 21:06:55 -05:00
Zach Laine
b2b037421e Remove more over-eager expectations. 2017-05-04 20:57:01 -05:00
Zach Laine
ef079eb204 Fix empty quoted line in error_handler_t. 2017-05-04 20:52:19 -05:00
Zach Laine
1e05c2171c Fix misbehaving nb_json. 2017-05-04 20:40:50 -05:00
Zach Laine
ab435ad08b Stop accepting characters when "\n..." or "\n---" is encountered when parsing
flow plain or block literals.
2017-05-04 19:46:13 -05:00
Zach Laine
bd56b2eaff Remove over-eager expectations in yaml_directive. 2017-05-04 18:21:09 -05:00
Zach Laine
2b6a1a8adc Apply context checks consistently. 2017-05-04 01:16:17 -05:00