0

I have looked into AST representations here http://icps.u-strasbg.fr/~pop/gcc-ast.html and I would like to know how I can programmatically access this tree/traverse the nodes of my source.c file? Pseudocode from the link:

char * fnName = IDENTIFIER_POINTER (DECL_NAME (fnDecl));
tree fnBody = DECL_SAVED_TREE (fnDecl);

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.