in reply to Re^2: TreeDumper Parser / Inverse?
in thread TreeDumper Parser / Inverse?

Here's a crazy idea. Apply some simple transforms to the the TreeDump output:
'|- ' => '', '| ' => '', '`-' => '', '=' => ':', 'undef' => 'null',
You may need some more, but after that the text will be in YAML format, so you can use one of the YAML parsers to convert it to a hash.