def AaGLex.step.mode
bend-osdev-apparmor@0.1.0.0 · glob.bend:652
import bend-osdev-apparmor@0.1.0.0/glob.bend as Glob
import Base
652
653def AaGLex.step.mode(m: AaGMode, st: AaGLex, +h: U32, +next: U32) -> AaGLex:
654 match m:
655 case AaGMNorm{}:
656 AaGLex.norm(AaGCh.of(h), h, st)
657 case AaGMEsc{}:
658 AaGLex.emit(st, AaGFTok{AaGChar{h}}, h)
659 case AaGMStar{}:
660 AaGLex.step.star(U32.is_eq(h, 42), st, h, next)
661 case AaGMClass{neg, first, rs, pend, dash}:
662 AaGClass.step(AaGK.of(h), h, st, neg, first, rs, pend, dash)