Final working grammar, and a treewalker