Skip to main content

Module compile

Module compile 

Source
Expand description

The production compiler: a validated arena SchemaIR is lowered directly to a byte-level pattern and handed to the shared anchored-DFA builder. It consumes the typed nodes; it never re-parses JSON and never transports a regex string across the FFI.

Structs§

CompileCounters
Aggregate compiler work counts. Counters that a backend cannot expose remain zero.
CompileProfile
Named summary profile for regular IR compilation.
PhaseDurations
Nanoseconds indexed by CompilePhase. Unobserved phases remain zero.
RetainedBytes
Retained and temporary byte accounting for one compile.

Enums§

CompilePhase
Named compilation phases reported by the feature-gated profiling API.

Functions§

compile_ir
Compiles an IR into the anchored byte engine. An Unsupported occurrence fails the compile with its diagnostic; a structured-backend schema fails fast with an actionable message instead of a slow, cryptic elimination blow-up; otherwise the arena is lowered and built into a DFA.
compile_ir_timed
Compatibility timing wrapper returning (route_analysis_ns, materialization_ns).