def of_tokens

bolt@1.27.0.0 · src/syntax/outline.bend:527

import bolt@1.27.0.0/src/syntax/outline.bend as Outline
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

527# the top-level items of a source whose tokens are already lexed, in order
528def of_tokens(text: String, toks: List<&2, Lex.Tok>) -> List<&2, Item>:
529  finish(run(String.lines(text), St{Top{}, 0, [], []}, inside(toks)))

Uses (10)

Used by (3)