def print_declarations(<EOL>decls,<EOL>detailed=True,<EOL>recursive=True,<EOL>writer=lambda x: sys.stdout.write(x + os.linesep),<EOL>verbose=True):
prn = decl_printer_t(<NUM_LIT:0>, detailed, recursive, writer, verbose=verbose)<EOL>if not isinstance(decls, list):<EOL><INDENT>decls = [decls]<EOL><DEDENT>for d in decls:<EOL><INDENT>prn.level = <NUM_LIT:0><EOL>prn.instance = d<EOL>algorithm.apply_visitor(prn, d)<EOL><DEDENT>
print declarations tree rooted at each of the included nodes.

:param decls: either a single :class:declaration_t object or list
    of :class:declaration_t objects