def scan
import yaml-for-bend@0.1.1.0/scan.bend as Scanimport Base
import yaml-for-bend@0.1.1.0/token.bend as T
1528# The tokens of +text+, from StreamStart to StreamEnd, or to a Broken token
1529# at the first error. Flow collections may nest +max+ deep.
1530def scan(text: String, max: Nat) -> List<&2, T.Token>:
1531 +s = strip.bom(lf(text))
1532 scan.start(unprintable(s, T.Mark{0n, 0n, 0n}), s, max)