def text.go
import ezsys@0.1.0.0/src/text.bend as Textimport Base
149# the scan
150def text.go(
151 tpl: String,
152 mode: Mode,
153 +open: String,
154 +close: String,
155 +pairs: text.Pairs()
156) -> String:
157 match tpl:
158 case SNil{}:
159 text.end(mode, open)
160 case SCon{+hd, +tl}:
161 text.join(text.step(hd, tl, mode, open, close, pairs),
162 next => text.go(tl, next, open, close, pairs))