def finish
import bolt@1.27.0.0/src/syntax/lex.bend as Leximport Base
315# the tokens once the chars are over, the last one flushed
316def finish(st: St) -> List<&2, Tok>:
317 St{mode, kind, line, col, sl, sc, buf, toks} = st
318 List.reverse(&2, Tok, flush(kind, sl, sc, buf, toks))