@PMunch Sorry for bumping this old thread, but I remark that in your code: 1. You do not give the `test` variable, but apparently it is a multi-line string with the AST without the last end of line character! 2. The second example only differs by the two-before-last lines, is that right?
3) The problem with your styling is that it considers only nodes that are strictly parents (and childrens of no nodes). In my example, I distinguish the leaves from the inner nodes! Here is the output for your second example: <https://bit.ly/3rz1t7d> I really like your conversion to GraphViz which handles automatically the placement of nodes. @geohuz Thanks for the layout engine recommendation!
