Regex module

Engine

structextensionSource

Fields

pattern: string
program: Program
reverse: Program
forward: Dfa
backward: Dfa
onepass: OnePass
the one-pass capture table, if the pattern has one (onepass.ok)
fixed_length: := -1
every match is this many bytes long: no need to look for the start
pool: *Memory_Pool.Pool
holds the parse tree, the programs and this struct; null for an engine built at compile time
origin: *Engine
Clones (clone) copy the programs and the one-pass table by value, which shares what they point to, and have DFAs of their own.
refs: s64
on the origin: the origin itself plus its live clones; the last one to be freed releases the pool
frozen: bool
built at compile time: both DFAs are complete and the programs are constants

See also