def rule(rule_string):
def decorator(method):<EOL><INDENT>"""<STR_LIT>"""<EOL>method.rule = rule_string<EOL>return method<EOL><DEDENT>return decorator<EOL>
Decorate a NodeVisitor ``visit_*`` method to tie a grammar rule to it.

    It's a simple rewrite from the ``rule`` decorator from ``parsimonious``, to stop using
    a private attribute that raises pylint warnings.