Struct gearley::grammar::InternalGrammar
[−]
[src]
pub struct InternalGrammar { /* fields omitted */ }
Methods
impl InternalGrammar
[src]
fn from_grammar(grammar: &Grammar) -> Self
fn from_binarized_grammar(grammar: BinarizedGrammar) -> Self
fn from_proper_binarized_grammar(grammar: BinarizedGrammar) -> Self
fn from_processed_grammar(
grammar: BinarizedGrammar,
nulling: BinarizedGrammar
) -> Self
grammar: BinarizedGrammar,
nulling: BinarizedGrammar
) -> Self
fn from_processed_grammar_with_maps(
grammar: BinarizedGrammar,
maps: Mapping,
nulling: BinarizedGrammar
) -> Self
grammar: BinarizedGrammar,
maps: Mapping,
nulling: BinarizedGrammar
) -> Self
fn to_parts(&self) -> InternalGrammarParts
fn from_parts(parts: InternalGrammarParts) -> Self
fn as_slices_mut(&mut self) -> InternalGrammarSlicesMut
fn as_slices(&self) -> InternalGrammarSlices
fn prediction_matrix(&self) -> BitSubMatrix
fn inverse_prediction(&self) -> &[PredictionTransition]
fn num_syms(&self) -> usize
fn num_rules(&self) -> usize
fn num_pos(&self) -> usize
fn start_sym(&self) -> Symbol
fn has_trivial_derivation(&self) -> bool
fn nulling(&self, pos: u32) -> NullingEliminated
fn events(&self) -> (&[Event], &[Event])
fn trace(&self) -> [&[Option<ExternalDottedRule>]; 3]
fn complete_over(&self, dot: Dot, sym: Symbol) -> bool
fn rules(&self) -> RuleSlices
fn get_rhs0(&self, dot: Dot) -> Symbol
fn get_rhs1(&self, dot: Dot) -> Option<Symbol>
fn get_lhs(&self, dot: Dot) -> Symbol
fn get_eval(&self, dot: Dot) -> RuleOrigin
fn eliminated_nulling_intermediate(&self) -> &[NullingIntermediateRule]
fn inverse_prediction_of(&self, sym: Symbol) -> &[PredictionTransition]
fn to_internal(&self, symbol: Symbol) -> Option<Symbol>
fn to_external(&self, symbol: Symbol) -> Symbol
Trait Implementations
impl Clone for InternalGrammar
[src]
fn clone(&self) -> InternalGrammar
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more