handle bracket trees with frontier nonterminals