def AaGLex.star.go

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

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

504# a star or double star: after a '/', and before what `next` says, it stands
505# for one or more characters (a ? in front of it)
506def AaGLex.star.go(seg: Bool, st: AaGLex, t: AaGTok) -> AaGLex:
507  match seg:
508    case True{}:
509      AaGLex.emit(AaGLex.emit(st, AaGFTok{AaGAny{}}, 42), AaGFTok{t}, 42)
510    case False{}:
511      AaGLex.emit(st, AaGFTok{t}, 42)

Uses (5)

Used by (2)