Struct DfaState<TChar>
- Namespace
- Farkle.Grammars.StateMachines
- Assembly
- Farkle.dll
Represents a state of a Dfa<TChar>.
public readonly struct DfaState<TChar>
Type Parameters
- Inherited Members
Remarks
APIs of this type are intended for presentation purposes. To match text against a DFA, use Farkle's parsing APIs instead.
Properties
AcceptSymbols
The DfaState<TChar>'s possible accept symbols.
public DfaState<TChar>.AcceptSymbolCollection AcceptSymbols { get; }
Property Value
- DfaState<TChar>.AcceptSymbolCollection
- See Also
DefaultTransition
The state to go to if a character has no matching edge, or -1 if tokenizing should stop in that case.
public int DefaultTransition { get; }
Property Value
Edges
The DfaState<TChar>'s edges.
public DfaState<TChar>.EdgeCollection Edges { get; }
Property Value
- DfaState<TChar>.EdgeCollection
HasConflicts
Whether the DfaState<TChar> has more than one possible accept symbol.
public bool HasConflicts { get; }
Property Value
- See Also
StateIndex
The index of this DfaState<TChar>, starting from 0.
public int StateIndex { get; }