Trait gramatica::ParsingTablesTrait [] [src]

pub trait ParsingTablesTrait<T> {
    fn initial() -> usize;
fn match_some(parser: &mut Parser<T, Self>) -> Option<(usize, T)>
    where
        Self: Sized
;
fn predict(
        parser: &mut Parser<T, Self>,
        index: usize,
        state_index: usize,
        token: usize
    )
    where
        Self: Sized
;
fn compute_value(state: &mut State<T>);
fn table_terminal(token_index: usize) -> bool;
fn table_priority(a: usize, b: usize) -> Option<Ordering>;
fn table_associativity(rule: usize) -> Option<Associativity>;
fn to_usize(_: &T) -> usize; }

Required Methods

Implementors