part way through write rhs rule parser