Struct gearley::forest::depth_first::Bocage [] [src]

pub struct Bocage<'a, 'f, 'g, T: 'f, V: 'a> where 'a: 'f, T: Copy {
    // some fields omitted
}

Methods

impl<'a, 'f, 'g, T, V> Bocage<'a, 'f, 'g, T, V> where T: Copy

fn new(grammar: &'g InternalGrammar) -> Self

fn initialize(&'f self)

Trait Implementations

impl<'a, 'f, 'g, T, V> Forest<'f> for Bocage<'a, 'f, 'g, T, V> where T: Copy

type NodeRef = NodeRef<'a, 'f, T, V>

type NodeBuilder = SumBuilder<'a, 'f, T, V>

type LeafValue = T

fn build(&'f self, num_products: usize) -> Self::NodeBuilder

fn leaf(&'f self, token: Symbol, _pos: u32, value: Self::LeafValue) -> Self::NodeRef

fn nulling(&'f self, token: Symbol) -> Self::NodeRef