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

259 Commits

Author SHA1 Message Date
Zach Laine
87d2c2adf2 Tag numerous JSONTestSuite files as expected failures. 2017-05-18 22:05:41 -05:00
Zach Laine
f5c036dc42 Tag failing json tests with invalid UTF-8 sequences as expected failures. 2017-05-16 18:30:58 -05:00
Zach Laine
c2def6b170 Tag failing i_* json tests as expected failures. 2017-05-16 18:16:45 -05:00
Zach Laine
a1b3f9b137 Add a test for each JSONTestSuite/test_parsing file. 2017-05-16 12:44:45 -05:00
Zach Laine
944d24b664 Add an explicit error when leading block scalar indentation is wrong. 2017-05-15 10:19:39 -05:00
Zach Laine
4978d913b4 Add a test covering the new warnings. 2017-05-15 00:33:23 -05:00
Zach Laine
50063e8d3a Fix uninitialized iterator in handle_properties. 2017-05-14 23:40:50 -05:00
Zach Laine
1bdf1e44f3 Check that warnings are enabled before doing work to issue them. 2017-05-14 18:23:33 -05:00
Zach Laine
d1c14e4190 Add a warnings when duplicate-key map entries are found. 2017-05-14 18:17:52 -05:00
Zach Laine
aedb5c9c97 Add find() and count() to map_t. 2017-05-14 17:35:18 -05:00
Zach Laine
8d444b9754 Remove the mistaken anchor_property hack, fixing an expected failure. 2017-05-14 16:43:14 -05:00
Zach Laine
023d5b8c9b Another refactor to enable good warnings when anchors are redefined. 2017-05-14 16:32:42 -05:00
Zach Laine
a897149362 Grooming. 2017-05-14 12:51:22 -05:00
Zach Laine
3cc902bf87 Avoid unnecessary allocations when printing YAML strings. 2017-05-14 12:42:17 -05:00
Zach Laine
3474dc9490 Add warning when reserved directives are used. 2017-05-14 11:32:17 -05:00
Zach Laine
9801982866 Add a couple of TODOs. 2017-05-14 01:34:51 -05:00
Zach Laine
4c59bde497 Major refactor that enables diagnosis of repeated YAML and TAG directives. 2017-05-14 01:26:39 -05:00
Zach Laine
6ee791a382 Add overloads of parse_yaml() that take an existing stream_t. 2017-05-13 02:23:23 -05:00
Zach Laine
89bacfa833 Remove current-parse-specific state from the error_handler_t ctor, in
preparation for the reuse of stream_t in multiple calls to parse_yaml().
2017-05-13 02:10:10 -05:00
Zach Laine
077d1d13e9 Add a benchmark to measure the time it takes to create the parser rules. 2017-05-12 21:02:34 -05:00
Zach Laine
a478c44b69 Move the test library sources to src/, and compile a real lib for the test and
perf programs to use.
2017-05-12 20:26:55 -05:00
Zach Laine
77739b7a91 Add Google Benchmark-based parser perf test. 2017-05-12 18:54:01 -05:00
Zach Laine
6174694d1a test_files -> local_test_files 2017-05-12 17:44:40 -05:00
Zach Laine
a9b3eb6c85 Add libyaml_check CMake target. 2017-05-12 16:16:11 -05:00
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