Struct earley::Grammar
[−]
[src]
pub struct Grammar<T> { /* fields omitted */ }
Methods
impl<T> Grammar<T>
[src]
fn new(productions: Vec<Box<Production<T>>>) -> Grammar<T>
fn get_starting_rule_name(&self) -> &'static str
fn get_rule(&self, name: &str) -> Option<&Rule<T>>
fn productions_for_starting_rule(&self) -> &[Box<Production<T>>]
fn productions_for(&self, name: &str) -> &[Box<Production<T>>]
fn build_table<'a>(&'a self, input: &'a str) -> ItemTable<'a, T> where
T: 'a,
T: 'a,
fn parse<'a>(&'a self, input: &'a str) -> Option<T> where
T: 'a,
T: 'a,