DeveloperLiberationFront / Excel-Function-Visualizer

Justin tends to his trees
2 stars 1 forks source link

Flexible format for the data #2

Closed jalanmiddleton closed 8 years ago

jalanmiddleton commented 8 years ago

So right now I have a bunch of text-based hierarchies that look a bit like this:

0.SUM() (1460)
....Argument #1
1.....<RANGE> (1427)
1.....<REF> (20)
1.....+ (13)
........Argument #1
2.........<REF> (9)
2.........* (2)
............Argument #1
3.............<REF> (2)
............Argument #2
3.............<NUM> (2)
2.........+ (2)
............Argument #1
3.............<REF> (2)
............Argument #2
3.............<REF> (2)
........Argument #2
2.........<REF> (11)
2.........* (2)
............Argument #1
3.............<REF> (2)
............Argument #2
3.............<NUM> (2)
....Argument #2
1.....<REF> (20)
....Argument #3
1.....<REF> (20)

<etc>

...which in this current form is a total bummer from a readability perspective and useless from a portability perspective.

So! It needs to be changed to something better. It's form should be something tailored for #1 -- maybe a JSON representation?

jalanmiddleton commented 8 years ago

With bb714b8ce2bf1f44843944fd207aea2309f5009d, all trees can be represented in JSON.