def teardown(self, g: grammar.Grammar): """We have introduced new nodes, so we need to recalculate min tokens. FIXME: Increasingly min tokens looks like it shouldn't be part of initial grammar creation. """ g._calc_min_tokens()