def METHOD_NAME(self, rule: _Rule) -> CompiledRule:
    try:
        return self._c_rules[rule]
    except KeyError:
        pass
    grammar = self._rule_to_grammar[rule]
    ret = self._c_rules[rule] = self._compile_rule(grammar, rule)
    return ret