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]
impl<'a> Clone for ParseTree<'a>
fn clone(&self) -> ParseTree<'a>
[src]
fn clone(&self) -> ParseTree<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for ParseTree<'a>
[src]
impl<'a> Debug for ParseTree<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> PartialEq for ParseTree<'a>
[src]
impl<'a> PartialEq for ParseTree<'a>