rename classes, add checkOnly parameter into TMGenerator.compileGrammar