def AaLex.finish.go

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

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

311def AaLex.finish.go(m: AaLxMode, +st: AaLex) -> AaLex:
312  match m:
313    case AaLxSpace{}:
314      st
315    case AaLxWord{acc, depth}:
316      AaLex.word_end(st, acc)
317    case AaLxQuote{acc, esc}:
318      AaLex.fail(st)
319    case AaLxHash{n}:
320      Bool.pick(AaLex, Nat.is_eq(n, 7n), AaLex.push(st, AaTWord{X.AaText.of_string("#include"), AaLex.line(st)}), st)
321    case AaLxComment{}:
322      st

Uses (10)

Used by (1)