I am trying to parse a string, but I have no idea how to solve the following problem
problem = "a { b { c d } e } aa { bb cc }";
answer = {{"a", "b", "c"}, {"a", "b", "d"}, {"a", "e"}, {"aa", "bb"}, {"aa", "cc"}};
So the answer is a path in each sub-list of the list
Any suggestions ?
problem = a { b { c d } e } a a { b b c c }
? I do not understand whatpath node list of the tree information
here. You meanTreeForm
? can you give a link that explains what it is? $\endgroup$