def rev.decode.go

gralha-xml-doc@0.1.0.1 · xml.bend:49

import gralha-xml-doc@0.1.0.1/xml.bend as Xml
import Base

49def rev.decode.go(st: Step, +out: String) -> String:
50  match st:
51    case Step{kind, ch, name, rest}:
52      match kind:
53        case 0: rev.decode.go(rev.next(rest), SCon{Chr{ch}, out})
54        case 1: rev.decode.go(rev.next(rest), entity.push(entity.of(name), out))
55        case 2: rev.decode.go(rev.next(rest), entity.push(name, SCon{Chr{59}, out}))
56        case _: out

Uses (10)

Used by (1)