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
Terminal(char)
A single captured Unicode scalar value from the input
NonTerminal
A recursive data structure to represent the current part of the parse tree
Fields of NonTerminal
symbol: &'a str | The name of the intermediary syntactic variable found |
children: Vec<ParseTree<'a>> | A recursive |
Trait Implementations
impl<'a> Clone for ParseTree<'a>
[src]
fn clone(&self) -> ParseTree<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more