refactor CCParser.