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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.

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

[src]

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

[src]

This method tests for !=.