Crate scnr2_generate

Source

Modules§

character_classes
The character_classes module contains the character class definitions and utilities for SCNR2 generation. Module with data structures and algorithms to handle character classes for SCNR2 generation
dfa
The dfa module contains the DFA implementation.
generate
The codegen module contains the code generation logic for SCNR2.
ids
The id module contains the ID types used in the SCNR2 generation.
minimizer
Module that provides functions and types related to DFA minimization.
nfa
The nfa module contains the NFA implementation. This module contains the NFA (Non-deterministic Finite Automaton) representation of the regex syntax. The NFA is created from the high-level intermediate representation (HIR) of the regex syntax. Furthermore, it provides methods to support the conversion of the NFA into a DFA (Deterministic Finite Automaton), like ‘epsilon closure’ and ‘subset construction’.
pattern
The pattern module contains the pattern matching implementation. A pattern as a data structure that is used during the construction of the NFA. It contains the pattern string and the associated metadata. Metadata includes the terminal type and a possibly empty lookahead constraint.
scanner_data
The scanner data module.
scanner_mode
The scanner mode module contains the scanner mode’s implementation.

Type Aliases§

Error
Result
The result type for the scrn crate.