Skip to main content

Crate ternary_regex

Crate ternary_regex 

Source
Expand description

§ternary-regex

Pattern matching on ternary sequences (-1, 0, +1). Provides NFA and DFA construction from ternary patterns, NFA→DFA conversion with minimization, wildcard support, and stream matching against ternary input.

Structs§

TernaryDFA
A ternary DFA for pattern matching.
TernaryNFA
A ternary NFA for pattern matching.
TernaryPattern
A compiled pattern: a sequence of PatternElems.

Enums§

PatternElem
A single element in a ternary pattern.
Ternary
A ternary value: Negative (-1), Zero (0), or Positive (+1).

Functions§

compile
Convenience: compile a pattern to a minimized DFA.
find_matches
Convenience: find all occurrences of a pattern in a ternary stream.
matches
Convenience: match a pattern against a ternary sequence.