Cleanup
Use a copy of the parser input grammar object internally