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

235 Commits

Author SHA1 Message Date
Zach Laine
1278bdfd0a Consolidate lists of tests and known failures. 2017-05-12 16:08:49 -05:00
Zach Laine
2a916dfe7f Correct handling of newlines in spaced. 2017-05-12 14:53:31 -05:00
Zach Laine
e0c549a92d Tag more broken tests. 2017-05-12 14:40:18 -05:00
Zach Laine
ae2cb90a9a Add JSONTestSuite as a submodule. 2017-05-12 14:12:44 -05:00
Zach Laine
edb019f72e It looks like the yaml-test-suite tests intend a terminal "\" to be a
placeholder for a terminal newline.
2017-05-12 13:59:57 -05:00
Zach Laine
190666b32f Enforce positive indentation requirement in block scalars. 2017-05-12 13:49:21 -05:00
Zach Laine
445f7412f8 Fix more backtracking issues, this time in single-quoted strings. 2017-05-12 00:39:49 -05:00
Zach Laine
3981fe6ca0 Fix backtracking problems in double-quoted text parsing. 2017-05-12 00:14:41 -05:00
Zach Laine
8ab9170e4c Give l_empty a single newline char attribute. 2017-05-11 20:34:15 -05:00
Zach Laine
d50bbd5668 Make the use of compare_libyaml optional, and off by default. 2017-05-11 19:19:24 -05:00
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