def h.bseq.entry

yaml-for-bend@0.1.1.0 · parse.bend:481

import yaml-for-bend@0.1.1.0/parse.bend as Parse
import Base
import yaml-for-bend@0.1.1.0/token.bend as T

481def h.bseq.entry(+m: T.Mark, +t: T.Token, +ps: Ps) -> PStep:
482  when(PStep, tok.is(t, BENTRY()), u => PGo{take(goto(ps, SBSeqAfter{m, tok.end(t)}))},
483    u => when(PStep, tok.is(t, BEND()), u => PGo{take(emit(pop(ps), SeqEndEv{}, tok.start(t)))},
484      u => fail(ps, "did not find expected '-' indicator while parsing a block collection", m)))

Uses (17)

Used by (1)