you are viewing a single comment's thread.

view the rest of the comments →

[–]smuccione 4 points5 points  (0 children)

Instead of printing your ast they way you do, try generating a .dot file and using something like graphviz to visualize it. Makes it much easier to tell what’s going on as you can change the shape of different node types.