Skip to main content

Questions tagged [ast]

Abstract Syntax Trees are used to model source code on a higher level of abstraction.

Filter by
Sorted by
Tagged with
0 votes
0 answers

How to traverse the GCC AST nodes?

I have looked into AST representations here and I would like to know how I can programmatically access this tree/traverse the nodes of my source.c file? ...
killertoge's user avatar
1 vote
1 answer

idapython cfunc_t.treeitems always empty

I am using the hexray api to get all the items of the AST tree (the ctree) obtained by decompiling a function. Unfortunately, the treeitems vector is always empty. Specifically, the function paaaa in ...
user6537's user avatar
8 votes
1 answer

How do you optimise AST's or convert them to a real language

I have been interested in automatic vulnerability assessment and decompilation of code for a while now. And as a result I have been building parsers in Python that reads a bin, disassembles it ...
Stolas's user avatar
  • 2,331
6 votes
1 answer

Should I keep parenthesis information while source modeling?

I'm developing an AST model for a source code reverse engineering platform. My question is, should I keep parenthesis data in my AST? Because I have everything in a tree, I already know which ...
Uko's user avatar
  • 185