Function antlr_rust::trees::string_tree[][src]

pub fn string_tree<'a, T: Tree<'a> + ?Sized>(
    tree: &T,
    rule_names: &[&str]
) -> String
Expand description

Print out a whole tree, not just a node, in LISP format {@code (root child1 .. childN)}. Print just a node if this is a leaf.