def optimize_structure_handler(rule, handler):
def runner(walk, dispatcher, node):<EOL><INDENT>handler(dispatcher, node)<EOL>return<EOL>yield  <EOL><DEDENT>return runner<EOL>
Produce an "optimized" version of handler for the dispatcher to
limit reference lookups.