Documentation

Regex.Compiler.Basic

Compiler #

Compile from a regex's high-level intermediate representation (Syntax.Hir) into an NFA state graph (NFA).

The configuration used for a Thompson NFA compiler.

  • unanchored_prefix : Bool

    Whether to compile an unanchored prefix into this NFA.

  • unanchored_prefix_simulation : Bool

    Whether to simulate an unanchored prefix with the backtracker.

Instances For
    Equations

    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.

    Instances For

      the next StateID of all states in array arr is less than size of arr.

      Equations
      Instances For