def take
import yaml-for-bend@0.1.1.0/parse.bend as Parseimport Base
import yaml-for-bend@0.1.1.0/token.bend as T
130# Takes the next token.
131def take(ps: Ps) -> Ps:
132 match ps:
133 case Ps{toks, state, states, tags, out}:
134 Ps{List.drop(&2, T.Token, toks, 1n), state, states, tags, out}