You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanid="run-1-function-each-type-module"></span><h2>run.1-function-each-type module<aclass="headerlink" href="#module-run.1_function_each_type" title="Permalink to this headline">¶</a></h2>
191
191
<p>Example execution of Cnerator to create a particular number of functions.
192
-
It creates a program using the <codeclass="docutils literal notranslate"><spanclass="pre">1-function-each-type-10.json</span></code> file, running different visitors.</p>
192
+
It creates a program using the <codeclass="docutils literal notranslate"><spanclass="pre">1_function-each-type-10.json</span></code> file, running different visitors.
193
+
Run it from the parent folder with <codeclass="docutils literal notranslate"><spanclass="pre">python</span><spanclass="pre">-m</span><spanclass="pre">run.1_function_each_type</span></code>.</p>
<spanid="run-15-function-each-type-module"></span><h2>run.15-function-each-type module<aclass="headerlink" href="#module-run.15_function_each_type" title="Permalink to this headline">¶</a></h2>
196
197
<p>Example execution of Cnerator to create a particular number of functions.
197
-
It creates a program using the <codeclass="docutils literal notranslate"><spanclass="pre">15-function-each-type.json</span></code> file, running different visitors.</p>
198
+
It creates a program using the <codeclass="docutils literal notranslate"><spanclass="pre">15-function-each-type.json</span></code> file, running different visitors.
199
+
Run it from the parent folder with <codeclass="docutils literal notranslate"><spanclass="pre">python</span><spanclass="pre">-m</span><spanclass="pre">run.15_function_each_type</span></code>.</p>
<spanid="run-2000-function-void-no-void-module"></span><h2>run.2000-function-void-no-void module<aclass="headerlink" href="#module-run.2000_function_void_no_void" title="Permalink to this headline">¶</a></h2>
201
203
<p>Example execution of Cnerator to create a particular number of functions.
202
-
It creates a program using the <codeclass="docutils literal notranslate"><spanclass="pre">2000-function-void-no-void.json</span></code> file, running different visitors.</p>
204
+
It creates a program using the <codeclass="docutils literal notranslate"><spanclass="pre">2000-function-void-no-void.json</span></code> file, running different visitors.
205
+
Run it from the parent folder with <codeclass="docutils literal notranslate"><spanclass="pre">python</span><spanclass="pre">-m</span><spanclass="pre">run.2000_function_void_no_void</span></code>.</p>
<spanid="run-300-function-each-type-module"></span><h2>run.300-function-each-type module<aclass="headerlink" href="#module-run.300_function_each_type" title="Permalink to this headline">¶</a></h2>
206
209
<p>Example execution of Cnerator to create a particular number of functions.
207
-
It creates a program using the <codeclass="docutils literal notranslate"><spanclass="pre">300-function-each-type.json</span></code> file, running different visitors.</p>
210
+
It creates a program using the <codeclass="docutils literal notranslate"><spanclass="pre">300-function-each-type.json</span></code> file, running different visitors.
211
+
Run it from the parent folder with <codeclass="docutils literal notranslate"><spanclass="pre">python</span><spanclass="pre">-m</span><spanclass="pre">run.300_function_each_type</span></code>.</p>
208
212
</div>
209
213
<divclass="section" id="module-run.article">
210
214
<spanid="run-article-module"></span><h2>run.article module<aclass="headerlink" href="#module-run.article" title="Permalink to this headline">¶</a></h2>
211
215
<p>Example execution of Cnerator to create particular functions.
212
-
It creates a program using the <codeclass="docutils literal notranslate"><spanclass="pre">article.json</span></code> file, running different visitors.</p>
216
+
It creates a program using the <codeclass="docutils literal notranslate"><spanclass="pre">article.json</span></code> file, running different visitors.
217
+
Run it from the parent folder with <codeclass="docutils literal notranslate"><spanclass="pre">python</span><spanclass="pre">-m</span><spanclass="pre">run.article</span></code>.</p>
213
218
</div>
214
219
<divclass="section" id="module-run.defaults">
215
220
<spanid="run-defaults-module"></span><h2>run.defaults module<aclass="headerlink" href="#module-run.defaults" title="Permalink to this headline">¶</a></h2>
216
221
<p>Example execution of Cnerator passing no parameters.
217
-
It creates a random program considering the default probabilities.</p>
222
+
It creates a random program considering the default probabilities.
223
+
Run it from the parent folder with <ahref="#id1"><spanclass="problematic" id="id2">``</span></a>python -m run.defaults`.</p>
<spanid="run-defaults-one-file-module"></span><h2>run.defaults_one_file module<aclass="headerlink" href="#module-run.defaults_one_file" title="Permalink to this headline">¶</a></h2>
221
-
<p>Example execution of Cnerator passing no parameters but generation in one file (<codeclass="docutils literal notranslate"><spanclass="pre">-n</span><spanclass="pre">1</span></code>).</p>
227
+
<p>Example execution of Cnerator passing no parameters but generation in one file (<codeclass="docutils literal notranslate"><spanclass="pre">-n</span><spanclass="pre">1</span></code>).
228
+
Run it from the parent folder with <codeclass="docutils literal notranslate"><spanclass="pre">python</span><spanclass="pre">-m</span><spanclass="pre">run.defaults_one_file</span></code>.</p>
222
229
</div>
223
230
<divclass="section" id="module-run.help">
224
231
<spanid="run-help-module"></span><h2>run.help module<aclass="headerlink" href="#module-run.help" title="Permalink to this headline">¶</a></h2>
225
-
<p>Example execution of Cnerator passing the <codeclass="docutils literal notranslate"><spanclass="pre">--help</span></code> parameter.</p>
232
+
<p>Example execution of Cnerator passing the <codeclass="docutils literal notranslate"><spanclass="pre">--help</span></code> parameter.
233
+
Run it from the parent folder with <codeclass="docutils literal notranslate"><spanclass="pre">python</span><spanclass="pre">-m</span><spanclass="pre">run.help</span></code>.</p>
226
234
</div>
227
235
<divclass="section" id="module-run.probs">
228
236
<spanid="run-probs-module"></span><h2>run.probs module<aclass="headerlink" href="#module-run.probs" title="Permalink to this headline">¶</a></h2>
229
-
<p>Example execution of Cnerator passing the <codeclass="docutils literal notranslate"><spanclass="pre">-p</span></code> parameter to specify the probabilities of two language constructs.</p>
237
+
<p>Example execution of Cnerator passing the <codeclass="docutils literal notranslate"><spanclass="pre">-p</span></code> parameter to specify the probabilities of two language constructs.
238
+
Run it from the parent folder with <codeclass="docutils literal notranslate"><spanclass="pre">python</span><spanclass="pre">-m</span><spanclass="pre">run.probs</span></code>.</p>
230
239
</div>
231
240
<divclass="section" id="module-run.probs_file">
232
241
<spanid="run-probs-file-module"></span><h2>run.probs_file module<aclass="headerlink" href="#module-run.probs_file" title="Permalink to this headline">¶</a></h2>
233
-
<p>Example execution of Cnerator specifying probabilities in a json file (<codeclass="docutils literal notranslate"><spanclass="pre">example_probs.json</span></code>).</p>
242
+
<p>Example execution of Cnerator specifying probabilities in a json file (<codeclass="docutils literal notranslate"><spanclass="pre">example_probs.json</span></code>).
243
+
Run it from the parent folder with <codeclass="docutils literal notranslate"><spanclass="pre">python</span><spanclass="pre">-m</span><spanclass="pre">run.probs_file</span></code>.</p>
0 commit comments