type Val

emerging-eztoml@0.9.0.0 · main.bend:37

import emerging-eztoml@0.9.0.0/main.bend as EmergingEztoml
import Base

37# one TOML value. Tables remember the dotted path they were opened under.
38# An inline table is VInl. An array of tables is VAots, and each element is
39# VAot. VPair is a key in a table. VSpan is a plain string: the first n
40# characters of a source suffix.
41type Val is Data:
42  VStr{text: String}
43  VSpan{src: String, n: U32}
44  VInt{sign: Sign, digits: String}
45  VFlo{sign: Sign, text: String}
46  VBool{bit: Bool}
47  VWhen{when: When}
48  VArr{items: List<&2, Val>}
49  VInl{rows: List<&2, Val>}
50  VHead{path: String, rows: List<&2, Val>}
51  VAot{path: String, rows: List<&2, Val>}
52  VAots{path: String, elems: List<&2, Val>}
53  VPair{name: String, val: Val}

Uses (6)

Used by (144)