Parses indented code (Python, Pug, Stylus, Pixy, codetree, etc.) and returns a tree structure.
go get github.com/facefunk/codetree
tree, err := codetree.New(source)
defer tree.Close()
parent1
child1
child2
child3
child3.1
child3.2
child4
parent2
child1
See CodeTree structure.
The root node always starts with Indent
being -1
.