Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Tree Traversal-python AST Module

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)

Format for the CSV file (This example is for PHP  codes)

Comments