Compiler #
Compile from a regex's high-level intermediate representation (Syntax.Hir
)
into an NFA state graph (NFA
).
Equations
- Compiler.instInhabitedConfig = { default := { unanchored_prefix := true, unanchored_prefix_simulation := false, fuel := 1000 } }
A value that represents the result of compiling a sub-expression of a regex's HIR.
Specifically, this represents a sub-graph of the NFA that
has an initial state at start
and a final state at end
.
- start : NFA.Unchecked.StateID
- end : NFA.Unchecked.StateID
Instances For
@[reducible, inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[reducible, inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Compiler.ThompsonRefStates.mk
{states : States}
(arg1Start arg1End : NFA.Unchecked.StateID)
(arg2 : States)
(h : arg1Start < arg2.val.size ∧ arg1End < arg2.val.size ∧ states.val.size < arg2.val.size)
:
ThompsonRefStates states
Equations
- Compiler.ThompsonRefStates.mk arg1Start arg1End arg2 h = ⟨({ start := arg1Start, «end» := arg1End }, arg2), h⟩
Instances For
Compile the HIR expression given.
Equations
- One or more equations did not get rendered due to their size.