Documentation

Regex.Compiler

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
      @[reducible, inline]
      Equations
      Instances For

        Compile the HIR expression given.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For