Expand description
Shared types used by every stage of the DFA assembly pipeline. Shared types for the vyre-std DFA assembly pipeline.
The pipeline stages pass these types between each other:
regex_to_nfa → Nfa → nfa_to_dfa → Dfa → dfa_minimize → Dfa → dfa_pack → PackedDfaEach stage is a pure function; the final PackedDfa is a POD byte
layout suitable for direct upload to a GPU buffer.
Structs§
- Dfa
- Deterministic finite automaton with a dense transition table.
- Nfa
- Non-deterministic finite automaton in Thompson form.
- NfaEdge
- NFA transition:
(from, label, to)whereNonelabel is epsilon. - Packed
Dfa - Packed DFA ready for upload to a GPU buffer.
Enums§
- DfaPack
Format - Packing format selector for
super::dfa_pack::dfa_pack. - Pattern
Error - Construction error shared across the pipeline.
Constants§
- INVALID_
STATE - Sentinel state id used to mark “no transition on this byte.”
Type Aliases§
- NfaState
Id - Thompson NFA state identifier.