def close_any.at
import bolt@1.27.0.0/src/syntax/tree.bend as Treeimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
246# the close a bracket makes, given whether it is a run of `>`: a match, so
247# only the side taken runs
248def close_any.at(
249 +gt: Bool,
250 +stack: List<&2, Frame>,
251 +close: Lex.Tok,
252 +tt: String,
253 +ll: U32,
254 +cc: U32
255) -> List<&2, Frame>:
256 match gt:
257 case True{}:
258 close_gts(String.to_list(tt), stack, ll, cc)
259 case False{}:
260 close_tok(stack, close)