Struct parol::analysis::lookahead_dfa::DFAState [−][src]
pub struct DFAState {
pub id: StateIndex,
pub accepted: bool,
pub prod_num: ProductionIndex,
}
Expand description
Data structure to represent a DFA state
Fields
id: StateIndex
A unique state number, actually the index into the array of states.
accepted: bool
The state is either accepting or not.
prod_num: ProductionIndex
Used to detect conflicts. A conflict can occur in union operations. When combining two states that are both accepted and have different production numbers a conflict is detected.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DFAState
impl UnwindSafe for DFAState
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.