fn set_prev<'a>(nodes: &[&'a Syntax<'a>], parent: Option<&'a Syntax<'a>>)
For every syntax node in the tree, mark the previous node according to a preorder traversal.