def token.go

ezmcp@0.1.0.0 · src/openapi.bend:226

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base

226def token.go(cs: String) -> String:
227  match cs:
228    case SNil{}:
229      SNil{}
230    case SCon{'~', SCon{'1', rest}}:
231      SCon{'/', token.go(rest)}
232    case SCon{'~', SCon{'0', rest}}:
233      SCon{'~', token.go(rest)}
234    case SCon{ch, rest}:
235      SCon{ch, token.go(rest)}

Uses (6)

Used by (1)