At this point, we have a cute simple interface that writes arbitrary tree-shaped data. But there's no tree, there's just a list of leaf nodes. We need to process that list to enable the implicit tree they represent to be operated on.
fun build(builder:TsdBuilder)
what it will do is call that builder in a way such builders need to process the TSD as if it were a tree.
open(path:String, node:String)
leaf(path:String, node:String,value:String)
close(path:String, node:String)
parent
child
grandchild
I'm about to break that though, because I want it to handle:
parent
child1
child2
But.
Now I hit two problems.
github.com/GeePawHill/tsd
It's Kotlin, and I'm using IntelliJ. The prior articles are on the blog, and all start w/"TSD".
Meanwhile, have a great Sunday!