def AaLex.hash.go
bend-osdev-apparmor@0.1.0.0 · token.bend:286
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
286def AaLex.hash.go(more: Bool, +st: AaLex, +n: Nat, +h: U32) -> AaLex:
287 match more:
288 case True{}:
289 Bool.pick(AaLex, U32.is_eq(h, AaLex.inc(n)), AaLex.mode(st, AaLxHash{1n+n}), AaLex.comment(st, h))
290 case False{}:
291 Bool.pick(AaLex, Bool.or(AaLxCh.ws(h), Bool.or(U32.is_eq(h, 10), Bool.or(U32.is_eq(h, 60), U32.is_eq(h, 34)))), AaLex.space(AaLex.push(st, AaTWord{X.AaText.of_string("#include"), AaLex.line(st)}), h), AaLex.comment(st, h))