Struct peel::Peel [] [src]

pub struct Peel<D> {
    pub graph: StableGraph<Parser<D>, ()>,
    pub root: Option<NodeIndex>,
    pub data: Option<D>,
    // some fields omitted
}

The main peeling structure

Fields

The memory arena of the tree

The first node added will be the root

Additional data for which can be shared accross the parsers

Methods

impl<D> Peel<D>
[src]

Create a new empty Peel instance

Set the global log level for reporting

Create a new boxed Parser and return a corresponding Node

Append the second node to the first one within the current tree structure

Remove a parser from the graph and return if existing.

Link multiple nodes together

Create a new parser and link it with the provided node

Convenient function for recursive traversal with the root as starting point

Errors

When no tree root was found or the first parser already fails.

Continue the traversal from the last processed node. This can be useful if you want to continue traversal after an incomplete parsing.

Create a graphviz graph.dot file representation in the current directory

Display an error from a parser