src/entry.bend checks
raw source on the hub · import bend-toon-codec@0.1.0.0/src/entry.bend as Entry
7 imports
import Base import ./json.bend as J import ./text.bend as T import ./split.bend as S import ./prim.bend as P import ./head.bend as Hd import ./hdr.bend as H
Types
type Ent source · line 12 · raw
Data
ENotEnt
EVal@k:String -> @v:0x12996a27cbeef5e5ba1e8cd909be0e05/src/json.Json -> Ent
EOpen@k:String -> Ent
EArr@k:Maybe<&2, String> -> @h:0x12996a27cbeef5e5ba1e8cd909be0e05/src/hdr.Hdr -> Ent
Definitions
def val.done source · line 18 · raw
@+k:String -> @+r:Result<&2, &2, String, 0x12996a27cbeef5e5ba1e8cd909be0e05/src/json.Json> -> Result<&2, &2, String, Ent>
def val.pick source · line 25 · raw
@+blank:Bool -> @+arr:Bool -> @+k:String -> @+t:String -> Result<&2, &2, String, Ent>
def val source · line 35 · raw
@+k:String -> @+v:String -> Result<&2, &2, String, Ent>
The text after the colon of key:.
def hdr.done source · line 38 · raw
@+k:Maybe<&2, String> -> @+r:Result<&2, &2, String, 0x12996a27cbeef5e5ba1e8cd909be0e05/src/hdr.Hdr> -> Result<&2, &2, String, Ent>
def quoted.pick source · line 45 · raw
@+colon:Bool -> @+brack:Bool -> @+k:String -> @+rest:String -> Result<&2, &2, String, Ent>
def quoted.rest source · line 55 · raw
@+k:String -> @+rest:String -> Result<&2, &2, String, Ent>
quoted key, then what follows its closing quote
def quoted source · line 58 · raw
@+r:Result<&2, &2, String, 0x12996a27cbeef5e5ba1e8cd909be0e05/src/text.Cut> -> Result<&2, &2, String, Ent>
def kv source · line 66 · raw
@+text:String -> @+ci:U32 -> Result<&2, &2, String, Ent>
The key text before the colon at ci, and the value after it.
def key.opt.pick source · line 69 · raw
@+blank:Bool -> @+k:String -> Maybe<&2, String>
def key.opt source · line 76 · raw
@+raw:String -> Maybe<&2, String>
def hdr.bad source · line 81 · raw
@+nocolon:Bool -> @+strict:Bool -> @+e:String -> @+text:String -> @+ci:U32 -> Result<&2, &2, String, Ent>
A header that did not parse: with no colon at all the line is no entry; with one, strict mode reports the header and lenient mode reads a literal key.
def hdr.at source · line 90 · raw
@+strict:Bool -> @+text:String -> @+ci:U32 -> @+bi:U32 -> @+r:Result<&2, &2, String, 0x12996a27cbeef5e5ba1e8cd909be0e05/src/hdr.Hdr> -> Result<&2, &2, String, Ent>
def bare.pick source · line 97 · raw
@+strict:Bool -> @+bfirst:Bool -> @+nocolon:Bool -> @+text:String -> @+ci:U32 -> @+bi:U32 -> Result<&2, &2, String, Ent>
def bare source · line 106 · raw
@+strict:Bool -> @+text:String -> Result<&2, &2, String, Ent>
def parse.pick source · line 109 · raw
@+isq:Bool -> @+strict:Bool -> @+text:String -> Result<&2, &2, String, Ent>
def parse source · line 117 · raw
@+strict:Bool -> @+text:String -> Result<&2, &2, String, Ent>
Parse a line's content (after indentation or after a list hyphen).