def atom.pick

cswap-bend-cli@0.1.0.0 · fmt/yscal.bend:115

import cswap-bend-cli@0.1.0.0/fmt/yscal.bend as Yscal
import Base
import cswap-bend-cli@0.1.0.0/fmt/ylex.bend as L

115def atom.pick(isq: Bool, isb: Bool, ist: Bool, +s: String) -> L.JR():
116  match isq isb ist:
117    case True{} _ _:
118      quoted.tok(L.token_len(s), s)
119    case False{} True{} _:
120      Fail{"block scalars are not supported"}
121    case False{} False{} True{}:
122      Fail{"anchors, aliases and tags are not supported"}
123    case False{} False{} False{}:
124      Done{L.resolve(uncomment(s))}

Uses (8)

Used by (1)