Trait rustemo::ParserDefinition
source · pub trait ParserDefinition<S, P, TK, NTK> {
// Required methods
fn actions(&self, state: S, token: TK) -> Vec<Action<S, P>>;
fn goto(&self, state: S, nonterm: NTK) -> S;
fn expected_token_kinds(&self, state: S) -> Vec<TK>;
}Expand description
Provides LR actions and GOTOs given the state and term/nonterm.