pub struct LR0StateMachine<'a, T: 'a, N: 'a, A: 'a> {
pub states: Vec<(ItemSet<'a, T, N, A>, BTreeMap<&'a Symbol<T, N>, usize>)>,
pub start: &'a N,
}
Expand description
An LR(0) state machine.
Fields§
§states: Vec<(ItemSet<'a, T, N, A>, BTreeMap<&'a Symbol<T, N>, usize>)>
A vector of states, each of which consists of an item set and a set of transitions.
State 0 is the starting state.
start: &'a N
The starting state of the associated context-free grammar.
Implementations§
Source§impl<'a, T: Ord, N: Ord, A> LR0StateMachine<'a, T, N, A>
impl<'a, T: Ord, N: Ord, A> LR0StateMachine<'a, T, N, A>
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, N, A> Freeze for LR0StateMachine<'a, T, N, A>
impl<'a, T, N, A> RefUnwindSafe for LR0StateMachine<'a, T, N, A>
impl<'a, T, N, A> Send for LR0StateMachine<'a, T, N, A>
impl<'a, T, N, A> Sync for LR0StateMachine<'a, T, N, A>
impl<'a, T, N, A> Unpin for LR0StateMachine<'a, T, N, A>
impl<'a, T, N, A> UnwindSafe for LR0StateMachine<'a, T, N, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more