Given a python code, I need to traverse its AST tree, visit each node, and write them all in a ".CSV" file. I can generate the AST tree of the codes for now both in text and JSON format. But, I do not know how to traverse it and write the nodes in an excel file, considering below format for the CSV file. (Ignore the PHP code in this example, I need to do the same for python codes)
Comments
Post a Comment