[][src]Trait gearley::forest::Forest

pub trait Forest {
    type NodeRef: Copy + Debug;
    type LeafValue;

    const FOREST_BYTES_PER_RECOGNIZER_BYTE: usize;

    fn begin_sum(&mut self);
fn push_summand(&mut self, item: CompletedItem<Self::NodeRef>);
fn sum(&mut self, lhs_sym: Symbol, origin: u32) -> Self::NodeRef;
fn leaf(
        &mut self,
        token: Symbol,
        pos: u32,
        value: Self::LeafValue
    ) -> Self::NodeRef;
fn nulling(&self, token: Symbol) -> Self::NodeRef; }

Associated Types

type NodeRef: Copy + Debug

Reference to a node.

type LeafValue

Loading content...

Associated Constants

Loading content...

Required methods

fn begin_sum(&mut self)

fn push_summand(&mut self, item: CompletedItem<Self::NodeRef>)

fn sum(&mut self, lhs_sym: Symbol, origin: u32) -> Self::NodeRef

fn leaf(
    &mut self,
    token: Symbol,
    pos: u32,
    value: Self::LeafValue
) -> Self::NodeRef

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

Loading content...

Implementors

impl Forest for NullForest[src]

type NodeRef = ()

type LeafValue = ()

impl<G> Forest for Bocage<G> where
    G: Borrow<InternalGrammar>, 
[src]

type NodeRef = NodeHandle

type LeafValue = u32

Loading content...