Module engine

Module engine 

Source
Expand description

Engine module - coordinates regex execution.

Selects the optimal execution strategy based on pattern properties.

Structs§

Capabilities
Runtime capabilities.
CompiledRegex
A compiled regex ready for execution.

Enums§

EngineType
The selected engine type.

Functions§

compile
Compiles an NFA into an executable regex (legacy API). Note: This cannot use Shift-Or as it requires HIR for Glushkov construction. Also cannot use prefilter (requires HIR for literal extraction).
compile_from_hir
Compiles an HIR into an executable regex. This is the preferred API as it can use Shift-Or for small patterns and prefilters for SIMD-accelerated candidate detection.
compile_with_jit
Compiles an HIR with JIT compilation for maximum performance.
compile_with_pikevm
Compiles an HIR using PikeVM (default, no JIT).
select_engine
Selects the optimal engine for a given NFA (legacy API). Note: For Shift-Or selection, use select_engine_from_hir instead.
select_engine_from_hir
Selects the optimal engine for a given HIR. This is the preferred API as it can properly evaluate Shift-Or compatibility using Glushkov construction.