type Sc

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

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

35# The scanner: the cursor, the block indentation plus one (0 outside any
36# block collection) and the ones it returns to, how deep in flow collections
37# it is, whether a simple key may start here, one possible key per flow
38# level (the block level last), the tokens so far (newest first) and their
39# count, and how deep flow collections may nest.
40type Sc is Data:
41  Sc{cur: Cur, ind: Nat, inds: List<&2, Nat>, flow: Nat, allowed: Bool, tab: Bool, keys: List<&2, SKey>, out: List<&2, T.Token>, n: Nat, max: Nat}

Uses (6)

Used by (96)