to stanc to
generate the C++ translation of the example model <code>bernoulli.stan</code>.
For Linux and Mac:</p>
<pre><code>&gt; cd &lt;cmdstan-home&gt;
&gt; bin/stanc --o=bernoulli.hpp examples/bernoulli/bernoulli.stan</code></pre>
<p>For Windows:</p>
<pre><code>&gt; cd &lt;cmdstan-home&gt;
&gt; bin/stanc.exe --o=bernoulli.hpp examples/bernoulli/bernoulli.stan</code></pre>
<p>The base name of the Stan program file determines the name of the C++ model class.
Because this name is the name of a C++ class, it