def indent(indent_str=None):
def indentation_rule():<EOL><INDENT>inst = Indentator(indent_str)<EOL>return {'<STR_LIT>': {<EOL>Indent: inst.layout_handler_indent,<EOL>Dedent: inst.layout_handler_dedent,<EOL>Newline: inst.layout_handler_newline,<EOL>OptionalNewline: inst.layout_handler_newline_optional,<EOL>OpenBlock: layout_handler_openbrace,<EOL>CloseBlock: layout_handler_closebrace,<EOL>EndStatement: layout_handler_semicolon,<EOL>}}<EOL><DEDENT>return indentation_rule<EOL>
An example indentation ruleset.