def set_grammar(self, grammar):
        if grammar is self._grammar: return
        self._grammar = grammar
        self._restart = True
Change the grammar used by the parser.
dataset/ETHPy150Open nltk/nltk/nltk/parse/chart.py/SteppingChartParser.set_grammar