NimYAML Home Testing Ground Docs: Overview Serialization Modules NimYAML 2.x Source on GitHub

Module yaml/loading

Search:
Group by:

The loading API enables you to load a YAML character stream into native Nim value. Along with the dumping API, this forms the highest-level API of NimYAML.

Imports

native, parser, internal

Procs

proc load[K](input: Stream | string; target: var K) {.
    ...raises: [YamlConstructionError, IOError, OSError, YamlParserError].}
Loads a Nim value from a YAML character stream.
proc loadAs[K](input: Stream | string): K {.
    ...raises: [YamlConstructionError, IOError, OSError, YamlParserError].}
Loads the given YAML input to a value of the type K and returns it
proc loadMultiDoc[K](input: Stream | string; target: var seq[K])

Exports

YamlStreamError, endMapEvent, hash, constructObject, startSeqEvent, defineCoreTag, ignore, collectionStyle, yamlTag, construct, yTagExclamationMark, peek=, yTagValue, yTagNull, constructObject, yamlTag, CollectionStyle, EventKind, hash, representObject, YamlStream, constructChild, startSeqEvent, yTagInteger, constructObject, constructionError, yTagSet, representChild, nimyamlTagRepositoryPrefix, endDocEvent, yTagMapping, implicit, startStreamEvent, ScalarStyle, constructObject, ==, presentTag, representObject, SerializationOptions, constructObject, $, Anchor, representChild, newYamlConstructionError, defineTag, representObject, constructObject, YamlLoadingError, defaultVal, Event, constructChild, constructObject, yamlTag, startMapEvent, endStreamEvent, peek, next, $, constructObjectDefault, representObject, representObject, Mark, transient, representObject, yTagYaml, constructObject, newBufferYamlStream, ConstructionContext, TagStyle, ==, scalarEvent, yamlTagRepositoryPrefix, constructScalarItem, yTagQuestionMark, constructObject, representChild, constructObject, scalar, representObject, representObject, yTagBoolean, put, hasSpecificTag, constructChild, getLastTokenContext, yamlTag, ==, representObject, yTagPairs, constructObject, yamlTag, yTagOrderedMap, representChild, Tag, properties, mitems, aliasEvent, yamlTag, representObject, emptyProperties, put, startDocEvent, startMapEvent, constructChild, constructObject, basicInit, $, scalarEvent, endSeqEvent, initConstructionContext, yTagNimField, initYamlStream, constructObject, yTagFloat, constructObject, yamlTag, constructChild, renderAttrs, YamlSerializationError, AnchorStyle, BufferYamlStream, representChild, yamlTag, yTagString, yamlTag, collection, constructChild, represent, yTagSequence, yTagBinary, representObject, yTagMerge, constructObjectDefault, sparse, constructObject, representObject, constructObject, SerializationContext, representChild, representObject, yAnchorNone, yamlTag, Properties, initSerializationContext, representObject, YamlConstructionError, items, yamlTag, representObject, yTagTimestamp, representObject