* 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
* 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.
Updated type hinting for YAML 1.2.
* previously outdated regexes from YAML 1.1 were used.
* removed special cases for leading zeros that are not part of YAML 1.2.
* updated literal regexes for infinity, NaN and boolean values.
* added tests for type hinting
Co-authored-by: theamarin <theamarin@thecreation.de>
* Renamed some symbols for consistency, fixes#6:
- yamlStartSequence -> yamlStartSeq
- yamlEndSequence -> yamlEndSeq
- yamlStartDocument -> yamlStartDoc
- yamlEndDocument -> yamlEndDoc
- yTagMap -> yTagMapping
* Improved code formatting at some places
* Fixed code documentation at some places
* Added generic objects to TODO list
* Removed obsolete parsing tests, these are superseeded
by yaml-dev-kit test suite integration
* use `[]=` instead of add() to add JSON nodes to an object.
add() seems to have problems with expanding.
* renamed bench/json.nim to bench/jsonBench.nim to avoid confusion
with Nim's stdlib json.nim
* Added serialization.txt to doc
* Fixed rendering problem in api.txt
* Use explicit tag when ref type renders to a scalar that can be
parsed to !!null
* Added test cases for this ref type fix
* Some typo fixes in code
* nim documentation now generates API doc with source links
* presenter now uses "" if a string starts with @ or `
* Removed some outdated stuff