def AaGLex.norm

bend-osdev-apparmor@0.1.0.0 · glob.bend:535

import bend-osdev-apparmor@0.1.0.0/glob.bend as Glob
import Base

535def AaGLex.norm(k: AaGCh, +h: U32, st: AaGLex) -> AaGLex:
536  match k:
537    case AaGCLit{}:
538      AaGLex.emit(st, AaGFTok{AaGChar{h}}, h)
539    case AaGCEsc{}:
540      AaGLex.set_mode(st, AaGMEsc{})
541    case AaGCStar{}:
542      AaGLex.set_mode(st, AaGMStar{})
543    case AaGCAny{}:
544      AaGLex.emit(st, AaGFTok{AaGAny{}}, 63)
545    case AaGCClass{}:
546      AaGLex.set_mode(st, AaGMClass{False{}, True{}, Nil{}, None{}, False{}})
547    case AaGCOpen{}:
548      AaGLex.open(st)
549    case AaGCComma{}:
550      AaGLex.comma(st)
551    case AaGCClose{}:
552      AaGLex.close(st)
553    case AaGCBad{}:
554      AaGLex.fail(st)
555    case AaGCSlash{}:
556      AaGLex.slash(st)

Uses (16)

Used by (2)