Finished fixing the pre-order traversal of the grammar.