ype_</span> <span class="o">==</span> <span class="s2">&quot;TERMINAL&quot;</span><span class="p">:</span>
                <span class="n">text</span> <span class="o">=</span> <span class="n">repr_terminal</span><span class="p">(</span><span class="n">text</span><span class="p">,</span> <span class="n">idx</span><span class="p">,</span> <span class="n">name</span><span class="p">)</span>
            <span class="k">if</span> <span class="n">type_</span> <span class="o">==</span> <span class="s2">&quot;CHANC