"content">

<h1 class="top">Pragma directive</h1>

<p>The directive "<code>#pragma</code>" allows to evaluate expressions
at parse time, useful, for example, to test syntax extensions by the
statement EXTEND without having to compile it in a separate file.</p>

<p>To use it, add the syntax extension "<code>pa_pragma.cmo</code>" in
the Camlp5 command line. It adds the ability to use this directive.</p>

<p>As an example, let's add syntax for the statement 'repeat' and
use it immediately:</p>

<pre>
  #pragma