Enum gallop::ParseTree[][src]

pub enum ParseTree<'a> {
    Terminal(char),
    NonTerminal {
        symbol: &'a str,
        children: Vec<ParseTree<'a>>,
    },
}

The results from a parsing of the input text

Variants

A single captured Unicode scalar value from the input

A recursive data structure to represent the current part of the parse tree

Fields of NonTerminal

The name of the intermediary syntactic variable found

A recursive ParseTree that lives under the current non-terminal

Trait Implementations

impl<'a> Clone for ParseTree<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for ParseTree<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> PartialEq for ParseTree<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<'a> Send for ParseTree<'a>

impl<'a> Sync for ParseTree<'a>