[−][src]Trait branchy::ExpansionLogger
Implement this trait if you want to log or otherwise handle individual steps during expansion.
See crate docs for an example.
Provided methods
fn on_nonterm_expanded(
&mut self,
_expanded_nonterm_value: &Nt,
_rule: &Rule<Nt, T>
)
&mut self,
_expanded_nonterm_value: &Nt,
_rule: &Rule<Nt, T>
)
fn on_nonterm_expansion_failed(&mut self, _expanded_nonterm_value: &Nt)
fn on_input_fully_expanded(&mut self, _expansion_result: &[T])
fn on_max_iterations_reached(
&mut self,
_current_state: &[Symbol<Nt, T>],
_iterations: usize
)
&mut self,
_current_state: &[Symbol<Nt, T>],
_iterations: usize
)