def bind_to_transformer(transformer_cls, rule_name, transformer_method):
setattr(transformer_cls, get_transformer_method_name(rule_name), transformer_method)<EOL>
Assign AST node class constructors to parse tree visitors.