Commit Graph

20 Commits

Author SHA1 Message Date
Felix Krause 879c7adfc0 Updated documentation. Fixed CI 2023-08-30 22:48:58 +02:00
Felix Krause f60725fc93 Made loading work at compile time
* dumping doesn't work at CT
 * timestamps don't work at CT
 * aliases don't work at CT
 * renamed tserialization -> tnative to mirror rename of native.nim file
 * added comptime tests to tnative, currently only execute when doing
   nim nativeTests, because of compiler bug
 * Fixes #70, #91
2023-08-30 21:14:31 +02:00
Felix Krause 189844a72b Rewrote large parts of presenter
* PresentationOptions has gained more fine-tuning options:
   * directivesEnd: specifies when `---` is written. ref #135
   * containers: specifies whether containers use block or flow style
   * suppressAddrs: if set, suppresses output of attributes
   * quoting: specifies how strings should be quoted
   * condenseFlow: specifies whether flow sequences should be on a
     single line
   * explicitKeys: specifies whether mapping keys should always have '?'
 * PresentationStyle is now a list of presets that set
   multiple options in PresentationOptions.
 * Does not output trailing spaces anymore. ref #135
 * Writes compact notation, i.e. a mapping in a sequence starts on the
   line with the sequence's `-`, unless attributes are written
 * Added tests for the presenter
 * Existing code might change behavior because of whitespace, `---` and
   compact notation. The API has been extended so that existing code is
   affected as little as possible.
2023-07-31 19:16:24 +02:00
Felix Krause d80b6fb52e improved webdocs; added nix flake for webdocs 2022-06-04 01:45:41 +02:00
Felix Krause 0f2dba1a65 make tests green again; final fix for 0.17.0 2017-07-10 20:31:40 +02:00
Felix Krause c2041b44d1 Updated tests to use yaml-test-suite repo url 2016-12-12 19:29:39 +01:00
Felix Krause 6a3d876f7e Generate testing.html with rst
* use same html template as other pages
 * Also improved .gitignore
2016-10-27 18:57:32 +02:00
Felix Krause 0f2e077b87 Added automatic test for quickstart snippets
* There are errors which indicate real bugs!
2016-10-08 23:35:33 +02:00
Felix Krause 31ac201e41 doc: extracted examples to own files 2016-10-08 18:38:27 +02:00
Felix Krause 8b3f8f5282 Made test names more consistent 2016-09-20 19:22:31 +02:00
Felix Krause 167c25af72 Added benchmark for processing YAML input 2016-03-20 10:32:14 +01:00
Felix Krause 778799e4ff Added option to validate against YAML test suite 2016-03-04 19:10:48 +01:00
Felix Krause 40e3e32f5d Build proper HTML documentation 2016-01-13 23:19:06 +01:00
Felix Krause 7cabfc652e Benchmark against libyaml.
* Took libyaml binding from nimlets and used it in bench
 * Use shallow copy for scalar content in parser
2016-01-13 21:01:50 +01:00
Felix Krause dc1a3c0fe2 Can construct basic types and custom objects
* Added construct() procs for some basic types
 * Added macro make_serializable
2015-12-29 15:09:37 +01:00
Felix Krause d828f4ddc5 Added benchmark. Fixed processing empty flow sets. 2015-12-29 00:14:47 +01:00
Felix Krause 24f9cf167f Added doc generation task to config.nims 2015-12-28 22:13:14 +01:00
Felix Krause 2c4e681f0b Finished JSON parser. Restructuring.
* Made JSON parser resolve anchors and aliases
 * Moved exported consts and types to yaml.nim
2015-12-26 13:16:57 +01:00
Felix Krause e254d0f282 Made it work under Windows 2015-12-22 14:13:55 +01:00
Felix Krause a7c159933b Initial commit 2015-11-27 23:42:11 +01:00