pharmpy.parse_utils.prettyprint module

Pretty printing of generic.AttrTree via treeprint.Node.

pharmpy.parse_utils.prettyprint.transform(ast_tree, content=True)[source]

Traverses tree and generates treeprint.Node, which can format a multiline (command) tree-styled string.

Parameters

content – If True, include text preview (or all if ‘full’) on each node.

Returns

Multiline string, ready for the printing press.