2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-21 17:12:16 +00:00

Commit Graph

  • ab435ad08b Stop accepting characters when "\n..." or "\n---" is encountered when parsing flow plain or block literals. Zach Laine 2017-05-04 18:23:15 -05:00
  • bd56b2eaff Remove over-eager expectations in yaml_directive. Zach Laine 2017-05-04 18:21:09 -05:00
  • 2b6a1a8adc Apply context checks consistently. Zach Laine 2017-05-04 00:36:45 -05:00
  • 43d72bf54e Remove incorrect equivalence of c-printable and nb-json. Zach Laine 2017-05-04 00:28:11 -05:00
  • 952571af8d Use the proper definition of separate_in_line. Zach Laine 2017-05-04 00:26:46 -05:00
  • 2241850a94 Cruft removal. Zach Laine 2017-05-03 23:52:58 -05:00
  • 34f22752a5 Remove unnecessary spec violation. Zach Laine 2017-05-03 01:05:11 -05:00
  • 682bd04c1b Modify the horrible eoi hack to be less so, and to work in the remaining unsupported cases. Zach Laine 2017-05-03 00:29:33 -05:00
  • ec9be6a771 Don't expect escaped_percent_27NA.yml to be treated as an error. Zach Laine 2017-05-02 20:38:05 -05:00
  • 6832be2621 Update yaml-test-suite, and support its new error-tagged tests. Zach Laine 2017-05-02 20:23:14 -05:00
  • c4ea43f4e4 Grooming. Zach Laine 2017-05-02 20:14:07 -05:00
  • bb3448d250 Mark 2SXE as an expected failure. Zach Laine 2017-05-02 20:13:56 -05:00
  • 9845bf105d Fix an error in block_collection, and cerate and use a way to detect beginning of a line. Zach Laine 2017-05-02 17:53:10 -05:00
  • 7c16f82b18 Correct errors in the positions reported by error_handler_t. Zach Laine 2017-05-02 17:18:57 -05:00
  • 1b6e4be895 Use line and column info in position_iterator in the error handler. Zach Laine 2017-05-02 09:40:56 -05:00
  • 3dbd9d4dd2 Fix improperly placed separate before the closing bracket/brace in flow maps/seqs. Zach Laine 2017-05-01 21:19:41 -05:00
  • 7f8684191c Correct typo in test/CMakeLists.txt. Zach Laine 2017-05-01 21:03:16 -05:00
  • 202cb3318a Don't require test input files to contain at least one document. Zach Laine 2017-05-01 20:54:28 -05:00
  • 3f7e0cba2c Apparently <SPC> means ' ' in the input test data. Sigh again. Zach Laine 2017-05-01 20:47:49 -05:00
  • d0012784f2 Remove over-eager expectations from parsers. Zach Laine 2017-05-01 20:45:06 -05:00
  • d27b7c06cd Correct c-printable/qi::print confusion. Zach Laine 2017-05-01 20:20:55 -05:00
  • a3d3891f18 Disallow indicator characters (as opposed to flow-indicator ones) in anchor_property. This is at variance with the spec. Zach Laine 2017-05-01 19:54:23 -05:00
  • 2e6da7bc20 Correct and simplify end_of_input. Zach Laine 2017-05-01 19:21:55 -05:00
  • 6eff874647 Vexing parse avoidance. Zach Laine 2017-05-01 18:58:22 -05:00
  • 58ccb905b6 Add TODOs. Zach Laine 2017-05-01 18:56:47 -05:00
  • 4ddb35a3a9 Produce warnings and errors based on the version in %YAML directives. Zach Laine 2017-05-01 01:05:51 -05:00
  • 89ad7f83e4 Check that any BOM encounered indicates UTF-8. Zach Laine 2017-05-01 00:33:23 -05:00
  • b83fa0178c Remove mooted TODOs. Zach Laine 2017-05-01 00:31:28 -05:00
  • f685852925 Make the alias_t shared_ptr point to const. Zach Laine 2017-04-30 23:09:50 -05:00
  • 8317aeb942 typedef -> using Zach Laine 2017-04-30 21:23:42 -05:00
  • 9abcb3dd0f Alter error reporting to report errors and warnings via user-supplied callbacks; if you error callback is supplied, and exception results. Zach Laine 2017-04-30 21:25:07 -05:00
  • a79a17571c Add TODO. Zach Laine 2017-04-30 21:20:04 -05:00
  • 83f3dcda12 Fix segfaults caused by errors in value_t hashing. Zach Laine 2017-04-30 11:30:50 -05:00
  • 32c2b51b80 Allow equality comparisons of value_t with different active members. Zach Laine 2017-04-30 10:51:23 -05:00
  • 6688b864d9 Cruft removal. Zach Laine 2017-04-30 10:50:00 -05:00
  • 439bb42b52 Remove incorrect whitespace separators in block_header. Zach Laine 2017-04-30 10:39:45 -05:00
  • 98e4efbd47 Remove simplifying assumption in tests that each input file contains only one document. Zach Laine 2017-04-30 01:05:18 -05:00
  • f3c364cc85 Fix broken use of YAML_PARSER_PRINT_INDENT when BOOST_SPIRIT_DEBUG is undefined. Zach Laine 2017-04-30 01:08:05 -05:00
  • b5e25fc867 Apparently <TAB> means \t in the input test data. Sigh. Zach Laine 2017-04-30 01:07:42 -05:00
  • 17ac5cc43f Fix horribly mistaken guess at what the unexplained "m" parameter in s-l+block-indented(n,c) meant in the spec. Zach Laine 2017-04-30 00:45:38 -05:00
  • bf11a1e0ca Correct ?:- >> plain_safe case of plain_first. Zach Laine 2017-04-30 00:03:04 -05:00
  • eeadbb0502 Cruft removal. Zach Laine 2017-04-30 00:01:04 -05:00
  • 84209639c7 Serveral interconencted changes: Zach Laine 2017-04-29 20:30:36 -05:00
  • 03540bc4ea Correct auto-detected indentation on block mappings. Zach Laine 2017-04-29 18:39:56 -05:00
  • 1586e87bba Apply YAML_PARSER_PRINT_INDENT in more places. Zach Laine 2017-04-29 18:34:31 -05:00
  • 59103f136a Add very simple test to exercise the flow plain parsers. Zach Laine 2017-04-29 16:59:50 -05:00
  • 3856349be9 Add indentation printer for use in debugging throughout the parsers. Zach Laine 2017-04-29 16:58:28 -05:00
  • 8ea8946b5a Correct handling of nschar >> '#' case of plain_char. Zach Laine 2017-04-29 16:18:30 -05:00
  • e960469747 Disbale Spirit debugging for n{b,s}_char. Zach Laine 2017-04-29 16:17:10 -05:00
  • 7dbc296088 std::string -> char for several character parsers. Zach Laine 2017-04-28 21:36:31 -05:00
  • 86b5db7dc1 Disable Spirit debugging for no-op whitespace parsers. Zach Laine 2017-04-28 21:35:53 -05:00
  • 67e67afc3e Add ASan and UBSan build support. Zach Laine 2017-04-28 20:54:37 -05:00
  • 1ed16473ad Add omit[] to more places in the flow parsers; this fixes many results, but not parsing. Zach Laine 2017-04-28 00:36:57 -05:00
  • 8a5b47312e Numerous small corrections, fixing several failures. Zach Laine 2017-04-28 00:16:52 -05:00
  • 1694c7831c Correct copyright years. Zach Laine 2017-04-27 22:36:05 -05:00
  • 122b56cbd9 array_t -> seq_t object_t -> map_t anchored_object_t -> anchored_node_t object_element_t -> map_element_t Zach Laine 2017-04-27 20:51:55 -05:00
  • 14133d1954 Remove old parser cruft, and omd namespace. Zach Laine 2017-04-27 20:34:51 -05:00
  • b61041da17 Add support for expected-fail tests. Zach Laine 2017-04-27 20:03:54 -05:00
  • 534a5ceb7f Convert the current test to parse-only, and preserve the current round-trip test in a new TU, to be used later. Zach Laine 2017-04-27 19:39:37 -05:00
  • d8b04377dd Add a hash case for null_t. Zach Laine 2017-04-27 17:30:32 -05:00
  • a5c83296f4 Fix crashes in tests, due to improper checking of parse validity. Zach Laine 2017-04-27 17:20:05 -05:00
  • 777923c791 Fix GCC buld error. Zach Laine 2017-04-27 17:12:05 -05:00
  • d22c4f60b3 Remove unneeded omit[]s. Zach Laine 2017-04-27 00:22:57 -05:00
  • 9c209f5f75 std::string -> void on numerous character parsers. Zach Laine 2017-04-27 00:14:29 -05:00
  • ec1d3d5a76 Switch parse test to using new parser. Zach Laine 2017-04-26 21:25:50 -05:00
  • 8ee7d42672 Add parsers implementing YAML Character Stream section. Zach Laine 2017-04-26 21:10:04 -05:00
  • 46a0826b93 Add parsers implementing Block Styles section. Zach Laine 2017-04-25 22:16:37 -05:00
  • a9ad95203a Add parsers implementing Flow Styles section. Zach Laine 2017-04-25 22:15:45 -05:00
  • 5740ead138 Add parsers implementing Basic Structures section. Zach Laine 2017-04-25 15:02:59 -05:00
  • 074d33f125 -Wno-parentheses Zach Laine 2017-04-25 14:57:08 -05:00
  • a0a6d5f2e9 Add new lowest-level parser, implementing YAML section 5. Zach Laine 2017-04-25 13:43:54 -05:00
  • bf905eb6b3 Expand context_t to have all the contexts from the spec. Zach Laine 2017-04-24 20:34:26 -05:00
  • caaa85e07e Add debug support for recent additions. Zach Laine 2017-04-24 16:49:54 -05:00
  • 267cd4bbcf Sketch in folded scalar portion of block rewrite. Zach Laine 2017-04-24 16:33:59 -05:00
  • a57b0fc0f2 Refactor block literals to make the code clearer. Zach Laine 2017-04-24 16:03:40 -05:00
  • 7e52a66eda Sketch in literal scalar portion of block rewrite. Zach Laine 2017-04-24 14:22:01 -05:00
  • d4e4e0e3ac Include scalar.yaml in the "check" target. Zach Laine 2017-04-24 10:54:41 -05:00
  • ae74567002 Rewrite "yaml" grammar to better conform to the spec. Zach Laine 2017-04-24 10:48:34 -05:00
  • 9b09002357 Remove escaping of % and # in original .tml test files. Zach Laine 2017-04-24 10:46:33 -05:00
  • 1eb81cf4a1 Grooming. Zach Laine 2017-04-23 19:46:09 -05:00
  • 7c8e13d0a0 Sketch in proper stream parsing, including support for directives. Zach Laine 2017-04-23 19:44:05 -05:00
  • cf3459fe86 Remove last bits of previous flow implementation; breaks most tests. Zach Laine 2017-04-23 18:23:03 -05:00
  • 5d81d5a9bd Add properties parser. Zach Laine 2017-04-23 13:40:50 -05:00
  • 21cf94ef79 Rewrite flow for better conformance to the spec; fixes 7 tests. Not complete. Zach Laine 2017-04-22 15:04:34 -05:00
  • af66c67c0c Bring unquoted strings into closer conformance to the spec. Zach Laine 2017-04-22 02:51:15 -05:00
  • af8246777e More BOOST_SPIRIT_DEBUG accommodations. Zach Laine 2017-04-22 02:50:01 -05:00
  • b72d0a94b0 Allow trailing commas in flow sequences and mappings; fixes 3 tests. Zach Laine 2017-04-22 00:21:08 -05:00
  • 6f008cb19a Use GTest in parse_yaml_test.cpp for better error reporting. Zach Laine 2017-04-21 23:01:05 -05:00
  • 1533f97c06 Use make_test_suite_yaml.py to update the .yml files in test_files when Python is found on the system; check in each resulting file and add it as a test. Zach Laine 2017-04-21 22:20:31 -05:00
  • 44da7cae41 Add make_test_suite_yaml.py. Zach Laine 2017-04-21 21:23:16 -05:00
  • 51a02c96e7 Add github.com/yaml/yaml-test-suite.git as a submodule. Zach Laine 2017-04-21 20:46:46 -05:00
  • dc36d8dbed Comment out failing tests. Zach Laine 2017-04-21 20:46:04 -05:00
  • 8fd0bab12e Re-enable Spirit debug output. Zach Laine 2017-04-20 22:30:08 -05:00
  • 033b339c76 Cruft removal -- Jamfile, readmes, and test cruft. Zach Laine 2017-04-20 21:09:22 -05:00
  • 6137003e7f Build parser into its own TU. Zach Laine 2017-04-20 20:58:28 -05:00
  • 14baf0e2e4 Add CMake build, GTest, and Google Bench. Zach Laine 2017-04-20 20:19:11 -05:00
  • d550e0f76b Fix round-trip tests by storing object_t members in read-order. Zach Laine 2017-04-20 19:35:53 -05:00
  • ad11d4ecab BOOST_FOREACH -> range-based for Zach Laine 2017-04-20 01:00:59 -05:00
  • 25211f09db Add round-trip testing (not passing yet). Zach Laine 2017-04-20 00:50:03 -05:00
  • 1d52f3f1b7 Promote testing parse() to a part of the parser interface; make it header-only or compiled via a macro. Zach Laine 2017-04-20 00:38:22 -05:00