2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-20 16:52:13 +00:00

Commit Graph

  • 1cc351aa29 Add a limit on the number of open arrays and/or object to prevent stack overflows. Zach Laine 2018-09-28 00:09:13 -05:00
  • 0d5af80dbe Switch the JSON parsing tests to use the new JSON parser; tighten up number parsing in same. Zach Laine 2018-09-27 23:17:07 -05:00
  • 9240f9d124 Stylistic changeds to x3_error_reporting, including its output. Zach Laine 2018-09-27 21:48:22 -05:00
  • c5eb6f9eef Remove position cache from x3_error_handler. Zach Laine 2018-09-27 21:15:13 -05:00
  • 5be1c00730 Emit parse errors via callback instead of just dumping them to the console. Zach Laine 2018-09-27 21:04:49 -05:00
  • 7a82f505b0 Copy x3/support/utility/error_reporting.hpp into yaml/parser for modification. Zach Laine 2018-09-27 20:30:04 -05:00
  • a37c8206b4 Break up json detail header to fix incomplete type errors in GCC build. Zach Laine 2018-09-27 20:14:11 -05:00
  • 5112aa4435 Add json::operator==. Zach Laine 2018-09-27 00:32:29 -05:00
  • a7832f9446 Move most of json::detail namespace out into its own header. Zach Laine 2018-09-27 00:21:26 -05:00
  • 6c1945a5b0 Create json_fwd.hpp header. Zach Laine 2018-09-27 00:06:25 -05:00
  • 7c39af865f Break JSON parsing code and JSON data model into separate files. Zach Laine 2018-09-26 23:58:36 -05:00
  • ee8df7636f Add JSON parser to build. Zach Laine 2018-09-26 23:29:55 -05:00
  • 53db073094 Peace-of-mind checkin of experimental Spirit X3 JSON parser. Zach Laine 2018-09-26 22:57:02 -05:00
  • 3fb764874f Correct gross error in the use of Boost.Text UTF-8 iterators. Zach Laine 2018-09-26 22:54:28 -05:00
  • 5db8b41f7d Use the UTF-8 iterators from Boost.Text instead of the one from Boost.Regex. Zach Laine 2018-09-24 10:01:17 -05:00
  • 20c989f1f8 Clang-format. Zach Laine 2018-09-24 07:45:35 -05:00
  • fd24e68057 Add license, index.html, and meta/. Zach Laine 2018-09-24 07:13:55 -05:00
  • 2575467a40 Move all headers under include/boost/. Zach Laine 2018-09-24 06:48:48 -05:00
  • d71f00f99c yaml:: -> boost::yaml:: Zach Laine 2018-09-24 06:29:55 -05:00
  • 87d2c2adf2 Tag numerous JSONTestSuite files as expected failures. Zach Laine 2017-05-18 22:05:41 -05:00
  • f5c036dc42 Tag failing json tests with invalid UTF-8 sequences as expected failures. Zach Laine 2017-05-16 18:30:54 -05:00
  • c2def6b170 Tag failing i_* json tests as expected failures. Zach Laine 2017-05-16 18:16:45 -05:00
  • a1b3f9b137 Add a test for each JSONTestSuite/test_parsing file. Zach Laine 2017-05-16 12:28:18 -05:00
  • 944d24b664 Add an explicit error when leading block scalar indentation is wrong. Zach Laine 2017-05-15 07:08:34 -05:00
  • 4978d913b4 Add a test covering the new warnings. Zach Laine 2017-05-15 00:08:09 -05:00
  • 50063e8d3a Fix uninitialized iterator in handle_properties. Zach Laine 2017-05-14 23:40:50 -05:00
  • 1bdf1e44f3 Check that warnings are enabled before doing work to issue them. Zach Laine 2017-05-14 18:23:33 -05:00
  • d1c14e4190 Add a warnings when duplicate-key map entries are found. Zach Laine 2017-05-14 18:17:52 -05:00
  • aedb5c9c97 Add find() and count() to map_t. Zach Laine 2017-05-14 17:35:18 -05:00
  • 8d444b9754 Remove the mistaken anchor_property hack, fixing an expected failure. Zach Laine 2017-05-14 16:43:14 -05:00
  • 023d5b8c9b Another refactor to enable good warnings when anchors are redefined. Zach Laine 2017-05-14 12:52:18 -05:00
  • a897149362 Grooming. Zach Laine 2017-05-14 12:51:22 -05:00
  • 3cc902bf87 Avoid unnecessary allocations when printing YAML strings. Zach Laine 2017-05-14 12:42:17 -05:00
  • 3474dc9490 Add warning when reserved directives are used. Zach Laine 2017-05-14 11:32:17 -05:00
  • 9801982866 Add a couple of TODOs. Zach Laine 2017-05-14 01:34:51 -05:00
  • 4c59bde497 Major refactor that enables diagnosis of repeated YAML and TAG directives. Zach Laine 2017-05-13 20:52:49 -05:00
  • 6ee791a382 Add overloads of parse_yaml() that take an existing stream_t. Zach Laine 2017-05-13 02:23:23 -05:00
  • 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(). Zach Laine 2017-05-13 02:10:06 -05:00
  • 077d1d13e9 Add a benchmark to measure the time it takes to create the parser rules. Zach Laine 2017-05-12 21:02:34 -05:00
  • a478c44b69 Move the test library sources to src/, and compile a real lib for the test and perf programs to use. Zach Laine 2017-05-12 20:26:50 -05:00
  • 77739b7a91 Add Google Benchmark-based parser perf test. Zach Laine 2017-05-12 18:53:50 -05:00
  • 6174694d1a test_files -> local_test_files Zach Laine 2017-05-12 17:44:40 -05:00
  • a9b3eb6c85 Add libyaml_check CMake target. Zach Laine 2017-05-12 16:16:11 -05:00
  • 1278bdfd0a Consolidate lists of tests and known failures. Zach Laine 2017-05-12 16:08:49 -05:00
  • 2a916dfe7f Correct handling of newlines in spaced. Zach Laine 2017-05-12 14:53:31 -05:00
  • e0c549a92d Tag more broken tests. Zach Laine 2017-05-12 14:40:18 -05:00
  • ae2cb90a9a Add JSONTestSuite as a submodule. Zach Laine 2017-05-12 14:12:44 -05:00
  • edb019f72e It looks like the yaml-test-suite tests intend a terminal "\" to be a placeholder for a terminal newline. Zach Laine 2017-05-12 13:59:47 -05:00
  • 190666b32f Enforce positive indentation requirement in block scalars. Zach Laine 2017-05-12 13:49:21 -05:00
  • 445f7412f8 Fix more backtracking issues, this time in single-quoted strings. Zach Laine 2017-05-12 00:39:49 -05:00
  • 3981fe6ca0 Fix backtracking problems in double-quoted text parsing. Zach Laine 2017-05-12 00:14:41 -05:00
  • 8ab9170e4c Give l_empty a single newline char attribute. Zach Laine 2017-05-11 20:34:15 -05:00
  • d50bbd5668 Make the use of compare_libyaml optional, and off by default. Zach Laine 2017-05-11 19:19:24 -05:00
  • ea4a79aaaa Add the parse-only tests to compare_libyaml/test. Zach Laine 2017-05-11 19:12:05 -05:00
  • 0ed0a9b976 Add simple CMake file to build libyaml and one of its test apps. Zach Laine 2017-05-11 18:55:15 -05:00
  • e2137cbf75 Add libyaml as a submodule. Zach Laine 2017-05-11 18:13:59 -05:00
  • 82ddfc7227 Mark a few more expected failures. Zach Laine 2017-05-11 17:56:56 -05:00
  • 7fad1f35b6 Special-case the printing of top-level seqs and maps in canoncial printing mode. Zach Laine 2017-05-11 17:36:46 -05:00
  • 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. Zach Laine 2017-05-11 15:51:27 -05:00
  • 883e79d9ce Correct an error in block literal newline handling. Zach Laine 2017-05-11 14:39:07 -05:00
  • e1d60f54b9 Mark a compare test as an expected failure. Zach Laine 2017-05-11 14:37:43 -05:00
  • 97381a152e Correct numerous problems with how flow style strings are collected. Zach Laine 2017-05-11 13:59:18 -05:00
  • c4bab65110 Capture missing newline in literal_next. Zach Laine 2017-05-10 22:30:37 -05:00
  • 59f6012810 Correct == vs += typo. Zach Laine 2017-05-10 22:13:55 -05:00
  • 3c3f358668 Enforce that m > 1 for block sequence and block mapping auto-detected indentation. Zach Laine 2017-05-10 21:42:18 -05:00
  • 6a536f260a Add scalar_auto_detect_indent, which must do multiline lookahead. Zach Laine 2017-05-10 21:17:14 -05:00
  • 5c9fecf559 Correct the use of auto-detected indentation in block scalars. Zach Laine 2017-05-10 18:58:54 -05:00
  • 5bbe5b46d0 Improve the error reporting in error_handler_t::report_*(). Zach Laine 2017-05-10 18:37:04 -05:00
  • d180a11454 De-templatize the parsers. Zach Laine 2017-05-10 17:04:55 -05:00
  • ee51b475e4 Put the definitions used by multiple parsers in new file parser_fwd.hpp. Zach Laine 2017-05-10 16:40:30 -05:00
  • 83401b05a0 Add config.hpp, and a build-test of the use of YAML_HEADER_ONLY. Zach Laine 2017-05-10 16:10:17 -05:00
  • d8c9faed45 Provide a char const * version of parse_yaml(). Zach Laine 2017-05-10 15:35:24 -05:00
  • 7e33fffc02 Refactor BOM encoding checks in advance of upcoming error reporting improvements. Zach Laine 2017-05-10 15:06:16 -05:00
  • 2b5c58d34e Fix badly broken handling of block scalars. Zach Laine 2017-05-10 13:25:33 -05:00
  • 77ea53a917 Mark a couple more expected failures, and fix part of the CMake failure auto-marking. Zach Laine 2017-05-10 13:22:47 -05:00
  • 8d80390b3e Change .tml section stripping to elide the extra newline at the end of each section. Zach Laine 2017-05-10 12:14:17 -05:00
  • 80aaa62a4f Add print_yaml_canonical(), and use this in the parse-compare tests. Zach Laine 2017-05-09 15:05:12 -05:00
  • 272f55b9ad Value-compare (instead of pointer-comparing) alias_t referents in value_equal. Zach Laine 2017-05-09 12:31:13 -05:00
  • e735e0fd48 Fix CMake marking of known parse-only failures as expected comparison test failures as well. Zach Laine 2017-05-08 23:31:56 -05:00
  • c5010cea17 Annotate some obviously broken comparison tests as expected failures. Zach Laine 2017-05-08 23:03:01 -05:00
  • 2f29b7930d Remove unwarranted asserts from yaml_printer and map_t. Zach Laine 2017-05-08 22:37:39 -05:00
  • a64eeeed3d Allow comparisons between properties_node_t and value_t in value_equal. Zach Laine 2017-05-08 22:16:01 -05:00
  • f53d18d64f Add tests for comparing the in-yaml, out-yaml, and json sections from the .tml test files. Zach Laine 2017-05-08 22:14:56 -05:00
  • 405269423c Modify make_test_suite_yaml.py to create files for the out-yaml and json sections as well. Zach Laine 2017-05-08 17:49:07 -05:00
  • d2fc6305bb Another large refactor, this time to support UTF-8 streams. Zach Laine 2017-05-07 15:28:50 -05:00
  • 2b69ae79c8 Effectively constrain all the parser templates by enforcing their use of Spirit's position_iterator<>. Also, give each parser a "_t" suffix. Zach Laine 2017-05-07 15:08:34 -05:00
  • 1bd2eb7d36 Second half of the BOM-handling refactor. Zach Laine 2017-05-06 16:14:27 -05:00
  • 7e208d7085 First half of a largish refactor that allows BOMs to be handled correctly. Zach Laine 2017-05-06 12:54:28 -05:00
  • d4d41e4166 Change error_handler_t to handle CRLF endings. Zach Laine 2017-05-06 12:25:04 -05:00
  • edfc5c4f6d boost::optional instead of out-param for parse_yaml(). Zach Laine 2017-05-05 16:01:15 -05:00
  • dbdce9abc3 Mark XW4D as an expected failure. Zach Laine 2017-05-05 01:03:05 -05:00
  • e1330ea52d Yet another error_handler_t line quoting fix. Zach Laine 2017-05-05 01:01:44 -05:00
  • 90f78dcd09 Reorder alternatives in flow_map_implicit_entry and flow_content so that JSON content is before YAML. Zach Laine 2017-05-05 00:33:15 -05:00
  • 682c0ff55f Clarify reason that NHX8 and P94K are marked as expected failures. Zach Laine 2017-05-05 00:13:19 -05:00
  • b80ef8eb3c Correct >> vs. | typo in single_next_line. Zach Laine 2017-05-05 00:00:40 -05:00
  • 630032589c Mark NHX8 and P94K as expected failures. Zach Laine 2017-05-04 21:20:43 -05:00
  • 42bdb97e5a Reorder alternatives in plain_char for maximum munch. Zach Laine 2017-05-04 21:06:55 -05:00
  • b2b037421e Remove more over-eager expectations. Zach Laine 2017-05-04 20:57:01 -05:00
  • ef079eb204 Fix empty quoted line in error_handler_t. Zach Laine 2017-05-04 20:52:19 -05:00
  • 1e05c2171c Fix misbehaving nb_json. Zach Laine 2017-05-04 20:33:42 -05:00