Skip to content

Commit

Permalink
Build at Wed Mar 5 17:50:58 UTC 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
mlc-gh-actions-bot committed Mar 5, 2025
1 parent 89900d9 commit 5076650
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/assets/css/main.css.map

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions docs/docs/api/python/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
<li class="toctree-l3"><a class="reference internal" href="#xgrammar.Grammar.from_json_schema"><code class="docutils literal notranslate"><span class="pre">Grammar.from_json_schema()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#xgrammar.Grammar.from_regex"><code class="docutils literal notranslate"><span class="pre">Grammar.from_regex()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#xgrammar.Grammar.from_structural_tag"><code class="docutils literal notranslate"><span class="pre">Grammar.from_structural_tag()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#xgrammar.Grammar.union"><code class="docutils literal notranslate"><span class="pre">Grammar.union()</span></code></a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#xgrammar.GrammarCompiler"><code class="docutils literal notranslate"><span class="pre">GrammarCompiler</span></code></a><ul>
Expand Down Expand Up @@ -412,6 +413,9 @@
<tr class="row-even"><td><p><a class="reference internal" href="#xgrammar.Grammar.from_structural_tag" title="xgrammar.Grammar.from_structural_tag"><code class="xref py py-obj docutils literal notranslate"><span class="pre">from_structural_tag</span></code></a>(tags, triggers)</p></td>
<td><p>Create a grammar from structural tags.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#xgrammar.Grammar.union" title="xgrammar.Grammar.union"><code class="xref py py-obj docutils literal notranslate"><span class="pre">union</span></code></a>(*grammars)</p></td>
<td><p>Create a grammar that matches any of the grammars in the list.</p></td>
</tr>
</tbody>
</table>
<dl class="py method">
Expand Down Expand Up @@ -595,6 +599,24 @@
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="xgrammar.Grammar.union">
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">union</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">grammars</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#xgrammar.Grammar" title="xgrammar.grammar.Grammar"><span class="pre">Grammar</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#xgrammar.Grammar" title="xgrammar.grammar.Grammar"><span class="pre">Grammar</span></a></span></span><a class="headerlink" href="#xgrammar.Grammar.union" title="Permalink to this definition"></a></dt>
<dd><p>Create a grammar that matches any of the grammars in the list. That is equivalent to
using the <cite>|</cite> operator to concatenate the grammars in the list.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>grammars</strong> (<em>List</em><em>[</em><a class="reference internal" href="#xgrammar.Grammar" title="xgrammar.Grammar"><em>Grammar</em></a><em>]</em>) – The grammars to create the union of.</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>grammar</strong> – The union of the grammars.</p>
</dd>
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><a class="reference internal" href="#xgrammar.Grammar" title="xgrammar.Grammar">Grammar</a></p>
</dd>
</dl>
</dd></dl>

</dd></dl>

<dl class="py class">
Expand Down
9 changes: 9 additions & 0 deletions docs/docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ <h1 id="index">Index</h1>
| <a href="#R"><strong>R</strong></a>
| <a href="#S"><strong>S</strong></a>
| <a href="#T"><strong>T</strong></a>
| <a href="#U"><strong>U</strong></a>
| <a href="#V"><strong>V</strong></a>
| <a href="#X"><strong>X</strong></a>

Expand Down Expand Up @@ -449,6 +450,14 @@ <h2 id="T">T</h2>
</ul></td>
</tr></table>

<h2 id="U">U</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="api/python/index.html#xgrammar.Grammar.union">union() (xgrammar.Grammar static method)</a>
</li>
</ul></td>
</tr></table>

<h2 id="V">V</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
Expand Down
Binary file modified docs/docs/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/docs/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 5076650

Please sign in to comment.