def close_any

bolt@1.27.0.0 · src/syntax/tree.bend:262

import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

262# a close bracket, or a run of `>`, closes what it can
263def close_any(+stack: List<&2, Frame>, +close: Lex.Tok) -> List<&2, Frame>:
264  Lex.Tok{k, +t, +l, +c} = close
265  close_any.at(String.starts_with(t, ">"), stack, close, t, l, c)

Uses (5)

Used by (1)