ref: e189f008d5465b2ec1e0d3a9b3281d7014c6e7c7
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 ;; ;;