def AaLex.quote.go

bend-osdev-apparmor@0.1.0.0 · token.bend:248

import bend-osdev-apparmor@0.1.0.0/token.bend as Token
import Base
import bend-osdev-apparmor@0.1.0.0/text.bend as X

248def AaLex.quote.go(esc: Bool, +st: AaLex, +acc: List<&2, U32>, +h: U32) -> AaLex:
249  match esc:
250    case True{}:
251      AaLex.mode(st, AaLxQuote{Con{h, acc}, False{}})
252    case False{}:
253      Bool.pick(AaLex, U32.is_eq(h, 92), AaLex.mode(st, AaLxQuote{Con{h, acc}, True{}}), Bool.pick(AaLex, U32.is_eq(h, 34), AaLex.push(st, AaTQuoted{X.AaText.rev(acc), AaLex.line(st)}), Bool.pick(AaLex, U32.is_eq(h, 10), AaLex.mode(AaLex.bump(st), AaLxQuote{Con{h, acc}, False{}}), AaLex.mode(st, AaLxQuote{Con{h, acc}, False{}}))))

Uses (13)

Used by (1)