Struct lalr::LR1State [] [src]

pub struct LR1State<'a, T: 'a, N: 'a, A: 'a> {
    pub eof: Option<LRAction<'a, T, N, A>>,
    pub lookahead: BTreeMap<&'a T, LRAction<'a, T, N, A>>,
    pub goto: BTreeMap<&'a N, usize>,
}

A state in an LR(1) parse table.

Fields

The action if the lookahead is EOF.

The actions for each non-EOF lookahead.

The state to jump to when shifting a nonterminal (because of a reduce rule).

Trait Implementations

impl<'a, T: Debug + 'a, N: Debug + 'a, A: Debug + 'a> Debug for LR1State<'a, T, N, A>
[src]

Formats the value using the given formatter.