type Yaml

yaml-for-bend@0.1.1.0 · value.bend:5

import yaml-for-bend@0.1.1.0/value.bend as Value
import Base

5# A value. An integer is its decimal text ("-26"), so any size fits. A float
6# is decimal text too, since Bend has no 64-bit floats: as written under the
7# Core schema ("1e3", "+.5"), and exact under YAML 1.1 ("1_000.50" is
8# "1000.5"); infinity and NaN are ".inf", "-.inf" and ".nan". A mapping keeps its entries in order.
9# Tagged is a value whose tag the schema doesn't resolve: "!point", or
10# "tag:yaml.org,2002:binary".
11type Yaml is Data:
12  Null{}
13  Boolean{on: Bool}
14  Int{text: String}
15  Float{text: String}
16  Str{text: String}
17  Seq{items: List<&2, Yaml>}
18  Mapping{entries: List<&2, Entry>}
19  Tagged{tag: String, val: Yaml}

Uses (4)

Used by (81)