def bits.go
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport Base
1247# hit1: a match starts and ends at the end of the text, so end starts from it.
1248def bits.go(idle: Bool, +sets: List<&2, Bit>, +atn: U32, +hit1: Bool, +cur: U32, +c: U32) -> Bs:
1249 match idle:
1250 case True{}:
1251 Bs{atn, False{}, hit1}
1252 case False{}:
1253 bits.step(sets, cur, c, Bs{atn, False{}, hit1})