* 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
* moved load procs to yaml/loading.nim
* moved input YamlStream into ConstructionContext
* made ConstructionContext a non-ref object
* harmonized code style & comments
* renamed yaml/serialization.nim to yaml/native.nim
* 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
* Added raises pragma to every proc in yaml.nim
* Properly encapsulate exceptions from YamlStreams
* Discovered a Nim compiler bug and added a workaround
* Added possibility to query line, column and line content from
YamlParser
* Updated rst documentation
* Actually call callback in fastparse if available
* Fixed parsing YAML version
* fastparse now used for everything
* private/[lexer|parser].nim gone
* Made fastparse use YamlParser object
* Got all tests working with fastparse
* Some more smaller changes to API
* YamlParserEvent -> YamlStreamEvent
* YamlStreamEvent is no longer a `ref` object. Test suite now
runs in a small fraction of a second (compared to several
seconds before)
* Introduced YamlStream