def rt.next

bend-kit-regex@0.8.0.0 · regex.bend:2291

import bend-kit-regex@0.8.0.0/regex.bend as Regex
import Base

2291# idle: only the sets live at a fresh start wait on c, and c starts none of them.
2292def rt.next(idle: Bool, asc: Maybe<&2, Asc>, a: Array<U32>, +len: U32, +j: U32, +sets: List<&2, Bit>, +atn: U32, +hit1: Bool, +cur: U32, +c: U32) -> Rt:
2293  match idle:
2294    case True{}:
2295      match asc:
2296        case None{}:
2297          rt.at(dec(a, len, j), j, Bs{atn, False{}, hit1})
2298        case Some{+m}:
2299          rt.skip(skip.from(a, len, j, m), len, atn, hit1)
2300    case False{}:
2301      rt.at(dec(a, len, j), j, bits.step(sets, cur, c, Bs{atn, False{}, hit1}))

Uses (14)

Used by (1)