Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » [AST] Evaluating expressions?
[AST] Evaluating expressions? [message #1004542] Wed, 23 January 2013 12:29
Philippe Roland is currently offline Philippe RolandFriend
Messages: 4
Registered: January 2013
Junior Member
Hey everyone,

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
Philippe
Previous Topic:Resource Custom Build Step corrupts Project
Next Topic:breakpoints on remote embedded system
Goto Forum:
  


Current Time: Thu Apr 25 07:05:32 GMT 2024

Powered by FUDForum. Page generated in 0.02830 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top