def flow.start

yaml-for-bend@0.1.1.0 · scan.bend:1354

import yaml-for-bend@0.1.1.0/scan.bend as Scan
import Base
import yaml-for-bend@0.1.1.0/token.bend as T

1354# "[" or "{", unless flow collections already nest as deep as allowed.
1355def flow.start(+st: Sc, t: T.Tok) -> Step:
1356  when(Step, Nat.is_ge(sc.flow(st), sc.max(st)), u => fail.limit(st, "found nesting deeper than the depth limit of " ++ Nat.show(sc.max(st))),
1357    u => then(save.key(st), st => Go{single(sc.allow(flow.push(st), True{}), t)}))

Uses (16)

Used by (1)