title: How to convert a string into conditional expression in C++ or C
body: <p>I have a <code>string</code> </p>
  
  <pre><code>string expression=((true AND true)OR false); 
  </code></pre>
  
  <p>How do I convert this <code>string</code> into a conditional statement so that I can use this in an <code>if</code> statement, i.e.</p>
  
  <pre><code>if((true AND true)OR false))
  </code></pre>
  
  <p>Like <code>eval</code> in JavaScript - is there any API in C++ or C?</p>