ref: f507c7ee81391e004d492d1095ca4263d3ee1830
dir: /types.myr/
use std pkg regex = type status = union `Earlystop `Unbalanced `Emptyparen `Badrep `Noimpl ;; type regex = struct pat : byte[:] /* VM state */ proglen : std.size prog : reinst[:] nthr : std.size thr : rethread#[:] str : byte[:] strp : std.size matched : std.option(rethread#) ;; type rethread = struct uid : std.size ip : std.size ;; type reinst = union /* direct consumers */ `Ibyte byte `Irange [byte, byte] `Idot `Imatch /* found the end of the expr */ `Ifork [std.size, std.size] `Ijmp std.size ;; ;;