Crate inator

source ·
Expand description

Nondeterministic finite automata with epsilon transitions and algorithms to compile them into optimal deterministic finite automata.

Structs

  • Deterministic finite automata.
  • Infinite iterator over inputs guaranteed to be accepted by a given automaton.
  • Tried to fuzz an automaton that never accepts any input.

Enums

  • Unevaluated binary operation.

Traits

  • Convert to a variety of source-code-related formats.

Functions

  • Accept anything accepted by any of these parsers.
  • Accept only the empty string.
  • Accept this token if we see it here, but throw it away.
  • Accept this token if we see it here, then call this user-defined function on it.
  • Accept this sequence of tokens if we see it here, then call this user-defined function on it.
  • Accept either this token or nothing.
  • Surround this language in parentheses. Note that whitespace around the language–e.g. “( A )”–is fine.
  • Promise a parser that can’t be computed yet (usually because it nests itself).
  • Accept if and only if each parser accepts in order.
  • A single character of whitespace (or exactly one “\r\n”).
  • Any amount of whitespace.