pub fn depth(grammar: &Grammar, program: &[Symbol]) -> usize
The depth of the tree (a single terminal has depth 0).
0