formatAST

fun formatAST(root: NestableNode, initialIndent: Int = 0): String

Pretty-formats an AST.

Return

formatted string

Parameters

root

root node of the AST

initialIndent

initial amount of indentation