def value.alone

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

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

1391def value.alone(+st: Sc) -> Step:
1392  when(Step, sc.in_flow(st), u => Go{value.rest(st)},
1393    u => when(Step, sc.allowed(st), u => Go{value.rest(roll(st, sc.col(st), None{}, T.BMapStart{}, sc.at(st)))},
1394      u => fail(st, "mapping values are not allowed in this context", sc.at(st))))

Uses (12)

Used by (1)