Struct panini::Recognizer
[−]
[src]
pub struct Recognizer<'f, 'g, F = NullForest> where
F: Forest<'f> + 'f, { /* fields omitted */ }
Methods
impl<'f, 'g, F> Recognizer<'f, 'g, F> where
F: Forest<'f> + 'f,
[src]
F: Forest<'f> + 'f,
fn trace(&self) -> Tracing<<F as Forest<'f>>::NodeRef>
fn events(&self) -> Events<<F as Forest<'f>>::NodeRef>
fn minimal_distances(&self) -> Distances<<F as Forest<'f>>::NodeRef>
fn expected_terminals(&self) -> ExpectedTerminals<<F as Forest<'f>>::NodeRef>
impl<'f, 'g, F> Recognizer<'f, 'g, F> where
F: Forest<'f> + 'f,
[src]
F: Forest<'f> + 'f,
fn new(grammar: &'g InternalGrammar, forest: &'f F) -> Recognizer<'f, 'g, F>
fn predict(&mut self, symbol: Symbol)
fn scan(&mut self, external: Symbol, value: <F as Forest<'f>>::LeafValue)
fn advance(&mut self) -> bool
fn advance_without_completion(&mut self)
fn is_exhausted(&self) -> bool
fn completions(&'r mut self) -> Completions<'f, 'g, 'r, F>
fn complete(
&mut self,
set_id: u32,
sym: Symbol,
rhs_link: <F as Forest<'f>>::NodeRef
)
&mut self,
set_id: u32,
sym: Symbol,
rhs_link: <F as Forest<'f>>::NodeRef
)