As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [ast]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
235 views

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 ...
8 votes
1 answer
1k views

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 ...
6 votes
1 answer
460 views

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 ...