title: Verify string as valid C code
body: <p>I would like to verify that a given string is valid C code in the context of</p>
  
  <pre class="lang-c prettyprint-override"><code>int main() {
      double x[3];
      &lt;insert code here&gt;;
      return EXIT_SUCCESS;
  }
  </code></pre>
  
  <p>Effectively, I would like the verification to </p>
  
  <pre class="lang-py prettyprint-override"><code>verifyC('x[0]*x[0] + x[1] + 1') // pass
  verifyC('x[0]*x[0] + x[1] +') // fail, syntax error
  verifyC('x[0]*x[0] + a') // fail, `a` undefined
  </code></pre>
  
  <p>What would be a good way of verification?</p>