Change grammar file into CST