Parse.h.state: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/parse.bend as Parse Lines 575-634 of yaml-for-bend@0.1.1.0/parse.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/parse.bend&start_line=575&end_line=634 import Base import yaml-for-bend@0.1.1.0/token.bend as T def h.state(s: St, +t: T.Token, +ps: Ps) -> PStep: match s: case SStreamStart{}: PGo{take(goto(emit(ps, StreamStartEv{}, tok.start(t)), SFirstDoc{}))} case SFirstDoc{}: h.doc.start(True{}, t, ps) case SDocStart{ended}: h.doc.start(ended, t, ps) case SDocContent{}: h.doc.content(t, ps) case SDocEnd{}: h.doc.end(t, ps) case SNode{block, indentless, anchor, tag, start}: h.node(block, indentless, anchor, tag, start, t, ps) case SBSeqFirst{}: PGo{take(goto(ps, SBSeqEntry{tok.start(t)}))} case SBSeqEntry{m}: h.bseq.entry(m, t, ps) case SBSeqAfter{m, e}: h.bseq.after(m, e, t, ps) case SIndentless{m}: h.indentless(m, t, ps) case SIndentlessAfter{m, e}: h.indentless.after(m, e, t, ps) case SBMapFirst{}: PGo{take(goto(ps, SBMapKey{tok.start(t)}))} case SBMapKey{m}: h.bmap.key(m, t, ps) case SBMapAfterKey{m, e}: h.bmap.after.key(m, e, t, ps) case SBMapValue{m}: h.bmap.value(m, t, ps) case SBMapAfterValue{m, e}: h.bmap.after.value(m, e, t, ps) case SFSeqFirst{}: PGo{take(goto(ps, SFSeqEntry{tok.start(t), True{}}))} case SFSeqEntry{m, first}: h.fseq.entry(m, first, t, ps) case SFSeqMapKey{m}: h.fseq.map.key(m, t, ps) case SFSeqMapValue{m}: h.fseq.map.value(m, t, ps) case SFSeqMapAfterValue{m, e}: h.fseq.map.after.value(m, e, t, ps) case SFSeqMapEnd{m}: h.fseq.map.end(m, t, ps) case SFMapFirst{}: PGo{take(goto(ps, SFMapKey{tok.start(t), True{}}))} case SFMapKey{m, first}: h.fmap.key(m, first, t, ps) case SFMapAfterKey{m, e}: h.fmap.after.key(m, e, t, ps) case SFMapValue{m}: h.fmap.value(m, t, ps) case SFMapAfterValue{m, e}: h.fmap.after.value(m, e, t, ps) case SFMapEmpty{m}: h.fmap.empty(m, t, ps) case SEnd{}: PStop{ps, None{}} Uses (33): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=Ev https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=PStep https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=Ps https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=St https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=emit https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=goto https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.bmap.after.key https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.bmap.after.value https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.bmap.key https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.bmap.value https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.bseq.after https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.bseq.entry https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.doc.content https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.doc.end https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.doc.start https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.fmap.after.key https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.fmap.after.value https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.fmap.empty https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.fmap.key https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.fmap.value https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.fseq.entry https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.fseq.map.after.value https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.fseq.map.end https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.fseq.map.key https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.fseq.map.value https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.indentless https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.indentless.after https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=h.node https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=take https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=tok.start https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/token.bend&name=Token