def tokens.go

emerging-ezjson@1.3.0.0 · src/lex.bend:409

import emerging-ezjson@1.3.0.0/src/lex.bend as Lex
import Base

409# match only the text, so a literal unrolls. The tail is where the next span starts
410def tokens.go(txt: String, st: Scan) -> List<&2, Tok>:
411  match txt:
412    case SNil{}:
413      tokens.end(st)
414    case SCon{+c, +t}:
415      tokens.go(t, tokens.feed(c, t, st))

Uses (6)

Used by (1)