Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] A util for expression evaluation in CDT?

Hi Andrey,

> I need to evaluate a constant expression that is used to specify a size  
> of an array in C. I have variable substitutions with constant values  
> done and have a string of form “1+2*3”. Is there a utility in CDT I can  
> use to evaluate the result of such expression? 

It's not clear to me what you are asking.

Are you writing a plugin, and asking how to evaluate an expression
using the CDT API?

Or are you asking how can you, as a user of CDT, evalaute an
expression in the editor?

Regards,
Nate
 		 	   		  

Back to the top