def code.toks

bolt@1.27.0.0 · src/rules/tokens.bend:32

import bolt@1.27.0.0/src/rules/tokens.bend as Tokens
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

32# the tokens, each string literal cut to its opening quote
33def code.toks(ts: List<&2, Lex.Tok>) -> List<&2, Lex.Tok>:
34  match ts:
35    case Nil{}:
36      Nil{}
37    case Con{h, t}:
38      code.tok(h) <> code.toks(t)

Uses (3)

Used by (1)