Add instances to grammar extractor