yaml-for-bend
Releases (2)
Definitions (583)
value.bend
- def same.bool
- def eqWhether two values are the same: same kinds, same texts, same items and entries in the same order.
- def canonA value as text that two values share only when they are the same, to look keys up by.
- def get.hit
- def is_text
- def get.go
- def getThe value under the string key +key+, if +v+ is a mapping that has it.
- def find.go
- def findThe value under any key: get(v, "a") is find(v, Str{"a"}).
- def atThe value under +key+, or null.
- def items
- def entries
- def keys.go
- def keys
- def textA string's text.
- def is_null
- def hex.digit
- def json.char
- def json.chars
- def json.strA JSON string.
- def zero.point
- def json.floatA float in JSON's form: "+.5e3" is 0.5e3; infinity and NaN stay as YAML writes them, since JSON has no word for them.
- def key.jsonA key's JSON: a string as it is, anything else as a string of its JSON.
- def is_str
- def json.go
- def jsonA value as JSON text, on one line.
yaml.bend
- def when
- def doc.vals
- def all.of
- def one.of
- def sizedA text past the size limit is refused before it is read.
- def docs
- def load.all.withEvery document in +text+ under schema +s+, within limits +lim+.
- def load.withThe one document in +text+ under schema +s+, within limits +lim+: null when there is none, an error when there are more.
- def loadThe one document in +text+ under the YAML 1.2 Core schema, within the default limits: null when there is none, an error when there are more.
- def load.allEvery document in +text+, under the Core schema.
- def load.v11load, reading the YAML 1.1 types.
- def load.all.v11load.all, reading the YAML 1.1 types.
- def limitsThe default limits: C.Limits{size, depth, aliases, digits} with a text of at most 1048576 characters, collections nested at most 256 deep, aliases copying at most 100000 nodes into a document, and numbers in bases other than ten at most 1000 characters long.
- def eventsThe events of +text+, as the parser emits them, and the error that ended them early, if one did.
- def dump+v+ as YAML text in block style, which load reads back as +v+.
- def dump.allValues as a stream of documents, each after "---".
yaml11.bend
- def when
- def timestamp
- def is_true
- def is_false
- def d
- def digits_
- def bin.pat
- def oct.pat
- def dec.pat
- def hex.pat
- def sexa.part
- def sexa.int.pat
- def float.pat
- def sexa.float.pat
- def ymd.pat
- def blank
- def time.pat
- def is_timestamp
- def no.seps
- def has_digit
- def sexa.goBase 60: each part is the next digit, "1:30" is 90.
- def sexa.big
- def int.of.digits
- def int.textAn integer's decimal text; +s+ already matched one of the integer forms.
- def is_int
- def in.baseWhether +s+ is an integer or float in a base other than ten, which takes time that grows with the square of its length to read.
- def before.dot
- def after.dot
- def sexa.floatA base-60 float: the whole part in base 60, then the fraction.
- def float.of
- def int.of
- def or.int
- def or.float
- def plainAn untagged plain scalar.
- def int.yaml
- def float.yaml!!float: a float, or an integer written as one ("3" is 3.0).
- def bool.yaml
- def knownThe tags whose text YAML 1.1 reads: "!", !!str, !!merge, !!null, !!bool, !!int and !!float.
- def readA scalar's text read by a known tag, in its 1.1 forms: !!merge is the merge key, "!" and !!str are a string.
- def read.or.keepA tag that isn't known is kept with the text, as data: no tag runs code.
- def taggedA scalar with a tag.