|[AST] Evaluating expressions? [message #1004542]
||Wed, 23 January 2013 12:29
| Philippe Roland
Registered: January 2013
I've just started using AST to parse C files (plus headers). So far it's been working great, but I have a question.
The C files I'm parsing contain several IASTUnaryExpression and IASTBinaryExpression (expressions such as 1 + CONST, where CONST is a constant that's defined elsewhere, but which could potentially be much more complex and involve several operators) whose value I need. I poked around a bit, but I don't see any obvious way to have AST calculate these for me.
Is there a way to do this that I simply haven't found yet, or will I have to evaluate the expressions myself?
Thanks in advance
Powered by FUDForum
. Page generated in 0.01980 seconds