def AaLex.step.mode

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

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

293def AaLex.step.mode(m: AaLxMode, +st: AaLex, +h: U32, +next: U32) -> AaLex:
294  match m:
295    case AaLxSpace{}:
296      AaLex.space(st, h)
297    case AaLxWord{acc, depth}:
298      AaLex.word.go(AaLxCh.of(h), st, acc, depth, h, next)
299    case AaLxQuote{acc, esc}:
300      AaLex.quote.go(esc, st, acc, h)
301    case AaLxHash{+n}:
302      AaLex.hash.go(Nat.is_lt(n, 7n), st, n, h)
303    case AaLxComment{}:
304      AaLex.comment(st, h)

Uses (10)

Used by (1)